Beginners - September 2009 (Page 20)

how do i make this kind of program?
 
how do i make this program with this output please help SAMPLE OUTPUT: 3 5 1 2 3 4 5 3 12 23 34 4 0 12 3 9 15 9384 1 2 3 4 5 12 23 34 0 12 3 9...
[2 replies] Last: can you give more details please? I don't get what you want to do. (by Cojones)
Having problems with the tax tables
 
I'm having this problem with the calculations of amounts. no matter what amount I input in, it always only calculates the 15%. What am I doing wrong here: #i...
[4 replies] Last: Thanks. You were right. (by CATCH3624)
having fun with C++
 
hello...i have the code where i wanna have fun with infinite result and was trying to make a function who is calling itself if n <1000000... Here is the code: ...
[3 replies] Last: No, you should return return(fib(n-2) + fib(n-1)); What you're do... (by chrisname)
by Bv202
Polymorphism
 
Hi, I'm trying to understand and practice Polymorphism, but I don't understand something. When a tutorial started to explain Inheritance, it gave as the main...
[2 replies] Last: Hmmm, there was a part in the tutorial explaining this, which I didn't... (by Bv202)
Don't know how to define template of a subclass.
 
Hi I am having a problem with templates. template <class T> class cListS { public: cListS(){} ~cListS(){} private: template <class T> clas...
[2 replies] Last: Alright cool, that seemed to do the trick, thanks! (by InLight)
Having trouble with Division
 
I was trying to make a very simple application that would help you find the Sine of an angle, but I cant get it to work. /*This program is to help you figur...
[2 replies] Last: Yes, your sine variable isn't dynamic, it's static meaning that when y... (by chrisname)
Qns: (x<y) ? y * 2: y * 3
 
#include <iostream> using namespace std; int main () { int x = 1, y = -2; x -= (x<y) ? y*2 : y*3; cout << "x = " << x << ", y = " << y << endl; return ...
[2 replies] Last: Thank you so much. :) (by makan007)
Noob Guide Pleaz
 
Ok i learned VB when i was 10-12 years and i quit with it when i was 13 now that im 16 i wanted to learn something harder so that i could make games, Hacks for ...
[9 replies] Last: Well... if you say so. Ok, then, don't learn ASM. I guess it isn't ... (by chrisname)
Critique away
 
whew I spent a while on this though it might not look like much it has been through a long debugging process the only problem with it now is that it uses conio ...
[5 replies] Last: woops also I must hurry and this must be the longest variable na... (by DrChill)
Am I the only one noticed? (1,2)
 
Am I the only one noticed that if you use cin.get() you can pause but you may still type characters after that? So ... what should I use instead?
[21 replies] Last: What do I do, it errors me if I #include "curses.h" or panel.h ? (by DrChill)
Having some trouble with variadic functions and SDL
 
I was kind of annoyed that in SDL I have to free one surface at a time. I want to be able to free all of my surfaces at once. So I tried to write a variadic fun...
[14 replies] Last: Oh, ok. (by chrisname)
What'd I do this time ...
 
Ok so I was going to make a conversion program which, when executed gave you an option of 1 or 2 (so original I know) so I had a integer (int) which checked whi...
[4 replies] Last: One of my programming teachers called what you're doing "scratching yo... (by helios)
by mareon
bool statment
 
Hi, is there any statment to control the both values of bool in just one value. Imean rather to write.. bool cont; if(cont == true && cont == false){/...
[6 replies] Last: LOL! XD (by Duthomhas)
Small tool to terminate console
 
Hey guys i was reading the console closing down thing and in another topic(I made) someone recommended me to NOT use system("pause") thingy so i followed that s...
[3 replies] Last: Well, that's inconvenient I guess. Something like this? #include ... (by chrisname)
by Byte
Making a game
 
Hi, I want to make my own RPG. But I'm trying to make a log-in screen, so here are a few questions.. (yes I have checked google, but I get linked to stupid pre...
[7 replies] Last: looks nice, thanks. (by Byte)
window instead of console
 
Hey guys i wanted to make something like a console but instead of that i wanted to make a window that i could acctually write on it to put something like this: ...
[3 replies] Last: No problem :) If you ever get stuck doing something in windows, use m... (by chrisname)
infinite loop...
 
i got a function to solve infinite loop in showing error message when user key in character to integer type data....but the function fail to some condition.. T...
[1 reply] : Great. Now try writing it in English. I really can't understand you... (by chrisname)
Loop not functioning
 
I have everything set ready to go except one thing and I think I need another set of eyes to solve this one. The loop will not exit even though I have countered...
[4 replies] Last: Wow! A little miscue such as setting x = 0 was the problem. I can't th... (by byu1212)
if and else to string
 
hello people i started a if and else program but my compiler didnt compile it heres the code: #include <iostream> #include <string> using namespace std;...
[3 replies] Last: ohh yeah it did work by leaving a has "a" it did work ahh man thanks (by rpgmaster)
by Byte
Octal's, Hexadecimals
 
Hi, C++ Forum. I dont know the definition of Octal & Hexadecimal. I have checked around, googled them, used a dictionairy. Octal: a numerical representa...
[5 replies] Last: bases are ways of expressing numbers. The number of the base is how ma... (by mspy2plus)
September 2009 Pages: 1... 181920212223
  Archived months: [aug2009] [oct2009]

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