hurray thank you. it successfully compiled. I had a copy constructor prototype but no definition because I thought I would get the default copy constructor. apparently I was misinformed
Type: Posts; User: avatarofhope2
hurray thank you. it successfully compiled. I had a copy constructor prototype but no definition because I thought I would get the default copy constructor. apparently I was misinformed
I think I have sufficiently resolved the previous problems, but I have a new compiler error that I have never seen before. If anyone here has seen something like this error and has any insight into...
yeah, I just copied his thing and indented it. I'm pretty sure he understood what I was saying. Besides the way i had it would merely not declare that the pair was rejected.
well, perhaps we can get a free source control program set up to be accessable through the internet. I have team speak and vent (though team speak is free). I have an art major friend that I could...
well your nested for loops should work. stylistically it should look like this though:
if (user == username)
if (pass == password)
cout << "correct username and password"
...
imagine you have two functions:
int count_up(int from, int distance); //returns the ending position
int count_down(int from, int distance); //returns the ending position
call these in a...
Nah, it will loop around to the negative ones once it reaches INT_MAX right?
I was confused about what GIYF is and so I thought I would Google it. Then I realized - OOOOOOOOh, Google is your friend.
I still didn't know what JFGI, STFW, and RTFM were, but using the advice...
so in C++, designers removed the functionality to define a struct within the definition of another struct? I pulled the struct out like you suggested and I received much fewer compiler errors (5...
I've used 310/580 GBs of my space, and then I have a 500 GB external backup drive. I was rather amazed about a month ago when I saw a 1 Terabyte HDD at Best Buy.
I'm betting this is a free labor request, but its a good idea to make games with a group to get experience for doing it for a living. I might be interested in helping. I need a good portfolio piece....
dwks has given everything you need to know without completely giving the answer. If you still can't get it, ask a question but don't ask for the answer.
#include <stdio.h>
#include <stdlib.h>
int atoi ( const char * str );
characters can work with the > and < operators. you could look at the input one character at a time and make sure it isn't a letter.
//if the character is a number
if( character >= '0' &&...
endl flushes the buffer? I did not know that. sweet :)
I would suggest you find a way to get experience while you are in school. I've heard in some cases that a masters degree with no industry experience makes you less hireable because they have to pay...
I've attached the API because I would like to try to pass a class into the functions before I redesign my classes, but the code will not compile as c++ code. I discourage you from looking at the...
I don't have much experience with dynamic arrays but can't you just say
char *x[WIDTH];//array of pointers to chars (one for each column)
for(i=0;i<WIDTH;++i)
x[i] = new char[HEIGHT];
you could make your own using strings if you have the time.
the declaration and definition are different. Thats what I thought the problem was
...
int max(float number1,float number2,);
...
float max(float number11,float number22)
...
edit: also...
Yes, if you make the previously mentioned changes it should work.
If you use cout, and then want to clear the screen, you should always first flush the stream with
cout<<flush;
The system...
I've received good suggestions so far so thank you. I think I shall make this forum my home.
I had tried changing the .c extension to .cpp earlier this evening but I think it caused some...
This is my first time here, so I hope I meet the expectations for the forums.
I am trying to make a futures contracts trading program interfacing with interactive brokers' twsapi. I found some c...