Beginners - April 2011 (Page 19)

Factorials
 
This program is doing the factorial of a number and for some reason whenever i type in 13 i get an error......The Factorial of you number, 13,is: terminate cal...
[5 replies] Last: Like said Mathhead200, you can't have 13! on int. Or at least not on 3... (by userulluipeste)
by cstorm
Main Parameters
 
Ive been my Highschool C++ programming for about 6 months now. We've gone over alot, and i now understand parameters(Well most parameters) except for the parame...
[12 replies] Last: There is a slight difference between an explicit void and nothing at... (by userulluipeste)
by tonnot
How to create a map copy for a map already exists
 
I have a private map for my class: map<unsigned int,int> map__rows; During some process I make a copy of this map into another map,later I want to delete t...
[2 replies] Last: thanks.... it is true.... (by tonnot)
my program stops working please help
 
this is my program #include <iostream> #include <string> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <iomanip> #include <cmath> ...
[4 replies] Last: thxs ill try to clean it up (by shakemaster52)
count the number of words in c-string
 
using a c-string how would you count words by the space?
[14 replies] Last: You might want to look at string tokenize: http://www.cplusplus.com/re... (by userulluipeste)
by IvanLi
how to use iterator as parameter
 
hi experts, im trying to input iterator as parameter in a procedure the linkedlist <char> contains 'a','b','c','d','e','f','g' linked list is named "chara...
[3 replies] Last: oh, yeah, i get it~! thank you (by IvanLi)
Value wont show
 
The program wont let me print the value of a b c and d =(, im sure it has something to do with my syntx printf("\n50 cents,%a\n"); //What kind of code sho...
[7 replies] Last: when you count the coins, you might want to decrease the cash for exam... (by userulluipeste)
Why isn't this outputting?
 
Why isn't the total outputting in the last function? I need help, #include <iostream> #include <cstring> using namespace std; int countWords(char* one...
[4 replies] Last: int countWords(char* one, int SIZE) //char array/pointer, length of a... (by ultifinitus)
HELP HELP
 
hello i new to all this im looking for some help i hope u guys can help me using namespace std; double min,sub, max; const int SIZE =10; int list ; i...
[3 replies] Last: [quote=macsuma]hoe can i do the second step /* here you'd probably w... (by matsom)
by kxnt
Question Help Please...
 
I'm going to take a summer class on the intro to C++, but I wanted to get a head start so I bought a book & have been doing some of the examples on my own, but ...
[3 replies] Last: This site actually has a pretty good tutorial. If you want to know abo... (by Zhuge)
ifstream f(strFile); problem???
 
77 C:\Users\dominic\Desktop\prj5\yahoo ex 1.cpp variable `std::ifstream f' has initializer but incomplete type ^^^^thats the error I get and I dont know how t...
[1 reply] : You left out #include <fstream> and another thing, ifstream f(strFi... (by matsom)
by khaled
question
 
i create a vector and i have access an element which is not in the vector's range but it's a must
[1 reply] : I'm not sure I understand what you are trying to say, but... A vector... (by Zhuge)
Cannot find PDB files
 
After I'm done compiling my program, everything compiles fine (rudimentary Win32 Console Application), but when I run it, I get a few 'errors' in my output box....
[1 reply] : If you have just declared the string, it'll say <Bad Ptr> until it is ... (by Zhuge)
Whats the difference
 
is there any difference between: while(true); and, do(;;);
[9 replies] Last: Mathhead200 ...that possible minute difference will probably be op... (by Mathhead200)
by Thumbz
Basic Game
 
I want to make a game where you use "a" and "d" to move a dot from left to right. The game play would be like this, printing lines in console: ...o.... ...o......
[8 replies] Last: I was hoping it might be something easy like... is key pressed("whate... (by Disch)
Strange String Error when Passing a String?
 
Hello again, all! This is supposed to be a somewhat simple program using arrays and a function that returns a value. This is a constant I declared above the ma...
[2 replies] Last: RESOLVED! Changing int scores and string exams into arrays for the pro... (by neowoot)
by seerex
My calculator - evaluate it please :)
 
Hi there, this is actually my first real program i've made. took me only 10 min to make or so and im doing it to "demonstrate" wether im feeling confident enoug...
[12 replies] Last: Thanks ascii. I was worried i was taught wrongly. (by PracticingProgrammer)
Faster Output
 
The game Ive been working on recently im having trouble with. It prints out a 45 x 80 map, and everytime you move it reprints the whole map. However, cout doesn...
[15 replies] Last: Actually now that I think of it, thats probably it. I put that there f... (by b1gb0y2013)
by seerex
how do u take notes and practice?
 
hi there, ive recently started to learn c++ through "c++ for dummies, 7 books in 1". I'm having a rough time, i guess thats normal. i try to read for about 2...
[9 replies] Last: You will never, ever, ever, ever, …, ever stop making mistakes. I to... (by Mathhead200)
Need help on mathematic formula
 
I am asked to write a simple C program that will accept an integer value in the range of 5-95 and as multiple of 5 representing the number of cents to give to...
[8 replies] Last: if (min<cash&&cash<max) { cash = cash / 5; return(cash); } /... (by Mathhead200)
April 2011 Pages: 1... 1718192021... 55
  Archived months: [mar2011] [may2011]

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