Search:

Type: Posts; User: fkheng

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,323

    Extracting info from string

    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...
  2. Replies
    3
    Views
    3,384

    i see, thanx, will try it... anybody know of any...

    i see, thanx, will try it...
    anybody know of any other method?
  3. Replies
    3
    Views
    3,384

    Sorting in alphabetical order

    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...
  4. Replies
    4
    Views
    2,138

    okay, er........say i have used atof to convert a...

    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
    ...
  5. Replies
    4
    Views
    2,138

    Concatenating characters

    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...
  6. Replies
    1
    Views
    992

    Conversion of floating-point number

    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...
  7. Thread: Copying struct

    by fkheng
    Replies
    16
    Views
    2,949

    hm...........okay, i now know that A = B won't...

    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?
  8. Thread: Copying struct

    by fkheng
    Replies
    16
    Views
    2,949

    wat about *A = *B ? this still assigns the...

    wat about *A = *B ?

    this still assigns the address over?
  9. Thread: Copying struct

    by fkheng
    Replies
    16
    Views
    2,949

    Copying struct

    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...
  10. Replies
    10
    Views
    1,901

    okay, yeah i know, coz i rush into things without...

    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...
  11. Replies
    10
    Views
    1,901

    yeap, i am trying to assign or copy, so i have to...

    yeap, i am trying to assign or copy, so i have to use strcpy()?

    i'll try, thank you!
  12. Replies
    10
    Views
    1,901

    sorry, but wat do u mean by that?

    sorry, but wat do u mean by that?
  13. Replies
    10
    Views
    1,901

    nope, if i take away that one, i get many errors,...

    nope, if i take away that one, i get many errors, some of which state the i have a missing identifier ACADEMICPROF...
  14. Replies
    10
    Views
    1,901

    to summarise my problem, i declared a pointer to...

    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...
  15. Replies
    10
    Views
    1,901

    Struct pointer problem

    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...
  16. Thread: struct syntax

    by fkheng
    Replies
    2
    Views
    1,051

    struct syntax

    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...
  17. Thread: static

    by fkheng
    Replies
    3
    Views
    1,103

    static

    WOuld like to know what is the point of declaring static functions?
  18. Replies
    3
    Views
    2,852

    Data structure implementation

    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...
  19. Thread: Graph axis

    by fkheng
    Replies
    2
    Views
    2,021

    okay, is there any code which allows me to...

    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...
  20. Thread: File searching

    by fkheng
    Replies
    3
    Views
    1,381

    wat i mean is can i search and obtain filenames...

    wat i mean is can i search and obtain filenames which begin with a specified set of characters?
  21. Thread: File searching

    by fkheng
    Replies
    3
    Views
    1,381

    File searching

    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...
  22. Thread: Graph axis

    by fkheng
    Replies
    2
    Views
    2,021

    Graph axis

    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?
  23. Thread: Notepad file

    by fkheng
    Replies
    6
    Views
    1,329

    now that i know it is possible, i guess they were...

    now that i know it is possible, i guess they were either pulling my leg or discouraging me from trying it out, thanx guys...
  24. Thread: Notepad file

    by fkheng
    Replies
    6
    Views
    1,329

    i see, okok, so we have to store it temporarily...

    i see, okok, so we have to store it temporarily first to edit it eh?

    er.......really dunno, wat language is it written in?
  25. Thread: Notepad file

    by fkheng
    Replies
    6
    Views
    1,329

    do u know whether there are any specific commands...

    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...
Results 1 to 25 of 147
Page 1 of 6 1 2 3 4