I have a string containing '|' delimiters which is like :
Testing|1|2|3|4
What I want to do is to extract the data in between the delimiters respectively.
The problem is i do not know how many...
Type: Posts; User: fkheng
I have a string containing '|' delimiters which is like :
Testing|1|2|3|4
What I want to do is to extract the data in between the delimiters respectively.
The problem is i do not know how many...
i see, thanx, will try it...
anybody know of any other method?
I have a linked list with nodes containing a string as its data member.
Is there any way to load these string values into a binary search tree, where i can compare strings according to...
okay, er........say i have used atof to convert a string to float
it is a float number
and it looks like e.g. 60.00000
from this, what if i just want 2 floating points, i mean just 60.00
...
How can I concatenate characters in C?
and if those 2 characters are numbers for example, say char1 = 1, char2 = 4
so if i merge them, it will become 14
can i then manipulate htis value to...
How do I convert a floating point number to an integer, at the same time rounding up the number? not truncating it, but rounding it up...
i forgot the function for it...
hm...........okay, i now know that A = B won't work...
so is there any other way to copy structs apart from copying each data member one by one?
wat about *A = *B ?
this still assigns the address over?
If A and B are 2 POINTER declarations of a particular struct type, to copy one address to another, it would be alright to do this (correct me if i am wrong) :
A = B;
is there anyway of copying...
okay, yeah i know, coz i rush into things without planning...
anyway, i tried with strcpy but it still didn't work...i really do not know wat the problem is...
yeap, i am trying to assign or copy, so i have to use strcpy()?
i'll try, thank you!
sorry, but wat do u mean by that?
nope, if i take away that one, i get many errors, some of which state the i have a missing identifier ACADEMICPROF...
to summarise my problem, i declared a pointer to a struct like this...
ACADEMICPROF *details;
then, in a function, i immediately assigned a value to the data member of the struct type it points...
I am facing a problem involving a pointer to a struct here, and i'm not sure if i'm getting the concept right...
i've attached the zip file, once unzipped, open the startup.c file and after...
is there anything wrong with my declaration of a struct below?
typedef struct ACADEMICPROF{
char studentID[27];
int semesterNumber;
char subject[10];
float incourse;
float exam;
float...
WOuld like to know what is the point of declaring static functions?
I am doing a small test program by extracting data out of a notepad which consists of results or performance data of students throughout their duration at a particular institute, for example. After...
okay, is there any code which allows me to obtain the current po sition of the cursor, as in the cursor which displays output onto the screen?
as i want to obtain the value to do some...
wat i mean is can i search and obtain filenames which begin with a specified set of characters?
I would like to search a file or files whose names begin with a specified set of characters...
is that possible? something like a wild character...
Any of you guys have any creative ideas on how I could depict the axis of a graph? the x and y axis i mean, wat ascii symbols could i use to actually print on the screen to depict it?
now that i know it is possible, i guess they were either pulling my leg or discouraging me from trying it out, thanx guys...
i see, okok, so we have to store it temporarily first to edit it eh?
er.......really dunno, wat language is it written in?
do u know whether there are any specific commands to edit and delete lines and what are they?
i have friends who told me that the weakness of C is that you cannot edit a notepad file...