Beginners - May 2013 (Page 27)

Why isn't this printing anything?
 
I'm trying to make a array that will auto fill with random numbers when the user tells the program how many numbers are to be in the array. I don't see any iss...
[4 replies] Last: @Andy The exception handling was designed to be an example not a... (by guatemala007)
How to use a switch statement with int variable
 
So, I've just figured out about switch statements. I am having problems on lines 14, 17. (no ERRORS, just how to execute) I know, to use a case with a char ...
[10 replies] Last: http://www.cplusplus.com/doc/tutorial/control/ Last section on this p... (by agnophilo)
Reading and writing to text files.
 
I have this bit of code that will write two randomly generated vectors to two files: #include <iostream> #include <string> #include <fstream> #include <s...
[5 replies] Last: but how does the in file know that n is the size? It doesn't "know".... (by Chervil)
Creating a tally counter using Classes
 
So my instructions are to implement a class that models a tally counter. Whenever the operator pushes a button, the counter value advances by one. Model this op...
[5 replies] Last: That's perfect. Thanks so much :) (by daft science)
roulette
 
i have home work to do a simple roulette. here is the code i got i know its stuff misplaced but i do it that way for some reasona nd i have extra things added ,...
[7 replies] Last: Because n and t are outside of loop just do start += bet for them inst... (by giblit)
A game update
 
Wrote about a game in here a few days ago. A game that should introduce programming in a new way. I have just updated the game a bit and moved it to a new serve...
[no replies]
visual c++
 
Hello, I'm new to Visual C++. I'm trying to make a simple program which calculates the amount of letters in the word, so as I understand I need to find out the ...
[3 replies] Last: String ^ i; is not a C++ construction. It is a CLR construction that i... (by vlad from moscow)
Program has (at least) two bugs in it.
 
Full disclosure: This is a homework assignment I have written code that checks to see if a string is a palindrome. In order to do this I've created two functi...
[7 replies] Last: @acemanhattan I am saying that the function checks if they are lower o... (by giblit)
by ace55
How incorporate this second method?
 
So i did the task of writing a code for an accumulator as seen here. Now i have to use a second method and am confused with how i exactly do it. How do i use th...
[no replies]
weird exiting error
 
when i execute this program about halfway through the program simply exits how do i fix this? #include "stdafx.h" #include<iostream> #include<string> ...
[1 reply] : Try replacing cin.get(); by std::cin.clear(); std::cin.ignore(100... (by Vidminas)
My code gives me a long small number.
 
My code gives me a long small number in "Program 5" Then "Program 6" messes up and does not even run properly. This is just to practice but I cant get Program ...
[7 replies] Last: Know I can see what goes on. Thank you I appreciated! (by Samuel Bass)
by spofix
C++ Beginner!
 
Hello! I'am a nice guy from sweden and wanna learn c++. I don't know anything in c++ and i think i need some help, i wan't to serious, don't tell me to st...
[4 replies] Last: Hei spotfix, hvordan har du det? Like they said this website has some ... (by Austin J)
displaying a 2d array of char '*'
 
im trying to display my array of type char on a screen, but its not working. i have my world class: const int ROWS = 22; const int COLUMNS = 75; cla...
[no replies]
math combinations
 
hello i'm trying to make combinations. i have a bool array, and want to output all the possible combinations from it. i want an output like: true; false; f...
[11 replies] Last: Recursive: #include <iostream> #include <vector> #include <iomanip> ... (by JLBorges)
The fabric of reality is breaking down
 
Look at this. I have a function that determines the number of characters in a mathematical expression. So, 4+(9-2) would return 7 Now, when I put one ex...
[2 replies] Last: Thanks for the reply. I said 7 because there are 7 characters in that... (by INeedAHero)
by Mavrec
Minesweeper game project.
 
Hello, I have just joined this community, wanting to be better in programming using c++. I'm so amazed by this site, as it helped me before..even expecting mor...
[1 reply] : void player() { cout << "Commands: R => Show, F =>Flag, C =>Ch... (by Mavrec)
Make the pointer look like its pointing to desired address
 
hi, First let me post a code here to make my question clear. #include <iostream> using namespace std; int main() { unsigned int *ptr; int val = 150; ...
[3 replies] Last: ok... Thanks.... (by bubblesbubby)
by lmsmi1
Anti-Debug & Anti-RE Techniques?
 
I'm interested in anti-debug and anti-reverse engineering methods, and can't seem to find any good examples that I can use. UPX is stupid since you can de-UPX a...
[1 reply] : A good place to start would be www.tuts4you.com You must know how peop... (by mausy131)
check out this error...
 
I am trying to pass a 2D array of char to a function in my class. this is the class: class World { private: char world_array ; bool out_of_bou...
[3 replies] Last: thanks a ton i totally understand why now. (by spiritedDedication)
Function not being called?
 
Hi, for some reason my program wont call my Basic_Requirements function, all it does is quit after the first function call. Why? #include <iostream> #in...
[3 replies] Last: I am guessing it is your conditions. Group the related conditions toge... (by Daleth)
May 2013 Pages: 1... 2526272829... 66
  Archived months: [apr2013] [jun2013]

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