Beginners (Page 79)

by enemy
change value in class using set?
 
HELLO! Please, could someone help me how to change price of book in that program using method set2?...
[2 replies] Last: Hello! I have set price of the toy to 11.22 andnow I woull like to cha... (by enemy)
Little help for include guards if possible...
 
image1: http://prntscr.com/30i7z0 image2: http://prntscr.com/30i8tj how can i prevent including ...
[3 replies] Last: Really? I wasn't aware, cheers :) Though I must say this convention se... (by fafner)
Problems with while loop
 
Hey guys. Could you tell my what I'm doing wrong. While loop show me one extra line. #include <io...
[1 reply] : while (fd.good()){ fd >> n; while (fd >> n){ (by MiiNiPaa)
by enemy
double in class?
 
Hel)lo! Please, why is that program not outputting price (typ double )? #include<iostream> ...
[1 reply] : because you declare price as string ,change it to double and see (by Techno01)
Complete Noob SFML classes question.
 
Hi, I'm new here. I have seen these forums before and they always seem extreemly friendly. I learnt ...
[7 replies] Last: Not really... you've basically just moved main into the constructor. ... (by Disch)
by enemy
How to multiply with another variable in class?
 
Hello! Please, I wish to cound second ID for the products objects of the class. WHERE should I decla...
[3 replies] Last: You can assing it in your constructor product::product(int a, strin... (by Techno01)
Dynamic Arrays & Pointers
 
I'm trying to add numbers that are larger than the max value for an int. So I'm storing the numbers ...
[1 reply] : Are you sure check again # include <iostream> using namespace std; ... (by Techno01)
Multiple Source files?
 
Hey guys! I just figured out that I may missed a important point in C++ or programming itself. Ac...
[2 replies] Last: Well since I didn't had that much of a tutorial for "inline" (going t... (by Falke88)
Can't I use a header file in another?
 
Hey Guys! I'm using two headers in my program. One is called Screen_output.h and Controls.h ...
[10 replies] Last: Ha....wow...simple as that as it seems :) thx bro think the other one... (by Falke88)
pointer
 
I don't know why the output is 4 2 4 because I don't understand line 7 #include <iost...
[2 replies] Last: int x = 5; int y; int* px; int* py = &y; // py points to y px = &x ;... (by nvrmnd)
Look for a data structure like sets in Pascal
 
In Pascal, I can write a boolean expression like ch in ['Y', 'y', 'N', 'n'] to find whether the ch...
[7 replies] Last: You need to write these helper function once. Put them into header fil... (by MiiNiPaa)
Hi i have strange problem im new in c++
 
when i compile this program its only show me the C why?!?? #include <iostream> using namespa...
[4 replies] Last: thanks pal :)) (by raminlich)
by bbb718
help n eed quick help on easy problem
 
need quick help how the heck do i set this up been at it for 4 hours now and nothing The main p...
[5 replies] Last: Err,. That statement is not for you Peppercorn, it's for bbb718, I bel... (by LuminaChen)
Loops and Functions
 
I'm creating a small program that asks you to type in a number to display a characters Bio. It work...
[2 replies] Last: You have been very helpful thank you for taking the time to reply! (by superdaz83)
by enemy
How many elements has that array???
 
Hello! If U rememebr this program, array a /array z should have 3 elements each. In first functi...
[4 replies] Last: Many thanks! Clear now! (by enemy)
Any help plz !
 
http://ideone.com/MIV4h4 The grades is given out of 100 and it have to be out of 20 I faced a l...
[3 replies] Last: The formula is: for (int i = 0; i < NUM_GRADES; ++i) total += gra... (by Stewbond)
Ilteration code C++
 
Hello. I need a simple code which would calculate me this (need to use one of theses functions: whi...
[1 reply] : int n; std::cin >> n; double sum = 0; for (int i = 1; i <= n; ++i) ... (by MiiNiPaa)
by enemy
How to empty array in another function?
 
Hello! I generated an array in pus function. Then, I want to empty it in po fundtion. Please, how to...
[12 replies] Last: Now it WORKS!!! THNANKS!!! (by enemy)
If else misbehaving.
 
I have to write a program that outputs certain sentences based on the size of a number. #include...
[4 replies] Last: There is no need to check if it is greater than 0 on line 19. If it is... (by giblit)
Pointer and Memory Questions.
 
Hello, I've wrote a simple program that uses pointers and dynamic memory to create an array with an...
[9 replies] Last: Exactly. Sorry about the roundabout explanation, it was like 7 am and... (by maeriden)
Pages: 1... 7778798081... 114
  Archived months: [feb2014]

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