Beginners - November 2010 (Page 35)

System
 
Hello To change colors and clear the screen in my C++ program, i have been using the system () command. I heard this may cause some issues. Is this true?...
[2 replies] Last: Thank you. I dont want to bump the other thread, so if i can, may i as... (by Armageddon)
by Faff
Difference Namespaces and Headers?
 
Searched a little on google about these subjects, but isn't giving a clear difference between them. Found out that they both summon premade "Liberary's" As...
[4 replies] Last: Thanks a lot ^^ (by Faff)
Learning to develop video games
 
Hello, everybody. I've always dreamed of making my own video games, and recently I've seriously considered pursuing it as a career. I have no formal studies on ...
[4 replies] Last: Thanks for all the answers. I'll look into these options as soon as I ... (by Davitosan)
Stuck with error
 
cout<<endl<<endl<<"x1= "; cin >> x1; cout <<"x2= "; cin >> x2; Thats the piece of code in question. Its not the problem. The p...
[5 replies] Last: well albatross confused me with all this [Session started at 2010-11... (by snackysniper)
operator overloading problem
 
Hi everyone. I'm trying to create a simple c++ program to do complex number calculation. the basic form is (a + bi) ... (c + di) the ... part can be filled w...
[2 replies] Last: If your constructor is overloaded i would suggest this type syntax ... (by kikirikou)
Automatically creating variables
 
Hi, This sounds easy, but I am not sure how to go about it. Basically I want to read in some info from a txt file containing a Students name on one line fol...
[3 replies] Last: Thank You Athar! I see where you are going with this. We actually ... (by mcelgiraffe)
Robust Function?
 
In computer programming class, our teacher is out, and now we're stuck on a program. What is a Robust Function?
[4 replies] Last: It is a function that won't crap out if you feed it garbage data. (by Galik)
hi! (1,2)
 
Hi I'm 10 years old and want to start learning C++. Do can you use a Mac or does it have to be a PC. Also what is a good way to get started for someone new? ...
[23 replies] Last: hi, so, what you need is a editor and a compiler. the editor is where... (by afrg)
Menu with no fixed options.
 
The elements of a menu I'm creating are not fixed. With that I mean that some option will be available only if special conditions are met. A regular menu is ea...
[2 replies] Last: I'm still a beginner, so the class Menu has me a little confused, but ... (by kkostas)
A beginners code
 
//This program takes input from user i.e. Grades A or B, then calculate the No. of A grades and give comments. #include<iostream.h> #include<stdlib.h>...
[4 replies] Last: Thank you very much for you help. I'll try it. (by Muhammad Qasim)
by yassar
small C++ error :(
 
#include <iostream> using namespace std; int main() { int postOffice = (1); } 1>c:\users\yassar\documents\visual studio 2008\projects\l...
[2 replies] Last: try this int postOffice = {1,0}; array will have 1, 0 , ... (by DrolArumil)
Craps Program
 
I cannot get this to run correctly no matter what I do... //Program 2 #include <iostream> #include <ctime> using namespace std; int main() { int d...
[1 reply] : #include <cstdlib> at the top of your page will help a bit.... (by HooklessFastener)
strcpy
 
What's the point of the strcpy function? Since we can do: char*a = "abc"; char*b; b = a; And we can still modify a or b without affecting the o...
[1 reply] : And we can still modify a or b without affecting the other. No, you c... (by helios)
Problem with adding sum of a range
 
My goal is to have the user enter a number above 0. My program should then sum every number from 0 to the number that they entered. For example, if the user ent...
[1 reply] : And your question is? PS: You may as well start counter at 1. x+0=x... (by helios)
c++ arrays and file reading question
 
I am doing a project and I have to read from a file and input the values into an array. I know how to do this. But now we have to read from a file in put it in ...
[2 replies] Last: Is this even possible to do? (by prestonprice57)
Craps program
 
I can't for the life of me get this program to run correctly... It is supposed to simulate a game or games of craps //Program 2 #include <iostream> #inc...
[1 reply] : Add <cstdlib> to the includes because rand and srand is part of that l... (by HooklessFastener)
infinite loop
 
Hi, I am fairly new to C++, and I am getting an infinite loop in this code, and I have no idea why. Basically, my program is to tell me in how many years I can ...
[2 replies] Last: Thank you so much, I've got it to work, finally :) (by smquarterman)
get value from pointer to bidimensional vector
 
Hello! I have this a pointer to a bidimensional vector std::vector< vector< int > > * top_objects; How can I access to top_objects ? This d...
[3 replies] Last: Thanks! I understand both solutions, but now I'm facing another pro... (by FumarMata)
Multiple declarations
 
So, I'm learning SFML and was trying tto make a Tic-tac-Toe game, but it keeps telling me that the functions of the class that manages the grid is being declare...
[2 replies] Last: Thank you very much! (by Tarou San)
Need advice on how to write this function
 
The function InitializeBoard should · Have the prototype o bool InitializeBoard(int** connectNBoard, int numRowsInBoard ); · I...
[no replies]
November 2010 Pages: 1... 3334353637... 42
  Archived months: [oct2010] [dec2010]

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