Beginners - October 2010 (Page 18)

Learning GUI
 
Hi! I have just started learning C++ and we have been assigned a project of making the game 'bloxorz'. But we all are hardly acquainted with working with GUI. W...
[4 replies] Last: Here's a tutorial, http://lazyfoo.net/SDL_tutorials/index.php I thi... (by blackcoder41)
Working with multiple values of an array
 
Can someone give me some advice on working with arrays in instances where I want to find the modal value, the mean, the sum of all even values and so forth? Som...
[no replies]
input problems!
 
I'm new to programming and trying to do my first basic assignment. Unfortunately the bit I am struggling with is trying to deal with inputting the data. The ...
[5 replies] Last: Thanks for your help, I have sorted it using file streams and string s... (by diddlydom)
interest calculation
 
hi im new to C++ and im trying to find the interest of an amount i have to enter and intial amount, enter a monthly deposit, a monthly interest rate and a durat...
[1 reply] : Your math is bad. I would recommend that you try to do this in a sp... (by kfmfe04)
Inheritance and lists
 
Hi all, I have an object Field that is extended by two other classes; polarField and metricField. I want to store instances of these objects in a list, but at...
[2 replies] Last: Thanks Disch! I will have a go using the vector container as this wil... (by kamikazeUnicorn)
by natie
input with a specific display type
 
Hi... I want to ask smthng about a program Im working on now.. I don't know a lot on C++ and I'm now trying to finish an exercise for my university. So, I wan...
[6 replies] Last: yes you're right... so here we are again: #include <cstdlib> #... (by natie)
Game Dev
 
Ok, I was wondering what were all of the things that one would need to be competent with before he/she would start on developing a simple 2D game or something i...
[4 replies] Last: Well I would recommend you have a basic understanding of: -The esse... (by ultifinitus)
by Maerle
annoying problem
 
The program is running, but when the program ends (when I write the wrong option or x in the switch) it prints more than he should and does not close the screen...
[1 reply] : http://cplusplus.com/doc/tutorial/control/ look here- pay special a... (by ultifinitus)
Need to write function correctly
 
#include <iostream> #include <iomanip> #include <fstream> using namespace std; char convUpper( char ch ); int main() { ifstream inFile; char ch;...
[1 reply] : You can always use the toupper() function; http://www.cplusplus.com... (by ultifinitus)
input and output
 
i know the basic input and output process. I cant figure out how to output the letter " Y " based a numbers the user inputs. for example user inputs 3 , so that...
[1 reply] : You should look into loops, specifically for loops. in this case I wou... (by ultifinitus)
Stuck at read/write from file to file
 
Hey guys, i am currently working on an assignment of an intro to c++ class, and i am being asked to read from a file called Bands.txt which has a list of band i...
[6 replies] Last: Good. A big part of problem-solving and programming is breaking d... (by kfmfe04)
problems about "learning openCV"
 
The example of the book are a little bit weird for me int main() { IplImage* image = cvLoadImage("lena.jpg"); // Create some windows to show the ...
[no replies]
Calendar Program
 
I'm trying to write a Calendar program, but I'm having trouble. It asks the user for the number of days in a given month and then the offset (from Monday), and ...
[7 replies] Last: Bump. Any suggestions? (by brycematheson)
by Maerle
what's wrong?!
 
#include <iostream> #include <conio.h> using namespace std; class Elevador { int andarAtual, andaresTotal, capacidadeElevador, numeroPassageiros; ...
[2 replies] Last: oh. --' thanks (by Maerle)
by Dukaim
Validating char input
 
Hey, I'm trying to validate a char input so that it only accepts 'g','s' or 'e'. while(x != 'e' && x != 's' && x != 'g') { } But if I input mor...
[no replies]
Quick Question
 
I need to write a void definition that updates one value with another and then have the new value displayed in the calling environment. The last part is the ...
[3 replies] Last: Thanks, I just wanted to make sure I was understanding it correctly. (by moriarty)
by sdetub
Displaying and counting character problem
 
Good day to all just wanna ask regarding my program in C++, the problem is I need to enter a line of character/sentence and then it will count and display the n...
[1 reply] : finding the occurence of each letter is really simple. 1. Make a ma... (by Thumper)
by Maerle
Some doubts about inheritance
 
#include <iostream> #include <conio.h> using namespace std; class C1 { protected: float m_c1; public: C1(float x) { m_c1 = x; } void print() ...
[3 replies] Last: It does. C3 inherits from C2, which inherits from C1. The constructo... (by moorecm)
by bmarie
Error expected ';'- but I'm not sure where to put it!
 
Hi everyone, I'm working on a scheduler program and am getting the following error when I try to compile: "error: expected ‘;’ before ‘<’ token" Her...
[2 replies] Last: huh that was silly of me... thank you :) (by bmarie)
by wtf
Pointer Queue as expected unless I remove all items from queue and start over.
 
Who can tell me what is wrong: I've attempted a bunch of quick fixes but I can't seem to figure out what the problem is. It appears, the problem is occu...
[no replies]
October 2010 Pages: 1... 1617181920... 42
  Archived months: [sep2010] [nov2010]

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