Beginners - February 2010 (Page 26)

noob c++ question
 
1) so in c++ everything runs in order? like the compiler reads from the first line to the last, from...
[19 replies] Last: Actually, on most of the code I've seen, main() was always at the bot... (by chrisname)
Guess my number for the computer
 
I'm trying to reverse the guess my number program so that the user feeds the console a number and th...
[3 replies] Last: Also use code tags please and proper tabbing/newlines. (by DrChill)
by Zakuro
01235
 
01235
[18 replies] Last: cout << "Enter a point with two coordinates:"<<endl; cout << "x is " ... (by iamhttp)
A statement at the end of the last case in switch statement (1,2)
 
Hi there! I've written this switch statement: switch(10) { case 0: //... case 1: //......
[26 replies] Last: [quote=gcampton]the last case whether that be default, or case 2738723... (by Quentin)
by vlad61
code question
 
what line of code would i use if i for example have specified what my program does with an "if...bla...
[7 replies] Last: I'm sorry I was obscure, I was in a rush. (by abilify)
by cpp123
Problem with inheritance in C++
 
Here's the code: //gradedactivity.h class gradedactivity { public: char letter; void...
[5 replies] Last: __super keyword is Microsoft specific. (by guestgulkan)
reference or pass by value
 
I read this www.cplusplus.com/doc/tutorial/pointers.html my question is which to use for a functio...
[9 replies] Last: In your opinion is visual studio proffesional edition a better tool fo... (by abilify)
by Daeo
Passing multidimensional arrays by reference
 
#include <iostream> using namespace std; int *ReverseArray(int *orig, int b) { int swap; i...
[no replies]
creating a table
 
hello, i'm having a problem with printing an array i would like to print a 2d array in the format ...
[6 replies] Last: Do you see what you did wrong though? the first time you were not com... (by gcampton)
by Daeo
Mundane Question
 
I've been doing some experimenting with multidimensional arrays, and my goal has been to create an a...
[6 replies] Last: all i can say is if your index is iterating up from -4 then the array[... (by abilify)
inheritance problem
 
Hello Guys im trying to build a class with inheritance. I read a few online tutorials about it bu...
[1 reply] : You aren't linking against Asteroid.cpp. The implementation of your... (by jsmith)
templates
 
are templates used primarily for overloaded functions and classes where you have multiple data types...
[4 replies] Last: I gave you several reasons why templates are used. (by jsmith)
urgent
 
please if i want to enter like 27 and want to count how many numbers from 0 to 27 except the like nu...
[7 replies] Last: @moorecm, I would have posted the same if not for: no limited till 1... (by gcampton)
making a critical strike chance
 
hi in my console rpg im makinh i want to have a critical strike chance. i made a stat called agility...
[11 replies] Last: correct: http://www.cplusplus.com/reference/clibrary/cstdlib/srand/ ... (by gcampton)
by arnaud
read analytical expression in a text file
 
Hello everybody ! I have built a C++ code last year for my Master's Thesis. Now, I would like t...
[8 replies] Last: Ok, thanks a lot for your help ! (by arnaud)
linked list
 
I am trying to make linked list and i am wondering if it is possible to make multiple linked lists w...
[no replies]
i thought i didn't need a return type?
 
ok so i was running this program: #include <iostream> using namespace std; int function1() { ...
[9 replies] Last: @jinjin12: Functions not declared to return void must return a valu... (by jsmith)
Newbie needs explanation, int_max
 
ok so i ran this program for class regarding INT_MAX. when i did it, i found that the INT_MAX for my...
[15 replies] Last: Although it won't be that way for long, within about 5 years is my gue... (by gcampton)
overloaded assignment operator
 
//Overloaded assignment operator for CMessage objects CMessage& operator=(const CMessage& aMess) ...
[8 replies] Last: Thanks, its clearer to me now. (by abilify)
setting boolean variable question
 
i am trying to convert if ((grade != 'A') && (grade != 'B') && (grade != 'C') && (grade != 'D')&...
[6 replies] Last: http://www.cplusplus.com/forum/general/19081/#msg98787 (by closed account z05DSL3A)
February 2010 Pages: 1... 2425262728... 32
  Archived months: [jan2010] [mar2010]

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