ok the OS would be Linux Ubuntu specifically
the compiler g++
the application type console is fine
the printer it'd actually be a couple are networked.
I guess I was thinking the printers could...
Type: Posts; User: Brimak86
ok the OS would be Linux Ubuntu specifically
the compiler g++
the application type console is fine
the printer it'd actually be a couple are networked.
I guess I was thinking the printers could...
Hey I was wondering if it was possible to send the contents of say an array to a printer. I've searched but it seems like all I've found is printing the page one pixel at a time, through coordinates,...
I need to write a program that uses a binary search tree, and linear linked list, but I can only use 1 struct, are there any tutorials about how to do either one without using a structure?
Thanks for the responses, so I'm pretty sure its line 95, so I did try to change it to a pointer.
*ptr = stream[i];
s = atoi(&ptr);
that didn't fix it, I thought that was...
I'm trying to read in text from a file exclusive or it against a random number, and output that to another file. I thought this should work, but it seg faults as soon as I run my program. Any help...
um, I'm still unclear. I need to read text in and compare it with random numbers. So I have it compiling with one warning, but it seg faults right away and I cant see why.
The warning is passing...
I have to write a stream cipher using the exclusive-OR (XOR), I have to read text from a file and XOR it to rand. How do I compare the two, I just want to know which one I need to convert, and...
I'm writing a program for school, and just wanted to know is there a flag to tell which operating system your code is on? If so what's the windows flag keyword?
I have a program for class, and I need to implement a timer, just like a stopwatch, time the milliseconds between displaying something and the user inputting something. Someone told me to call...
That did it thanks a lot
I'm trying to use a random number generator to index through an array. I get the numbers and have printed them to the screen but I cant seem to get anything to work past that. I've tried to store...
I'm still getting errors when I go to compile I changed the thing you all have suggested, so now it reads:
static const char *list[100] = { "the", "of", "and", "a", "to", "in", "is", "you",...
Can I treat a pointer to a list of chars, just like an array in C++? I have an assignment, he gave us a defined list of pointers to chars.
static char *list[100] = { "the", "of", "and", "a",...
ok, you'r both right, that did it. Thanks so much
I have an assignment for school, to make a long story short I'm having trouble with the random number generator. I get two errors saying "error: expected expression before ‘=’ token" they give the...
I'm working on a program thats supposed to read a line in, then pass it to a function which prints the line one word per line, like this,
>>>> ENTER A LINE:
this is a test
<<<< RESULT (4...
ok so I worked a little more on this, now I'm getting errors saying line 36 and 39 fprintf is not a function. I want to print the stuff to an external data file, I thought it was fprintf in C, any...
I'm working on a program for school, and its supposed to accept a command line argument to print to a file, but it has to be functional both ways. I cant quite figure out where I'm going wrong it...
I just wanted to say thanks to all those who responded, I was able to get the program running and turned in, thanks.
I figured I would post all the code I have for the insert, so you can hopefully figure out where I was headed with this.
...
foodm and location are both in the main, we're implementing ADT's, and cant cin or cout from a class, so I'm trying to pass them from the main to the class.
The struct food_TYPE is declared in...
I'm trying to finish up some homework, and keep getting the "invalid conversion from `char' to `const char*' " error. I'm trying to insert into a linear linked list, any help would be appericated. ...