Search:

Type: Posts; User: Hybird

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,065

    Ok, I would image this would be the correct way...

    Ok, I would image this would be the correct way to put the string into the type stB struct, but I get the following error:



    One.Two[0] = {"asdf",1};


    I get the error
  2. Replies
    3
    Views
    1,065

    Load value to struct.

    Say I have the following structs:



    struct stA
    {
    int Num;
    stB Other[100];
    }One;
  3. Replies
    5
    Views
    2,495

    But when I try my program it doesn work. I can...

    But when I try my program it doesn work. I can pass a single struct to my function, but I cant pass the array of struct type stfirst. to pass an array you just put the array name in the function when...
  4. Replies
    5
    Views
    2,495

    Pass struct to a function.

    Say I define the following structure globally:


    struct stfirst
    {
    int num;
    char let;
    }Me;

    then I go ahead and declare it in main as follows:
  5. Replies
    7
    Views
    1,250

    damn! Ok I got it now.. dont declare the struct...

    damn! Ok I got it now.. dont declare the struct in stMenu as an array haha. Yay it finally works and here I seem to be talkin to myself!
  6. Replies
    7
    Views
    1,250

    Ok still not working, I have declared the structs...

    Ok still not working, I have declared the structs correct.. I hope. as here


    struct stMenuItem
    {
    int index;
    char desc[MAX];
    };

    and..
  7. Replies
    7
    Views
    1,250

    Wow I am stupid, I didnt even see where you...

    Wow I am stupid, I didnt even see where you where goin with that 'main' thing until I read it over. but ya that would describe the 'int' in the error, cause main is a interger return function....
  8. Replies
    7
    Views
    1,250

    I still dont understand.. I mean if I take away...

    I still dont understand.. I mean if I take away the whole show function, and just try and get the first string in the stMenu menu[MAX] to show I would do this right:?


    cout << menu[0].caption;
    ...
  9. Replies
    7
    Views
    1,250

    Well I ran that program and it didnt work at all,...

    Well I ran that program and it didnt work at all, I got a windows error. Anyhow thi sis the main program design I have to follow.



    Notice that you will be creating many menus in this project....
  10. Replies
    7
    Views
    1,250

    Displaying Structs???

    I am having a hard time printing out a struct.. I get an error in my function that I cannot perform this operation. The main idea is to make a program that takes in a struct and displays a menu with...
  11. Replies
    2
    Views
    1,063

    Decoding applications?

    Is there a program that can allow you to view the C++ code of simple applications? I have this single file program that asks for a location of a text file, takes in information and arranges it and...
Results 1 to 11 of 11