Beginners - October 2013 (Page 36)

N numbers per line (text file)
 
I need to know how to print numbers from a text file(that include numbers) 10 numbers per line instead of a output like this: 100 90 80 78 67 56 2...
[2 replies] Last: thankyou (by closed account 3796URfi)
2d geometry lib suggestion?
 
The core of my toy program is a collection of '2D overworlds' of sorts, each containing a set of polygons and cirles(sprites, walls and special regions). I nee...
[2 replies] Last: Box2D might be just what you need. Please have a look at the features ... (by Laurent Zubiaur)
by aish96
PLEASE HELP!!!!
 
i'm back again with another stupid question of mine... do { switch(no2) { case 1 : std::cout<<"\n MANAGING DIRECTOR(Salary=800000)"; ...
[6 replies] Last: i got the mistake :P (by aish96)
by Jort
PLEASE HELP!! histogram coding problem
 
Hi!, So I have a hw problem where i need to make a histogram that will graph up to 5 numbers all within the range of 5-25. The code needs to have a check that...
[no replies]
Add validation checking and decimal formatting?
 
Hi, I'm having trouble with my program. It's supposed to tell the user if his bank account has been overdrawn and if it has then a charge of $17.50 is added t...
[1 reply] : Bump tried adding input validation with an if statement, but it still ... (by antwon128)
Use recursion to check if 2 numbers are equal
 
I am in CodeLab for school, and have worked and worked on this problem without being able to figure it out. The question is: Two non-negative integers  ...
[1 reply] : You need to return the function-call, as such bool equals (int x, ... (by fafner)
Not knowing what to do with this C++ assignment...
 
I'm a beginner and I know it's pathetic to post this on the board, but I'm really desperate. I need to hand this til midnight I have still no clue what t...
[2 replies] Last: Hi Madosenshi, there is nothing pathetic about asking for help, its w... (by NGangst)
Vectors - Deleting all negative elements using pop_back and push_back
 
Write your question here. int vectorLength = 10; vector<int> bothSigns(vectorLength); cout << " Input vector: "; for (int i = 0; i < vectorLength; i...
[8 replies] Last: Why not only add them to the vector if they are positive? use a while ... (by giblit)
run-time check failure #3 - the variable 'num 3' is being used without being initialized.
 
I keep getting "run-time check failure #3 - the variable 'num 3' is being used without being initialized." whenever I try to debug or run this. If I declare a v...
[3 replies] Last: *sigh* I'm so disappointed with how programming (and specifically C++... (by Disch)
by aish96
Variables (1,2)
 
i use code::blocks. I am not able to use a variable that i've declared globally in the function definition.. int var1, var2; switch(var1) { case 2 : func1; ...
[38 replies] Last: i've almost finished it :) (by aish96)
char not registering even though it is listed
 
Hi, This program has the user fill in a 3x2 table. I run into a problem when I want the program to ask if the user wants to edit the table at all. The user...
[2 replies] Last: I didn't use the quotes as I should have. Thanks you! (by project science)
by Zain01
Please help me with these 2 questions
 
1. A medical clinic needs to build a computer system that classifies the patients according to their age as follows: (patient's age < 4) is classified as an i...
[1 reply] : Hi Zain01, As a rule we don't directly provide homework help to begi... (by NGangst)
by bg87
Developing stand alone application for raspberry pi in linux
 
Hello, I am new here and this happens to be my first post so Ill dive straight in. I am new to C and C++ and have very little programming experience, howeve...
[1 reply] : I think that what you need to do is cross-compile. Use something li... (by Stewbond)
by sea711
Simple logic question
 
I am a newbie and having some trouble with my logic. Can someone take a look? I am to write three values as arguments. Return the first argument if it is bet...
[1 reply] : > unsure where i should return to The function returns to the point i... (by JLBorges)
Binary Search of an Array Problem
 
Hello, I modified some code for a text I'm reading to try to learn binary searching. I get the idea of it. I made the array: {23, 54, 34, 11, 3, 5465, 73, ...
[3 replies] Last: forgot to sort at the beginning...great catch, thanks! (by project science)
identifier undefined
 
Hello! My code has one error I cannot figure out how to fix. The D_Average identifier keeps giving an error as undefined, what do I need to do to fix this? An...
[3 replies] Last: Oh wow I didn't even notice the ShowAve on there twice, oops! Thank yo... (by Lindseybb)
SIMPLE ROULETTE HELP PLEASE
 
I need help writing a basic roulette program! I'm super lost and confused on where to go from here Input VariablesSTARTING_MONEY (100) BET_AMOUNT (5)ZERO_...
[no replies]
by Gacsam
Char to array
 
Note: It does partly work The char "string" contains an array of letter (does work), for example a road name - it is able to contain it, but the chars "name" a...
[6 replies] Last: No problem. My fault too for not explaining it properly the first time... (by Chervil)
Passing variables through void?
 
i need to pass the variables x and y from function 1 to function 2 so its the same number i also need the variables in another function as well void Functi...
[3 replies] Last: Illustration of concept: void Function1(int &x, int &y) { ... ... (by tipaye)
Converting data to binary
 
I figured I would break my previous post into parts. Right now I am trying to write a CRC program. I am completely new to programming (having only written a hel...
[3 replies] Last: Not sure what he's asking for when he says buffer by four, but I can a... (by GRex2595)
October 2013 Pages: 1... 3435363738... 86
  Archived months: [sep2013] [nov2013]

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