Search:

Type: Posts; User: tikelele

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: #define

    by tikelele
    Replies
    2
    Views
    1,896

    Thank you #define TAB '\t' worked...

    Thank you



    #define TAB '\t'


    worked fine!
  2. Thread: #define

    by tikelele
    Replies
    2
    Views
    1,896

    #define

    Hi,

    I want to define something and I need direction on it.

    I want to define a comma (,) and the tab escape ('\t'), so I can use them later. Would it be:


    #define TAB \t
    #define COMMA ,
  3. Replies
    8
    Views
    1,020

    actually that did not solve it at all. It made...

    actually that did not solve it at all. It made it worse.

    I compiled it as is with VC++ and that is where I got the warning.

    I compiled same code with gcc and no warnings at all.

    Must be MS....
  4. Replies
    8
    Views
    1,020

    what a knucklehead I am!! Thanks.

    what a knucklehead I am!!

    Thanks.
  5. Replies
    8
    Views
    1,020

    er return (array[])

    er
    return (array[])
  6. Replies
    8
    Views
    1,020

    thanks Elysia for the reply. so: return ( int...

    thanks Elysia for the reply.

    so: return ( int array[] )
  7. Replies
    8
    Views
    1,020

    indirection of int in a function call

    Hi all,

    I utilized all of the function help I got before and I am close on this one:



    #include <stdio.h>
    #include <math.h>
    #define NumElements 5
  8. Replies
    15
    Views
    2,179

    as always... You are good with producing...

    as always...

    You are good with producing explanation.

    Thank you Mats
  9. Replies
    15
    Views
    2,179

    Thanks Todd. Poor choice of words "can I get...

    Thanks Todd. Poor choice of words "can I get away with". All I really meant to ask was if I am "over doing" it as in is it necessary to do. I originally had int UpperString (c){ something} and I...
  10. Replies
    15
    Views
    2,179

    ok i did int UpperString(char c) { c...

    ok i did



    int UpperString(char c)
    {
    c = toupper(c);
    return(c);
    }
  11. Replies
    15
    Views
    2,179

    I did this and placed it before main(): int...

    I did this and placed it before main():


    int UpperString(c)
    {
    c = toupper(c);
    return(c);
    }
  12. Replies
    15
    Views
    2,179

    Alrighty then. First I thank you both. Now, I...

    Alrighty then. First I thank you both.

    Now, I tripped and fell over this: :)


    I suppose I need to put:


    return (c);
  13. Replies
    15
    Views
    2,179

    I get the following warnings: cap.c: In...

    I get the following warnings:


    cap.c: In function `main':
    cap.c:19: warning: implicit declaration of function `UpperString'
    cap.c: At top level:
    cap.c:27: warning: return type defaults to...
  14. Replies
    15
    Views
    2,179

    string question

    Hi all.

    I don't need help on writing this as much as I have a question.



    #include <stdio.h>
    #include <string.h>
    #define MaxStringLength 150
  15. Replies
    11
    Views
    2,974

    it is SPIN language...

    it is SPIN language
    http://en.wikipedia.org/wiki/Spin_(programming_language)

    Your best bet it do do it in C and work on it. Post code (yours) that you don't get and the programmers here will...
  16. Replies
    7
    Views
    2,665

    hmm, I don't think I need this after all: ...

    hmm, I don't think I need this after all:


    for( i = 0; i < NumProducts; i++ )
    {
    if( inputID == Product[i].id )
    {
    break;
    }
    }
  17. Replies
    7
    Views
    2,665

    @ eXeCuTeR - The only answer I have for that...

    @ eXeCuTeR - The only answer I have for that is...I have to, it's part of the deal.

    @ Elysia - I know the variable is full of garbage, I am reading and searching and didn't see anything on how to...
  18. Replies
    7
    Views
    2,665

    ok thanks I declared Product product; with...

    ok thanks
    I declared

    Product product;

    with the rest of the declarations and now I get:

    the variable 'product' is being used without being initialized.
    here
  19. Thread: C Help

    by tikelele
    Replies
    69
    Views
    4,936

    good advise thanks

    good advise thanks
  20. Replies
    7
    Views
    2,665

    SEEK_CUR issue

    Hi,

    I know I am not done with this, but I get an error that I don't know how to fix.

    I am trying to lower the inventory count of this data file.

    named productdata.txt
    id, price, and count
  21. Replies
    12
    Views
    1,954

    FAQs shudda known!;) Thank you MacGyver

    FAQs
    shudda known!;)

    Thank you
    MacGyver
  22. Replies
    12
    Views
    1,954

    @MacGyver...

    @MacGyver (or anyone else who knows)

    I wanted to know what the consequesces of using feof() as the loop control. I changed it to the proper fgets() but I am curious because feof() worked. I am...
  23. Replies
    12
    Views
    1,954

    yes it does. at first it didn't because i had a...

    yes it does. at first it didn't because i had a typo

    Thanks all!
  24. Replies
    12
    Views
    1,954

    i did but i cant get it to stop at the end of the...

    i did but i cant get it to stop at the end of the file
  25. Replies
    12
    Views
    1,954

    i beleive i have it. while (!feof(myfile))...

    i beleive i have it.



    while (!feof(myfile))
    {
    fgets (fileName , sizeof( fileName ), myfile);
    fprintf( newfile, "%s", fileName);
    }
Results 1 to 25 of 62
Page 1 of 3 1 2 3