So suppose I have a big C++ program with a class called Hello.
Suppose furthermore that Hello has 3 methods foo(), bar(), asdf().
Now, my question what the usual way to store the classes is....
Type: Posts; User: sjweinberg
So suppose I have a big C++ program with a class called Hello.
Suppose furthermore that Hello has 3 methods foo(), bar(), asdf().
Now, my question what the usual way to store the classes is....
I don't think this quite solves my problem, but that's because I was a little unclear (sorry).
What I really want to do is write this out, and then be able to read it back in in the same format. ...
Hello.
So first of all, I'm used to C, but not C++, so I probably need a little bit more explanation than is normal.
Here is my question:
Suppose I have a class like this
class Hello
{
OKAY!
Sorry everyone. Turned out I had some funky stuff in my Makefile. It was stuff that other people in this lab made, and I didnt know enough about Makefiles to know that it was causing a...
getip is defined in a file called test_support.cpp.
Here is that file:
#include<stdio.h>
#include<stdlib.h>
#include <iostream>
#include <fstream>
#include <fcntl.h>
Sure! Here is the code with the comments taken out:
#ifndef TEST_SUPPORT_H
#define TEST_SUPPORT_H
#ifndef ON
#define ON 0
#endif
Yeah, I'd like to avoid posting the entire program if possible. It's actually quite long, even if I cut out a lot to simplify. There are no global variables so that isn't the problem.
Here is an...
Well I have things like
#define ON 1
is that what you mean by a global variable?
I also tried to recreate the error with some smaller code but couldn't. I'm really getting confused because I...
By inline, do you mean in the source code files? As in, did I put say
void goodfunc(void);
in the header but never mentioned it anywhere else?
Unfortunately, I already put those in...
I'll check to make sure I did it right, but I dont think that's the problem.
Hello!
So I am working on a rather large program using many .cpp files and ,h files and compiling them all together wit a Makefile.
I'm not the only one working on this project, and my part of...
Hello
I am trying to output to a file the binary form of some unsigned integers. More specifically, I only want the first two bytes from those integers.
In the following code, inp is a pointer...