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 whitespaces but I'm not sure how to do this. I have tried a lo...
Oct 16, 2012 at 8:17pm
[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 you please make it as simple as possible. Thanks
Oct 16, 2012 at 8:04pm
[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 good learner or pong is very easy one?
Oct 16, 2012 at 8:04pm
[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 is. I'm doing this for fun, just to clarify that. However, ...
Oct 16, 2012 at 7:56pm
[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 edit a program to have the computer guess your number inste...
Oct 16, 2012 at 7:31pm
[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 anyways. I need to create a structure for area: struct e...
Oct 16, 2012 at 7:05pm
[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 •Code for employee classification (H for hourly, S for sa...
Oct 16, 2012 at 6:58pm
[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 * get_message(void) { char msg = "Apontadores são massa!...
Oct 16, 2012 at 6:52pm
[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 class SignalChangedEvent. I have the following class Eve...
Oct 16, 2012 at 6:51pm
[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 write these classes containing no-argument constructors those ...
Oct 16, 2012 at 6:39pm
[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 simply lets you know if you've typed the same word twice, but ...
Oct 16, 2012 at 6:37pm
[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, etc. to an output file. I've encountered a problem with one...
Oct 16, 2012 at 6:28pm
[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 free this memory?
Oct 16, 2012 at 6:12pm
[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, down, left or right facing arrow key (moving in the releva...
Oct 16, 2012 at 5:29pm
[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 there is a word WORLD then the program will ask what letter u w...
Oct 16, 2012 at 5:20pm
[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 will contain the loop CheckAnswer - this will check whether ...
Oct 16, 2012 at 5:15pm
[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
Oct 16, 2012 at 5:08pm
[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 cancellation notices for magazine subscriptions, based on the...
Oct 16, 2012 at 5:04pm
[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 another class. When I declared it outside of my class and ma...
Oct 16, 2012 at 4:57pm
[no replies]
Problem with signed (negative) zeros of type double
My program is converting polar coordinates to cartesian coordinates. I am having trouble getting rid of the minus sign in the -0.000 that are displayed. I tri...
Oct 16, 2012 at 4:46pm
[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.
Registered users can post in this forum.