Beginners - March 2014 (Page 29)

by gduong
Class Virtual pointers
 
I am getting an error on line 14 Error is .cpp(14): error C3867: 'Ship::getBuilt': function call missing argument list; use '&Ship::getBuilt' to create a point...
[2 replies] Last: Oh god i am so bad. Thank you (by gduong)
Problem with overloading << and ++ operators
 
Hello i have 2 similar small programs using the overloading of << and ++ operator but i don't understand why they give me different results. It would be reall...
[9 replies] Last: That just means whoever wrote the test doesn't know the subject. All t... (by Cubbi)
by n00b
My first C++ Prog.
 
I am new to C++. I really like it, and started a program as a test of what I have been reading in the book I purchased. My first goal is to get used to cout, ci...
[6 replies] Last: Thank you keskiverto. I have just started and can see you have already... (by n00b)
by cuda11
Just starting
 
Where do I download C plus plus for free? Thanks
[1 reply] : You mean an IDE? The express version of Microsoft visual studio is fr... (by Yanson)
Triangle help solve problem
 
User enters one number with word example: three. Possible entries are numbers from one to nine. Write out words(numbers) in seperated lines. In every seperate l...
[8 replies] Last: Sorry but i dont understand what u meant with the exercise... for (i... (by lolek4551)
How to count number of tries of the user
 
Ok, so I made this program. It is working just fine. But I don't know how to make it calculate the number of tries i took the user to guess the correct number. ...
[no replies]
System String and Std String Conversation
 
i have a std string variable in which i want to enter system string^ value.. how to do it? how to convert? example: string a; String^ b; a = b; // its error...
[4 replies] Last: Yes. Windows Forms is an API included with .NET. In order to use this ... (by booradley60)
File Handling(deleting) problem?
 
this works fine but when i go in option 6. Close An Account , it doesnt function well. For example: Created account number : S12345678 then if i go to 6...
[1 reply] : //*************************************************************** //... (by zezima1993)
/ before *
 
I don`t understand why the / would be done before *? cout << 30 / 3 * 21 % 5 << endl;
[2 replies] Last: Oh that explains a lot, thank you Disch :D (by closed account EwCjE3v7)
Program does not turn off
 
Okay I have updated this code to not use the main() call. But I still would like to know what caused the problem in my old code(below). Do the following 1. Com...
[10 replies] Last: Yea it should go back to the while right? (by closed account EwCjE3v7)
by enemy
struct
 
Please, who sees where there is an error? #include <iostream> #include<string> using namespace std; struct car{ int weight; string ...
[2 replies] Last: Oh, shit, yes!!! Too many data to see the sheer theory!!! Many thanks!... (by enemy)
Impossible evaluation
 
Exercise: Parenthesize the following expr to show how it is evuluated. 12 / 3 * 4 + 5 * 15 + 24 % 4 / 2 Can`t solve it, can someone help me with it, othe...
[no replies]
by dean93
Help with Class member function
 
I'm suppose to create a program with a class with four members function to calculate the area of a triangle, square, hexagon, octagon with you enter the length ...
[no replies]
Deleting element from arra
 
I am getting this error in following program.What is wrong in this? task_constructor.cpp:18:7: error: expected unqualified-id before ‘delete’ task_construc...
[2 replies] Last: Thank you.. I got it.. Its working fine now. (by Tushar Kathuria)
const variable inside of a declaration of a class...
 
/* declaration of class... */ #ifndef DECKOFCARDS_H #define DECKOFCARDS_H class DeckOfCards { public: const int SEEDS = 4;//can I declare here a ...
[5 replies] Last: This is just for const variables or what? It's also true of static ... (by MikeyBoy)
no known conversion from class ‘Date’ to class ‘Date&’
 
Hi everyone! I have problems with class composition. I have a Date class where I can store dates, e.g. 12/27/2009, that is mm/dd/yy. Then I have a class Emplo...
[no replies]
How to make a program select a random number?
 
Ok so I made this program and it is working just the way it is supposed to be. But I can't figure out that how to make it enter a random number, which the user ...
[7 replies] Last: 1. What should the value of 'tries' be at start, before the user has m... (by keskiverto)
by ca2004
Problems with int and double variables
 
Hello everyone, I am having a problem when I define a variable as a result of the sum and division of other ones. I have: double Emin=0.01; double Ema...
[1 reply] : The problem is that it is not 7998, but actually 7997.9999999999999999... (by LB)
Need help to fix my function! (its supposed to check if two words are the same
 
I dont know what is wrong with my code. Can anybody help? #include <iostream> using namespace std; bool isEqual(char word1 , char word2 ) { bool ch...
[2 replies] Last: Exactly what KBW said. bool isEqual(char word1 , char word2 ) { b... (by SamuelAdams)
Designing string/char functions, pointers
 
Testing own functions to support string defined as char or char* Must NOT use the <string> library 1. myStrCopy: the whole string a. in: source str...
[no replies]
March 2014 Pages: 1... 2728293031... 79
  Archived months: [feb2014] [apr2014]

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