Search found 5 matches
- Sun Apr 01, 2012 11:29 am
- Forum: Programming Discussion
- Topic: resource advice(book examples wont compile)
- Replies: 8
- Views: 2039
Re: resource advice(book examples wont compile)
I'm using Microsoft visual c++ express(note:i understand its not the easiest compiler to go with but i need to get used to it because i may be getting a job soon that will demand it) in responce to My advice to you is to NEVER TRUST EXAMPLES. They usually contain pseudo and or untested code. yeah i ...
- Fri Mar 30, 2012 10:58 pm
- Forum: Programming Discussion
- Topic: resource advice(book examples wont compile)
- Replies: 8
- Views: 2039
Re: resource advice(book examples wont compile)
this is the error error C2676: binary '[' : 'main::fields' does not define this operator or a conversion to a type acceptable to the predefined operator and it refers to this line of code. const string WORDS[NUM_WORDS][NUM_FIELDS] = although there are other errors they all seem to stem from this one...
- Fri Mar 30, 2012 7:47 am
- Forum: Programming Discussion
- Topic: resource advice(book examples wont compile)
- Replies: 8
- Views: 2039
resource advice(book examples wont compile)
hey i've been trying to learn c++ and have tried many books looking for one best suited to my needs. it seems that every one i try the examples wont compile including this one and i'm directly downloading the source code from the publishers website. its a huge problem because when your learning a la...
- Sun Mar 25, 2012 1:18 am
- Forum: Programming Discussion
- Topic: overloaded funtion with sqrt c++(helped)
- Replies: 2
- Views: 774
Re: overloaded funtion with sqrt c++
thanks, i actually got it from a c++ book, maybe its not the best resource...not the assignment every line of code you see is in fact, not actually mine although it would be just as bad. but yeah, thank you for a better prime number code, and thanks again.
- Sun Mar 25, 2012 12:25 am
- Forum: Programming Discussion
- Topic: overloaded funtion with sqrt c++(helped)
- Replies: 2
- Views: 774
overloaded funtion with sqrt c++(helped)
the error reads as "more than one instance of overloaded funtion sqrt in argument list" is there something wrong with #include <cmath>? #include "stdafx.h" #include <iostream> #include <cmath> using namespace std; int main() { cout<<"please enter a value to be evaluated as p...