Beginners - October 2011 (Page 8)

Pascal triangle
 
can anyone help me with... 123456 12345 1234 123 12 1
[1 reply] : There are N rows (in this case, N = 6). If you index the rows as K ... (by shacktar)
Nothing happens when I run program?
 
#include <iostream> #include <cstdlib> #include <ctime> #include <fstream> #include <cmath> using namespace std; int main() { { srand(time(0...
[8 replies] Last: Oh. Duh.....haha (by ziodice)
nested for looping
 
well...i don't understand how the nested looping work...can anyone explain clearly for me?? #include <iostream> using namespace std; int main() { for (...
[3 replies] Last: kk...thanks for u guys!! (by lanceTCT)
Opening, writing, then running a file. (1,2)
 
How do i create a file, open it to writ to, and then run it. (like a batch file etc.) I looked at the tutorial, but i still dont understand the syntax.
[33 replies] Last: ok... w.e. I found the answer and im sorry for getting frustrated. c... (by IWishIKnew)
Nested if statements
 
I was busy revising previous question papers and I got stuck with this question. Please help me understand this code, i don't understand why is it giving me th...
[2 replies] Last: thanx EggHead i get it nw. (by Oodaloop)
by Yezman
Pass by reference, wont accept my value.
 
//Requires: n >= 0 //Modifies: nothing //Effects: returns the int formed by reversing the digits of n // a parameter of 123 will return 321 // a parame...
[12 replies] Last: Yeah, that worked well, thank you shacktar. Its annoying how simple so... (by Yezman)
Nim game
 
I must make a Nim game. SO far the computer will not make smart moves, and the invald intry will only work once then you can remove more coins from the pile the...
[no replies]
HELLO
 
HI GUYS. Main reason I am posting is to say hello as i just joined:) Thank you admin for making the tutorial, it helped me a lot :) I am new here and a...
[4 replies] Last: thANKS (by biplav17)
run a file
 
How do i run a file? How do i then have it deleted (to keep clutter from being created)?
[11 replies] Last: What's your problem? You came here asking for peoples help, so to cal... (by ascii)
Parallel Array Help
 
Hello, I am having some difficulty starting this program. It asks for my program to use two parallel 5 - element arrays: an array of strings that holds the five...
[7 replies] Last: I have another array problem. This is my program: #include <ios... (by illlojik)
If-else problem.
 
I noticed my output is always going through with the first part of my if-else statement. Can anyone tell me why? #include<iostream> #include <fstream> u...
[3 replies] Last: why doesn't this: infile >> num1 >> num2 >> num3; while (... (by Azagaros)
Help with decimal places.
 
Can anyone help me get a certain number to become a double. I made the part bold and italic below. I need the average to become a double even though it is at...
[2 replies] Last: thank you shacktar! (by Cosimo Vilardo)
Finding Probability of Const Int
 
Writing program to get probability of getting an ace, jack, queen, or king out of a deck. I have these variables as const int and the probability is set as a wh...
[1 reply] : 16 chances of getting an ace jack queen or king. 52 cards in a deck. U... (by novablows)
Until keypressed
 
Hi all, Im new in C++ and I wand to create simple ...... snake (game) I want to continue moving my snake until some key will be pressed. Than change the way...
[11 replies] Last: They are pretty close, though, as they are a staple to old DOS console... (by Duthomhas)
by Modify
Erasing part of the string
 
Hello, lets say string abc = "1000 11 1100" How can I actually erase 11 from the string, without using string.erase since it requires position. And I don'...
[1 reply] : Use find() on "11 " and erase that. Alternatively, use split+erase+joi... (by Athar)
by r64
Best way to convert a character to a number?
 
Hello! I'm working on a program that asks for a serial key, checks the input and runs it through an algorithm. To do that I want to convert every character in ...
[11 replies] Last: well you can certainly can, if you wanted you could have an associativ... (by ultifinitus)
Super Street Fighter 4: Arcade Edition Combo Generator
 
I'm new to C++ and I'm about 9 weeks in to my programming C++ class. Can someone help me out with my program, I'm for the most done with my project with excepti...
[no replies]
difference between c-string and character array?
 
I've got a test tomorrow and I can't find the answer in a clear form could you tell em if I'm right? a cstring means a null-terminating char array, right? So...
[2 replies] Last: I guess I'm just trying to figure out if by c-string they just mean a ... (by Smooth23)
Array and functions usage with Classes
 
class here { public: int a; int b void usr(); }hello ; my main problem is to call the function, normally it would be hello.usr(); but because i...
[1 reply] : hello .usr(); or for a pointer hello ->usr(); EDIT: You have a... (by strongdrink)
C++ Program using Passwords?
 
I would like to know how to go about making the program ask for a password? in quite new to c++ so thanks in advance!
[4 replies] Last: Greatly Appreciated Thank you! :D (by redacted178923)
October 2011 Pages: 1... 678910... 59
  Archived months: [sep2011] [nov2011]

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