u could u do while if u want the loop to execute atleast once ..
pardon my ignorance if this is not correct tell me so that i can learn .. because i very new to c++ and this is my first reply for...
Type: Posts; User: san
u could u do while if u want the loop to execute atleast once ..
pardon my ignorance if this is not correct tell me so that i can learn .. because i very new to c++ and this is my first reply for...
i think you have to use a do while loop..
cin.getline(b,MAX-1);
could u explain to me why did u use MAX-1 [ can i say
cin.getline(b,sizeof(b)) instead of cin.getline(b,MAX-1); ]
a[ct]='\0';
if i assign...
OK WHEN I USE cin.getline it si giving me the following error
Error E2285 C:\srt_cpy.cpp 29: Could not find a match for 'istream::getline(char,int)' in function myStrcpy(char *,char *)
and i...
i am nwe to this so please could u show me hoe to do that.
hi there , i am writing a prg which is the same as the library strcpy function ..
could u guys check out my prg because it is copying b to a but at the end it is giving me some other char ..
...
thank u.
----------------------------------------------------------
cout "enter a string of words terminated by a # sign."
char buffer[300];
cin.getline(buffer, 299, '#');
int length = strlen(buffer); ...
i am now trying doing this
-----------------------------------------------------------------
while(!(str_len) == '\0')
++coutn;
cout << " length" << count; ...
well when i run the prg it is giving me length of 5 no matter what i type...
hi there , i am doing a prg which determines the number of words in the string ..
here goes the problem i have to solve
a function is provided with an array of char representing a...
hi ,
i am preparing a c++ wavier exam ,which is in august could any one suggest me on how to proceed with the preparation , and by any chance do any of u know any sites that have mock exams or...
:confused:
hi ,
im new to c++ , i just did a programme that figures out whether or not the values stored in an array of ints are stored in descending order.could any body check this out...