Beginners (Page 75)

Virtual Destructors
 
Hello everybody, I understand the use of virtual destructors but i don't get why should one put ...
[2 replies] Last: aha okay. thank you!! (by JasBeckC)
Run-Time Check Failure #3 - The variable 'c' is being used without being initialized.
 
Gah, trying to write functions for the first time. The objective is the prompt the user to enter thr...
[12 replies] Last: Also, having the prototype inside a function makes the prototype only ... (by Esslercuffi)
Grade Book Assignment?
 
Hello, I'm in a 10th Grade Computer Science class, and we're currently working on C++. I'm just tryi...
[12 replies] Last: I don't understand your math. Let's try it another way. First, you nee... (by dhayden)
print the all information to my file.dat
 
hey still working on my coding as the coding state if I type 1 it will print my output and I want c...
[1 reply] : Open a output stream and send to it. #include <iostream> #include <s... (by mobotus)
by iluv41
print size of an array?
 
I have an array and in one function i need to print the size of it in megabytes Is there a way to d...
[7 replies] Last: All entries in the array has the same size, the way sizeof computes th... (by Peter87)
by cotyp
labHelp_Beginner
 
Hey guys my name is Coty i am a brand new programmer taking a c++ class in college and i am having a...
[4 replies] Last: I know this might not look so pretty but i got the program to do what ... (by cotyp)
printf my name
 
hey guys i want writing a code which print my first name and last name separately so I wrote sample...
[2 replies] Last: And if you can't use strings you are going to need to make a char arra... (by mobotus)
by atdc94
Input Files
 
I am having trouble writing this code. I am somewhat close I think but I really need some help. Here...
[5 replies] Last: I just don't know how to get it to the output format. Until you can ... (by jlb)
How to open a file directly?
 
Hey guys, I'm looking to find out how I might be able to open a file directly through the console. ...
[5 replies] Last: I want to point out that the windows command prompt does this already ... (by kevinkjt2000)
by Ganado
Will compiler ignore the return statement?
 
From discussions of i++ vs ++i, I realize that the compiler will indeed be able to optimize and get ...
[15 replies] Last: ..... has been optimised to a single statement: return 25000; All ... (by TheIdeasMan)
Class questions
 
Is this code Critter::Critter(int hunger) : m_Hunger(hunger) { cout << "A critter has been...
[1 reply] : For primitive types yes. For more complex types second version is equi... (by MiiNiPaa)
by mexi
Matrix class and operator+ function
 
I created a matrix class and want to add 2 matrix(2x2). My compiler(Borland C502) is successful. So ...
[2 replies] Last: Line 17 The + operator doesn't need friend. http://www.cplusplus.com... (by mobotus)
by Atton
MathPad
 
I have been making efforts to create a calculator using C++. However with every project I make I hit...
[6 replies] Last: Thanks I might have hit the heart of the problem. (by Atton)
OStream Operator overloading
 
Why is it that I am still getting this error after I overload the operator<<? 2 no operator "<<" ...
[2 replies] Last: I see.. Thanks.. I got it now (by procastination)
What is left and right operand?
 
This is a dumb question but when i am reading a tutorial sometimes i see then left and right operand...
[1 reply] : X + Y Here X is the left operand of operator+ (as it is on the left ... (by MiiNiPaa)
by mexi
Overfloading operator* for matrix_vector multiplication
 
Hello everyone. I writed a program to multiply a matrix with a vector using operator*. When I compi...
[5 replies] Last: Thank @ShodanDo, @Ispil very much. I repaired my program and it runned... (by mexi)
Play my game !
 
this is the source code of a game i created. it contains : -snail races -tic tac toe -calculat...
[6 replies] Last: in my Orwell Dev C++ (TDM GCC 4.8.1, ISO C++11) there is no single wa... (by MiiNiPaa)
by Musi
Initialize const global variable.
 
I've been trying to use const global variables but they never seem to be initialized even after main...
[4 replies] Last: Thanks a bunch JLBorges, I actually just found out whats causing the p... (by Musi)
enum class inside a class?
 
Is it okay to declare an enum class inside a class? Cause Strongly type enums has already a scope...
[1 reply] : YES (by shadowCODE)
using letters inside while() and If() conditions
 
Hello, This program that I am trying to write is supposed to take in data from a user at a diving c...
[3 replies] Last: change prompt from std::string to char . Also in line 46, y i... (by shadowCODE)
Pages: 1... 7374757677... 130
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.