meh nvm I finished coding it myself....
Type: Posts; User: TheLoneWolf32
meh nvm I finished coding it myself....
meh same error still...I would just use vectors but the problem is knowing what size to put it at for efficiency(sp?)...so I use a apstring to get the word and its length...and use the length for the...
I am trying to code a Palindrome program...I keep on getting a runtime error called
Index out of range: 3 string: mom
yeah I can't figure out why though...here's my code
void Palindrome()...
Never mind I think I figured out the character issue by just declaring another thing called
ifstream instreamTwo("C:\\STR\\melville.txt");
right before the charcter loop so it should...
BTW I am a newbie C++ programmer if you can see....so I don't know too mcuh about the language.
Okay I figured out the word thing...I used MS word to count the words and yeah that was wrong...yeah so I used someone elses code to see how many words were there and I was right...now on to the...
Well the characters are a problem just one I am not dealing with right now...but the words for some reason is only half of what it should be and I can't find any logic problems with the code....yeah...
Okay I have code that is supposed to get a number of words in a text file....for some reason it will half of the number of words in the text file....There are actually 6338 words in this text...
Yeah I got some code and I keep on getting a linking error called
-error LNK2001: unresolved external symbol _main
-fatal error LNK1120: 1 unresolved externals
Ill post the code and the extra...
Can someone tell me what a constructer and an overloaded constructer are?
Okay heres the code...Ive just finished programming this, is there any way to save space. It seems a bit big. Also I deleted my name from privacy reasons.
//This program will play ASCLLAND -...
Okay I am a basic C++ student in high school...I am to write a function on getting a GCF from 2 integers...I am first thinking of the logic of the problem first and how to solve it...So far I've come...
thanks...I've been cracking at this program for some bit of time...I guess I'm not that logical...or I should write down my programs before hand instead of hacking away at code.
void Compact(apvector<int> &List, int &N)
//Pre:List contains integers from 0...N-1
//PostCondition all 0's have been removed from the list; N is reduced as appropriate
{
for(int i = 0; N >...
void Compact(apvector<int> &List, int &N)
//Pre:List contains integers from 0...N-1
//PostCondition all 0's have been removed from the list; N is reduced as appropriate
{
for(int i = 0; N >...