how do initialize and use an array of char pointers?
Type: Posts; User: phptech
how do initialize and use an array of char pointers?
ok, i'll try that. thank you guys!!!
well, i am a little confused here, but what i really want is:
i have a database and a column from which i will take the fields values and put them all in an array.
i already know how to take a...
hi, to you all
i am having problem on this:
how do i initialize a char array, so i'll be able to put words in it at a runtime?
does anyone have an example of how arrays of char or strings...
Not really like that....i`ve made that (2 questions of the exact same topic) just because i thought the other one was old (i posted it on the morning), and i thought the most actual were read first....
Could someone help me?
Imagine that i have the case:
int a = 2;
int b = 2;
int c;
Please...
is this sentence right?
whats wrong here?
i have 2 floats, and i want to operate, like an exponencial, or
float 1 elevated to float2.
example:
thanx a lot!!!
you`re a great friend!
Please, how do i compare two char strings?
i`m trying the following way, but it is not working,
char1 = "mar"
char2 = "mar"
if (char1==char2) {
do the routine
sorry, but which is the library that contains the strtok() function?
ok, but i think its not really like that what i want to make here. the fact is that i want to insert a phrase in a loop, and every time it finds a space caracter in the phrase, i`d like it to take...
please: how can i, as example, take the n first letters from a char variable, like:
char[30]= "marcelo";
i want the 5 first ones in a new variable like:
char[5] = 5 first ones , so,...
just to complete:
the string1 and string2 will be char* ok?:confused:
Hi! I`m beginning on C programming, and i have the following wuestion: Imagine that i have this:
char* = "make a better world today";
and i want to store each word in a diferent string, like:
...
please, whats the difference between
char* name;
and
char name;
thanx!
Please, i cant find the mistake here:
char dec = "10.45";
float numb;
numb = (float)dec;
numb = numb/2;
ok, quzah, thanks for giving me that link of ANSI...
but i still didnt find any function that maskes the float->char conversion. teh have there the gcvt(), ecvt() and fcvt() saying that they`re...
Hi everybody!
I am beginning on c-programming, and i need to have some questions answered (please!)
i want to make some string conversions, like
int to char
char to int
float to char
char...