Forum: C++ May 20th, 2008 |
| Replies: 4 Views: 465 I found out what my problem was, I posted this sample code to show you my overall srucure not for it to be evaluated. The problem was that the file.h was suppose to generate a temp file I was wrong.... |
Forum: C++ May 18th, 2008 |
| Replies: 4 Views: 648 is it outputting
2
7
10
3
15
I bet it is, you wonder what might be the problem now huh?
Writing out in words what your doing goes a long way |
Forum: C++ May 18th, 2008 |
| Replies: 4 Views: 1,728 Please take this help lightly , don't be a sponge actually try to understand why the function I show you works and you will be better off. All programs can be written using regular conditional... |
Forum: C++ May 18th, 2008 |
| Replies: 4 Views: 465 I think my real problem is that when I use this code
NUM_STUD temp_m("temp_avg.txt",6);
temp_m.ADD_STUD();
it generates a empty "temp.txt" file that I'm looking for, I don't if the code above... |
Forum: C++ May 17th, 2008 |
| Replies: 4 Views: 465 This is the file I will be calling from, basically it stores something into a file called "temp.txt, so let's assume that it works and the problem is not here. This is the "file.h" file.
#include... |
Forum: C++ May 8th, 2008 |
| Replies: 15 Views: 1,456 first think about the math behind it all
0+0=0 C=0
1+0=1 C=0
0+1=1 C=0
1+1=0 C=1
Your function is
void binaryAdd(int* sum, int& cBit, const int* bin1, const int* bin2) |
Forum: C++ May 7th, 2008 |
| Replies: 2 Views: 563 worked like a charm thank you very much, SOLVED |
Forum: C++ May 6th, 2008 |
| Replies: 2 Views: 563 I have succesfully done this but with one error. using
...
ifstream input("infile.txt",ios::in)
while(input.good())
{
input.getline(file,100);
outputfile<<file<<endl;
}
then I... |
Forum: C++ Apr 1st, 2008 |
| Replies: 3 Views: 1,107 true so call conditional statements like this
if (strcmp(command1,"enter")>0)
if (strcmp(command1,"enter")!=0)
should work |
Forum: C++ Apr 1st, 2008 |
| Replies: 2 Views: 1,133 #include <iostream.h>
#include <string.h>
#include <fstream.h>
ofstream output_file("out.4", ios::app);
class MERGE_FILE{
public: // public interfaces for this class |
Forum: C++ Apr 26th, 2007 |
| Replies: 12 Views: 11,252 I can't use that method, my teacher might not have the boost api and i'll get an F |
Forum: C++ Apr 26th, 2007 |
| Replies: 12 Views: 11,252 I dont think this works please be more specific |
Forum: C++ Apr 26th, 2007 |
| Replies: 12 Views: 11,252 ok thank you for the strtok i see it removes punctuation, but the problem is i have the input file txt stored in a string variable. how do i make strtok read the string and remove punctuation. and in... |
Forum: C++ Apr 26th, 2007 |
| Replies: 12 Views: 11,252 Hi every one I have a big problem, I need help with creating a program which reads every third word in a text file and excludes puncuation like -,?.!'" etc.. so far none of my work need code or... |