hi all
i do not know if i am posting this to the correct forum or not.
i am trying to get information on data streaming techniques for audio / video files. can anybody knows about it ? Useful links for the same will be of great help.
thanks in advance
sanjay
hi uolj
Thanks for the reply ....In the case which you discussed, the overall time complexity of the implementation is bound to go high to the order of O(n). Although to the end user, the implementation seems like list. My point is that vector implementation as list has got no practical...
...to use the vector class as a list, how reserve() can be used and what is the significance ? when i say reserve(100), does this mean that the 100 * sizeof (<build in data type / user defined data type>) bytes gets sequentially allocated but not initialized ? what is the use of sequential...
hi all
i have a doubt about the stack unwinding mechanism that happen in exception. how does the stack unwinding happens in this case? any useful link on this topic ????
thanks in advance
sanjay
hi all
i have come across one dount while reading templates. Following is the code snippet about the query
template <typename T>
class Test {
void foo() {
cout << "test function" << endl;
}
};
// Code using class template above...
Hi all
i am going through reading pahse for C++ templates where i came across some doubts .
1] The code snippet to which i came across in the document is as follows
template <typename T>
class CTest {
public:
typedef int I...
...fault when i try to execute the code mentioned below. is there any specific in the storage of string literal that is causing this ?
char *str1;
str1=(char *) malloc (100);
str1="hello";
cout<<str1;
free(str1);
cout<<str1;
return 0;
can anybody explain me the...
Hi all
I am trying to develop the graphics module using C# as a development tool. I am a newbie to the graphics ...The requirement is as under.
The requirment is to give the "genie effect" to the existing UI/image. The targetted OS is Windows XP professional. The problem is that i am not able...
hi
Thank all for clarifying my doubts.
cpjust, i got the answer in your question for point no 3. My question was wrong ...thanks for the help anyway ....
Sanjay
hi all
wnated add some more doubts in the last post as follows
3. while overloading the template function, the template parameters are not taken in to consideration as per my understanding. what is the reason behind this ? The difference in the template parameters represents the different...
...code
//File.h
template <typename T>
void foo(T temp) {
// some code here
}
//FileMain.cpp
int i = 40;
int *ptr = &i;
foo(ptr);
In the code snippet above, does the statement means that the pointer type is also the concrete type ????
2. it is...
Hi all
I have a query regarding inheritance. I want to stop the inheritance chain using C++. What is the mechanism that i should use to stop the inheritance. Assuming that the class will contain the non static data members also.
Thanks in advance.
Sanjay
...C linkage and normal stdio.h files.
The documentation says the following.
//cstdio
namespace std {
void printf(const char*,...);
/*Std C function declaration here */
}
//stdio.h
#include <cstdio>
using namespace std;
i am not getting the...
Hi
I have one basic query regarding how the system stores the Constants.
If i have the following code
double &dr = 1 ; // error: lvalue needed
constdouble &cdr = 1 ;
As the comment suggest, the lvalue required fot the plain reference but not for the const double&. Is there any...
Hi,
I wanted to restrict the input time for the scanf(). If the user does not enter with in say 2 minutes, the scanf() call should be terminated. Is it possible to acheive ?
I am using windows flavours for testing this .... please suggest ...
Thanks
sanjay
Hi,
The compiler is C compiler as per my understanding although the file is .cpp file as you correctly pointed out. This is the code from third party i am trying to build a sll out of makefile.
please correct me if i am on wrong directions as i am new to make files and the command line options...
hi All,
I am trying to get the information about the makefile for windows. This is to optimize on the build process for my project.
Can anybody help me in knowing the command that are used by windows to compile, link, making executable, making libraries which i can use in the makefile for...
Hi All,
I have come across one term while reading a book on C++ ... "Concrete class". The meaning of the term is not clear to me. Can anyone explain as to what a concrete class is and how it is different from the normal class?
Also when should i use the concrete class while programming in C++...
Hi All,
i came across some reading about the NRV [Named Return Value] of the function while i was reading about the copy constructors.
This named return value concept is not clear and how it is linked with compiler turning on /off the optimization ?
can someone summerize about the program...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.