Beginners - April 2013 (Page 54)

How to use MfcTestRunner in CppUnit
 
Hello How to use MfcTestRunner in CppUnit ? http://cppunit.sourceforge.net/doc/lastest/class_mfc_test_runner.html Where is the implementation for <MfcTest...
[1 reply] : How to use CppUnit in MFC projects? (by Observer)
Function Overloading
 
hi all While learning function overloading i came across the following example to illustrate a correct and incorrect function overloading technique float squ...
[3 replies] Last: You can think of the examples this way: when you call the function and... (by Daleth)
Structure within a class
 
I'm trying to create a class called "team" that has a structure called "player" as one of its members. There will many players so I'm also creating an array ca...
[1 reply] : It is team::player totalplayers ; (by MiiNiPaa)
Calling a function from a function
 
I am having trouble calling the function isPurePalindrome() from inside the function isPalindrome(). I have checked everything and determined the problem is at ...
[3 replies] Last: char *begin, *end; *begin = *sentence; //points to first character ... (by jim80y)
netbean and visual studio 2010
 
can i ask why my program able to run in visual studio 2010 and output those all working fine totally but when i run netbean it's run as well also but if i...
[3 replies] Last: netbeans is an IDE, not a compiler. Usually it uses gcc as a compiler.... (by MiiNiPaa)
Need help with Structs and Functions!
 
So I have been doing well in my C++ class all year, but nearing finals I sort of got behind on this chapter reading and writing files and all that good stuff. ...
[4 replies] Last: Thanks for the help, I had some help from someone else on another site... (by NeroNova)
Temperature Conversion Program
 
Hi all beginner hear and im having trouble with the program im writing, below is my code. #include <iostream> #include <cmath> #include <iomanip> #includ...
[12 replies] Last: The code works, but I get a weird value for an answer and i am unsure ... (by TECKSPEED)
Problem with an "else" statement
 
Total rookie here. I did the Cola Machine exercise and without the "else" statement it works fine but I wanted to add a response for incorrect inputs. So wi...
[4 replies] Last: Understood, thanks! (by Soulgin)
Reading, writing, and modifying a txt file
 
Hello. I haven't done any c/c++ in quite some time and I'm rusty so please bear with me. It's been equally fun and frustrating trying to relearn it. I need s...
[3 replies] Last: I think I have almost gotten this working with two .txt files. Would r... (by razezar)
MY CODE TURNED INTO SYMBOLS
 
I just finished my program and in textpad and now its all in random symbols and I cant UNDO it any help
[8 replies] Last: Try reformatting it to UTF-8 ... . (by closed account 3CXz8vqX)
by zukias
How to load PNG images in SDL?
 
I tried googling it and suprisingly nothing useful comes up. I can upload BMP images using the IMG_LoadBMP function. I assumed SDL_LoadPNG would work but accord...
[5 replies] Last: or "some.gif" and so on... (by closed account 3CXz8vqX)
For loop
 
# include <iostream> # include <cmath> int main () { using namespace std; for (int i = 1; i <= 10; i++) { cout << i << " "; ...
[3 replies] Last: for (unsigned i = 1; i <= 10; i += 2) cout << i << " "; ... (by Zaita)
by moneef
check for prime numbers using only IF-ELSE
 
hello guys i'm trying to make a program to check for a user input if it prime or not, by only using if-else statements , can you help me ? #include <iostream...
[8 replies] Last: I actually think you can do it using template recursion too, the numbe... (by Zaita)
by Zexd
A few questions...
 
I have some questions about C++... What keywords explicit, virtual, protected, continue, volatile, friend and goto do? Can program have two console windows, ...
[2 replies] Last: Yea, I know what are classes. However, I do not know what those keywor... (by Zexd)
question
 
can you tell me if these are true -an array is a list in which each element is accessed using a different identifier -there are three ways to declare a v...
[2 replies] Last: int array ; int access = 0; cout << array ; cout << array[access+... (by closed account 3CXz8vqX)
Vector
 
What is wrong with this? #include <iostream> using namespace std; #include <vector> #include <math.h> vector <double> x(16); int times; double s...
[2 replies] Last: I don't think he meant anything. Looks like a "Find the error in th... (by cnoeval)
confusion with pre and post increment)
 
I commented next to the code how I worked out the output for this code. However actual output is different from what I've got. Somebody please explain me where ...
[1 reply] : This statement x = y++ + x++; has undefined behav... (by vlad from moscow)
Function
 
What is wrong with this? // gascheck.cpp #include <iostream> using namespace std; // function prototypes char print_warning( char a); print_warni...
[1 reply] : The closing curly brace of the else block is missing. char print_w... (by Catfish3)
Functions
 
Why is this wrong? #include <iostream> using namespace std; void neg_msg(string a); string a = "Negative"; void zero_msg (string b); string b...
[1 reply] : Declaration int a; hides global declaration string a = "Negative"; ... (by vlad from moscow)
by brheat
2D Array as parameter
 
I want to create a function that accepts a 2D array as a parameter and modify/add the values to it, how would i be able to do so?
[1 reply] : If the argument will be a statical array then you can define the funct... (by vlad from moscow)
April 2013 Pages: 1... 5253545556... 83
  Archived months: [mar2013] [may2013]

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