I want to make a panel which shows four quarter final football matches, so that user can input result for each match. As I haven't got time for fancy design, I've decided to lay out text fields vertically, using Box layout. So, for one match I need two fields with 40 columns for team name (which...
Yes, when I call function without [], it works! Now I am sure I had tried it before, (cause I tried every combination, even the sensless ones :)).
The vector also works.
Many thanks
Almost there. The only error is in line
cout << it->getName() << endl;
Wholesale.cpp(162) : error C2227: left of '->getName' must point to class/struct/union
I tried with it.getName() but with same result
I have changed my array declaration into
std::vector<Supplier*> suppliers;
and put a definition as you sad, but I got 27 compile errors, the first being:
error C2039: 'vector' : is not a member of 'std'
and also the last two:
Wholesale.cpp(148) : error C2143: syntax error : missing ';' before...
I've got a class Supplier and in main program I have declared an array:
Supplier* suppliers[10];
then I filled it with ten objects.
Now I need to call a supMask() function from the other file, mask.cpp, where I defined it like this:
void supMask(Supplier* suppliers[]) {
for(int i=0...
Thank you for qick response. No, we haven't learned new delete either. But this is how I think: every char pointer we can assign a string, like this
char *string2 = "Hello";
so because I declared an array of char pointers, I should be able to assign a string to each, ie
suppliers[0][0]...
Yes but we haven't learnd vectors yet. I have seen the example in two different books for this thing:
infile>>string1>>string2>>string3...
and it would put words from file separated by space respectively into strings. In my case instead of strings, I have...
Hi everybody. I want to put 4 strings from a file into a two-dimensional array. This is how I declared it:
char* suppliers[10][4];
I intend to have a file wich stores 10 suppliers, all having 4 attributes: Name, Address, Contact and Telefone.
I have edited the file suppliers.txt, each...
I have the same problem and can't find the solution, and this is the only topic about it I have found (the problem seems to be rare).
10 months ago, a friend of mine, who had just bought the laptop had the problem with the mouse. The pointer would after some time start straying aside, to the...
I have finished a vb6 application and when I try to make setup with P&D wizard, the following happens
I choose Standard Setup Package as Package Type. Then after I choose the folder where the package will be assembled I got the list whith files for which the dependency info couldn't be found...
I have finished a vb6 application and when I try to make setup with P&D wizard, the following happens
I choose Standard Setup Package as Package Type. Then after I choose the folder where the package will be assembled I got the list whith files for which the dependency info couldn't be found...
Hi everybody
I have a table name stored in a variable. Now is there any way that I can use that variable in SELECT statement.
Example:
Dim rs As Recordset
Dim whichmenu As string
whichmenu = "tablename"
.
.
rsname = "SELECT * FROM whichmenu WHERE field1 ='" &_ something &...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.