377 Posted Topics
Re: Here's another link [url]http://www.digitalmars.com/download/freecompiler.html[/url] | |
Is it possible to print---- hello world on the screen without using semicolon( ; ) anywhere in the code...i was able to do it through MACROS..but is there anyother way?? | |
Re: Dynamic allocation of arrays of more than one dimension is not so easily done, because dynamic allocation of an n-dimensional array actually requires dynamic allocation of n 1-dimensional arrays. To allocate a 2-dimensional array you must first allocate memory sufficient to hold all the elements of the array (the data), … | |
I have an AMD 400 MHz processor...128MB ram ...motherboard-TX-100......i tried to start my system after 1 month or so....but whenevr i start it now...it gives me an error CMOS battery low....press F1....whenever i press F1 it goes to the CMOS Setup options and my setting are changed....my processor speed changes … | |
I need to make a project in C++(not very big) in my college....can you suggest me some good ideas.... I was thinking of implementing 10-15 algorithms with their complete complexity description can u give me some other ideas | |
In the function declarations, the argument identifiers are optional. In the definitions, they are required (the identifiers are required only in C, not C++). #include<iostream.h> void f(int); int main() { f(10); return 0; } void f(int) { } This works fine..where is 10 going??..how the compiler handles this?? | |
Re: go for switch case rather than if-else blocks | |
Re: please tell us more about your code how have u declared temp....defination of pop() function | |
Re: whenevr i need to check the computation time of my program segments....i go for gcc compiler...and compile the program using profiling option...it gives complete description of all the blocks(time taken...how many times a particular block is called and many other useful things etc....) | |
I came across this line when i was as reading a tutorial i.e. compiler increases the compilation speed by performing in-memory compilation....what does this statemant mean??.....and what is the normal way of compilation | |
Re: Here is a nice link for linux redirection [url]www.cpqlinux.com/redirect.htm[/url] | |
Re: yes c++ has a this pointer which is intrinsically passed you can use it in any of these following ways 1.this->value 2.(*this).value | |
I don't know if this is possible....... i have made a program containing 3 files 1.main.cpp----it includes both complex.h and def.h....main.cpp is simple menu 2.complex.h---class declerations 3.def.h-----definations of the member functions now i want to give my code to someone....is it possible in some way that.....i give only main.cpp and … | |
Hi, Please see the code below. [code]void Allocate( char* s ) { s = (char*)malloc( 100 ); } int main( ) { char* s = NULL; Allocate( s ); strcpy( s,"Test");/*I know that this will fail. b'coz I still have a NULL pointer in s. Initially s was pointing to … | |
I am back again with a new query...preparing for technical interview questions --------------------------------- Without using sizeof operator,can we find sizeof datatype. | |
Is there any sequence of left shift and right shift operators that can divide or multiply a number by a number that is not a multiple of 2 i.e. can we multiply a number by 11 using a sequence of left shift and right shift operators . | |
Re: Here is one attachment which might help you understand what you are looking for | |
Re: Hi...i read your assignment.....and i found it self explanatory.....i guess almost all the things are well defined........ but i guess since its long time you haven't been in touch with C++ so i guess you should take a look at these articles...it will help u 1.cplus.about.com/library/weekly/aa101402a.htm 2.[url]www.devarticles.com/c/a/Cplusplus/[/url] Operator-Overloading-in-C-plus/ 3.msdn.microsoft.com/library/en-us/ vclang/html/_pluslang_overloaded_operators.asp … | |
Re: Here is one link which will help you out :mrgreen: ------------------------------------- [url]http://aplawrence.com/Linux/c_compiling_linux.html[/url] | |
Re: Here Is Thr Corrected Version Of The File | |
Can anyone tell me the limit of number of controls that can be used on the form | |
Re: i tried this and it worked fine #include<iostream.h> int main() { char buffer[5][10]; for (int i = 0 ; i < 5 ; i++) { cin >> buffer[i]; } for (i = 0 ; i < 5; i++) { cout << buffer[i]; } return 0; } | |
Re: Hi..i am interested in this ....if you want we can talk in detail | |
Re: Cat *p----- declares a pointer of class Cat and when u do ----new cat -------then your are trying to allocate memory for that pointer. new operator automatically calls the constructor of the class | |
Re: yaa you an do that but it will be unncessary burden for you i'll suggest you to go for turbo c++ compiler in case you want use graphics it fully supports it | |
Having return types of constructor means taking address of constructor(which is illegal)...can u explain me this.... |