when I say
struct some_struct{
string Name;
int Count;
};
some_struct MyStruct[5];
it is okay, but when I say
MyStruct[3].Name="Todd";
I recieve a cannot allocate 0 sized constant array
does anyone know why, I've include just about every library there is just to be safe, and I am...
I just fixed my own code, thanks for the suggestions but none would work. I needed a function that would distinguish the words when seperated by punctuation, like
word1,word2;word3 ;done
I am getting a zero sized array constant. The rest of the errors are just do to the array being unrecognized. The header file is included. Here's some code:
struct op_table{
string Name;
string OpCode;
string Rs;
string Rt;
string Rd;
string Shamt;
string Funct;
};
op_table OPTAB[31]...
I made an array of struct and put it in a header file in visual c++. it gave me 300 errors. I couldn't find anything wrong with code, so I pasted into a stump main file. then I had no errors. does anyone know how I cain remove the table from the main program without recieveing errors?
I am writing an assembler and my getWord function is not working too well. Does any one know of a function that can be used to parse a string for individual words or am I just stuck with fixing my code?
I have this simple hash table but I am getting an access error, the code is
// Include Directives
// ------------------
#include <cmath>
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
const int MAX_KEYS=1000;
const string...
Does anybody know if the system( ) function will use the same command line arguments as the program that the function is in? Ex.
void main(int argc, char *argv){
...
system( program arg1 arg2 arg3);
}
Am I correct in thinking that arg1, arg2, and arg3 are totally independent of main's...
Yes, my goal is to have one executable that feeds from the command line. This program interprets the command line and look for tokens that activate the other programs. Ex. A program right.exe that checks if a triangle is a right triangle, Count.exe that counts words in a file, and Search.exe...
Can anyone tell me how to link multiple programs?
I'm using this
void main(int argc, char argv){
...
if(...)
system("program1");
else if(...)
system("program2");
else if(...)
system("program3");
exit(0);
But this is giving me core dumps, which I do not...
That's what the program looks like, believe it or not. Does system() call the object or executable file? And if it is executable, with function calls object files?
Can anyone tell me how to link multiple .exe files. I wrote a program that called to three different executables given certain situations. The three programs run fine, but in when I linked them, I get a multiple main() error message. I am using system() to call the other programs. Any help...
Hi.
I'm trying to do something that I thought would be simple:
For a given record in a form (Job Entry Form), I would like to count the total number of stores assigned to that job. The stores are assigned through the use of a subform (Store Assignment Subform) on the Job entry form. One the...
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.