haha,
yes, you r right. I made a mistake~~~~~~~~~
carle
________________
Free chat software for you
Type: Posts; User: carle
haha,
yes, you r right. I made a mistake~~~~~~~~~
carle
________________
Free chat software for you
Hey,
The ''sizeof" is a keyword of operator, while the strlen() is a function. The sizeof returns the length of a varible or data type, in other words, how many bytes this data block of type...
Hi,
I compiled and runned your code with VC++6.0 and it went through just right! However, your code in the function void pa( int a[], int lb, int ub) is duplicated.
void pa(int a[],int lb,int...
Hi,
Read in the data from the original text file and the replace all the character ' ' with '\n'.
Then put it in another file. That's it!
Carle
_______________
Free chat software for you
Hi,
You can use the c++ method strncmp()!
char exit[5] = "exit";
if(!strncmp(buff, exit, 4))
{
cout << "the first four characters are "exit"!";
}
Hi,
You can use the method atof() to implement it!
#include <stdlib.h>
……
char* f1 = 3.2;
char* f2 = 4.53;