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
Type: Posts; User: Hybird
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
Say I have the following structs:
struct stA
{
int Num;
stB Other[100];
}One;
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...
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:
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!
Ok still not working, I have declared the structs correct.. I hope. as here
struct stMenuItem
{
int index;
char desc[MAX];
};
and..
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....
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;
...
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....
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...
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...