Beginners - October 2012 (Page 42)

by szlol
Outputting 'x' number of whitespaces...
 
In my program I am calculating a value for x and then I need the program to output that number of wh...
[1 reply] : You could use cout << string(x, ' '); instead, or some other methods... (by Cubbi)
GCD help
 
can someone tell me what is the code for finding the GCF of two integers or Euclid's Algorithm, can ...
[2 replies] Last: great, thanks ! (by epicjomi)
by skarla
PONG
 
I made a simple PONG using SDL AND OPENGL only with 2 hours learning opengl and 2 days SDL. So i am...
[3 replies] Last: Frasnje dont worry,you are not bad learner. To tell all the truth i to... (by skarla)
Help with variables losing its stacks, and calculation with arrays
 
Hi, this is the program i am making. I'm not a student of c++ i received this task from a friend who...
[2 replies] Last: Nobody can help me with this? (by Terje Gundersen)
by Fovv
Number guessing
 
I'm currently learning c++ from "Beginning C++ through game programming" One of the exercises was to...
[2 replies] Last: @whitenite1 Thank you very much for the help. The program works as in... (by Fovv)
Functions
 
I need help with a program. I'm working with structures and functions... my 2 favorite things.. NOT ...
[2 replies] Last: Thanks for the bump Boom :) +1 (by MrHatchi87)
Reading a text file (Help)
 
I have an asignment where i must read and then later do calculations with the data. I need to ...
[1 reply] : You need brackets around your while loop, you should call inFile.goo... (by ModShop)
Help with returning pointer to char.
 
Hello, my teacher gave me this program to test what wrong with it. #include <stdio.h> char ...
[3 replies] Last: @grady Try returning a const char* instead of just a char* It is n... (by vlad from moscow)
problem with pure virtual funtions
 
I have specifically a problem when trying to run part of the code for the constructor of the derived...
[2 replies] Last: Thanks! That was really helpful! :) (by closed account zhq4izwU)
implicit call to constructor
 
Can anyone help me with the question??? If a class D inherits two base classes B1 and B2 ,then wr...
[1 reply] : #include <iostream> struct B1 { B1() { std::cout << "B1::B1()\n";... (by vlad from moscow)
how text is assigned to string variables
 
I'm having a little trouble understanding how this piece of code for beginners works. The program si...
[no replies]
by rogom
Count-Controlled Loop
 
We have a project that is supposed to open an input file and output student names, scores, averages,...
[1 reply] : First of all use formating of the code. I see that the loop you are s... (by vlad from moscow)
by mike r
Dynamic memory allocation within a function
 
If I have a function that returns a dynamically allocated c-style string, what is the proper way to ...
[7 replies] Last: @Raman009 In that case it's not a problem. (by Peter87)
SDL program error
 
Hello, world! I was in the process of building a simple program in SDL which has a picture of an up...
[2 replies] Last: I've just tried it. It works, but now I have to press the arrow key to... (by Exispistis)
How to search a letter in words with POINTER
 
Hi expert..Im newbie and i want to made a program to search a letter using a pointer.. Example ther...
[9 replies] Last: ok thanks vlad...that really help me thanks a lot.. (by Neo Takaredase)
Need help with this loop displaying only negative numbers.
 
These are the guidelines: c= 3 + 10*k - k*k Here are the two functions: CrackCypher - this w...
[2 replies] Last: I tried that, but I still get nothing in return on the console. I feel... (by degausser)
Change in a Cell
 
kkkk
[1 reply] : double hot_plate ; double hot_plate_prev ; while (true) { // T... (by Stewbond)
Problem with function not returning value (1,2)
 
I'm working on this programming assignment that has me creating a program that handles renewal and c...
[33 replies] Last: So I figured out the problem; when I declared monthNumber statements i... (by ComradeCookie)
Static member object
 
Hello, I am new in c++ and I am curious as how should I declare an object of a class as a member of ...
[no replies]
Problem with signed (negative) zeros of type double
 
My program is converting polar coordinates to cartesian coordinates. I am having trouble getting ri...
[8 replies] Last: And if the number you are dealing with is zero....? There are two ... (by TheIdeasMan)
October 2012 Pages: 1... 4041424344... 84
  Archived months: [sep2012] [nov2012]

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