Beginners - September 2010 (Page 27)

Inconsistent 'if' statements
 
I don't understand this one at all. The program below is designed to take three integer inputs and determine which one is the middle (ie is neither the largest ...
[2 replies] Last: Thanks for the help, especially with the use of ==, and it did lead me... (by rassilon256)
by hotham
2X2 Matrix Error Messages
 
Hi, I'm a newbie trying to debug my program dealing with a 2x2 matrix and 2 datasets. The program has a function to calculate the determinant, a Boolean functi...
[9 replies] Last: I took out the definition of matrix and sing and the program ran prope... (by hotham)
hi all :D
 
First, sorry for that title I´m not very good in english and dont know how to write it :D Im a beginner in c++ I only want to know one thing :) I have...
[2 replies] Last: thx :) (by julof26)
-0.0f???
 
Hi, why do I get the answer -0.0f in my float multiplication? Kinda weard since it will interfere with calculations later interpreting it as -1.0f. what am I do...
[1 reply] : It has something to do with how the float is multiplied. I dont know ... (by Thenero)
Empty controlled statement error.
 
Getting this warning 'empty controlled statement found' I can normally spot these, but in this case I cannot. Here is a portion of the code. template <...
[2 replies] Last: Thanks Thenero. I cannot believe i couldnt spot such a basic error. I... (by AlphaBravo)
Getting Error "looser throw specifier for `virtual APIEx::~APIEx()'"
 
Hi I am new to C++. I am getting this error when i am compiing the below piece of code. I am using eclipse Helios IDE for windows 32. #ifndef APIEX_H_ #defi...
[5 replies] Last: Thanks..Its solved. (by ashoksmohanty)
Adding objects to the front of a vector
 
Is there an easy way to add objects to the front of a vector? I know that myvector.push_back(myobject) will add myobject to the back of myvector. Is there a sim...
[2 replies] Last: Thanks, I've never really used any of the STL containers besides the v... (by pabloist)
Artificial timer
 
for the game i am making i have decided to use a subtraction system to creat a "timer" the math makes the total 60 including room for error. what i am try...
[no replies]
by vlad61
If-else-if
 
int main() { char choice; cout<<"(Y/N): "; cin>>choice; if (choice == 'Y'||'y'){ cout<<"\nGlad I got that right, thanks for your help."; } ...
[3 replies] Last: || examines both sides of it. If either is true, then the result is t... (by Disch)
stl list
 
i have a dynamic memory containing some characters...i need to push the characters into a list and i do it by list <char*> lst; lst.push_back(ptr); //wher...
[9 replies] Last: list <char*> lst1; int main() { { ... (by jackel7777)
question about the erase() member function
 
I am writing a small program that will allow a user to enter video game titles, list them, and remove specific titles. Here is the code: #include <iostre...
[1 reply] : erase() takes an iterator. The iterator you have is finder. It is mo... (by jsmith)
Closing the program
 
hi there i am putting the finishing touches on my game and testing the end game functions by tying them into the first page you access. however when i run it...
[4 replies] Last: but thanks for the help none the less, your comment got me to think ab... (by pathios)
enum command
 
hello, i've only just starting looking at the enum command, and whilst i can see how it could be really useful, in every example i've seen it's been used in t...
[5 replies] Last: You're welcome. (by Kyon)
hi friends,
 
i want to write a programe that convert decimal to binary i write two codes first without using function and second is using function,my first code is working p...
[3 replies] Last: but if i use iostream instead of iostream.h my compiler not compile ... (by Null)
assertion failed
 
Hi people, I've that code.. when I do debbuging the code's Ok but message error starts up and shows me additional error:debbug assertion failed...when I remove ...
[4 replies] Last: You should only call delete if you allocated your pointer using new ... (by Galik)
by xcynic
Tried to make login mechanism.
 
So I tried to make a very simple login thingy. This is what i've got so far (Not working) Source: #include <iostream> using namespace std; int m...
[5 replies] Last: There's no need to fear, the only concept you need to get why your com... (by Kyon)
'while' loop using increment doesn't produce expected results
 
I know why it doesn't, I've done something wrong. The trouble is that the code is legitimate according to Dev-C++ and the syntax makes sense to me. Basically...
[11 replies] Last: Thank you all so much. Perfect! And I've learnt something that I hopef... (by rassilon256)
How do I include a different file into my main.cpp?
 
Like I want to include a file which has different code in it. I forgot how to do that :s. Also, my question is when I do that, it's basically like putting in al...
[5 replies] Last: It depends on the situation. If your header file is intended to be use... (by Galik)
debbug assertion failure
 
Ahoj lidi, já jsem ten kód .. když jsem si debbuging kód je v pořádku, ale chybové zprávy začíná a ukazuje mi další chyba: debbug tvrzení nepodař...
[no replies]
A funny question, i is short for what in for-statement?
 
Hi everyone I'm a student who're learning computer science. Now we're learning compiler theory and it tells us a word identifier then one day my roommate asked...
[13 replies] Last: I made a mistake with my previous post that I didn't notice. Sorry. (by chrisname)
September 2010 Pages: 1... 2526272829... 32
  Archived months: [aug2010] [oct2010]

This is an archived page. To post a new message, go to the current page.