Beginners - October 2012 (Page 50)

Magic Square Testing Program
 
Hello, I'm almost finished with a homework assignment requiring me to write a program that checks to see if a user inputted square with n(order) rows and n(orde...
[no replies]
by albo
Computing simple statistics
 
I'm trying to compute the average of the data that the user puts in, using a while loop, but I cannot seem to get it right. Can someone please help me fix the e...
[2 replies] Last: codewalker thank you very much for your response, it was really helpfu... (by albo)
by Askwer
Code stops working when run :(
 
This is my code (a division calculator): #include <stdio.h> #include <stdlib.h> #define p printf #define s scanf int x; int y; int z; void divider() { z=x/...
[5 replies] Last: I wouldn't bother using defines for printf or scanf. Are you wanting t... (by TheIdeasMan)
Program is skipping input
 
I am writing a program that allows the input and output of personal data and tax information (filing status, income, total taxes, etc)... Anyway, I am just wor...
[6 replies] Last: I'm a bit unclear on what you mean by that. My menu selection being w... (by mikeybags)
When is it necessary to start initializing variables to the heap?
 
I've read many conversations here on stack and heap and I think I might have a problem related to that. I have a program about 700 lines and for some odd reason...
[10 replies] Last: It's important to understand the difference between a crash , when th... (by helios)
I can't figure out this program
 
I need help repeating the Enter students name and grade while q is not entered. I'm not sure what loop to use. I'm confused on how to use the switch stateme...
[no replies]
Co-ordinate system
 
Hi guys, Just a general question since I have been a doing some 2D programming. Does anyone know why computers don't use the co-ordinate system we all go...
[2 replies] Last: Thanks L B, greatly appreciated. (by toomanystars)
Need help with loops and functions
 
I'm trying to create a program where the user can enter numbers over and over, until they enter a negative number, which will end the program. It will also cal...
[6 replies] Last: Try something like this #include<iostream> using namespace std; int ... (by aztech)
problems looping for my first time.
 
I'm creating a program that generates a random number from 1-100, then it asks the person to guess the number. If the number is too low it will tell them its to...
[9 replies] Last: That's good! About the random number. Change this line: int srand(t... (by Chervil)
Function to compute sum of all even integers from 1 to num (inclusive)
 
I'm having a bit of a hard time creating a function, using iteration, to find the sum of all even integers between 1 and the number the user inputs. The program...
[4 replies] Last: It is a bad idea to declare a function such a way when the function ha... (by vlad from moscow)
doing sin program without (math.h)
 
my instructor decided to pull a mean joke on us. He want us to program sin with out using the math.h. I understand that I can do this with a series such as: sin...
[16 replies] Last: thanks that showed me what I needed . I had tried fabs there earlier b... (by bigman40)
Append to binary file?
 
i am probably not including the ios::app correctly..... it won't let me append to the critters.bin file Here is my code: //header struct Cat { cha...
[no replies]
Colored Text Windows
 
I've been trying to write a Windows GUI based app for years, and nobody has offered any useful help. My first project is 75% plagerism on the API side. I st...
[no replies]
How to open binary file
 
Hello here is my code: i am pretty sure it runs fine but since i have the microsoft visual express c++ when i go to the c drive it wont let me open the critters...
[4 replies] Last: Thank you ...ive downloaded a hex editor and seems to work.....nowcan ... (by s123456)
GPA calculator
 
*Write a program using a switch statement that calculates your last semester GPA. A grade of A is worth 4 points; B is worth 3 points, and so on.
[1 reply] : #include <iostream> #include <iomanip> #include <cmath> using name... (by raymond5624228)
Help with a while loops
 
So trying to figure out a exercise questions and having a problem with a while loop in it. What I need the loop to do is while the user is inputing words the lo...
[3 replies] Last: Also some more advice since I see you're using VS 2012: When you creat... (by useless)
Prime Numbers (Two dimensional array using pointers)
 
Hello, I am trying to write a C++ program that reads the number of rows and columns of a 2d array and initializes row by row the array with the first prime n...
[3 replies] Last: I have started from scratch as my first code was very hard to follow. ... (by theoneeyedsnake)
by Batyr
Rush Hour Game
 
Hello, I wanted to create a Rush Hour game in C++ in console application, but I don't know, from where to start and what to do, any ideas or tactics are greatl...
[7 replies] Last: will 2D Array help me in that? It might. I don't think I would d... (by Lowest0ne)
Error reading/matching stack
 
I have a program that is supposed to match opening and closing braces. It's supposed to work like a stack. It works until the last line of the input file. Th...
[6 replies] Last: Sorry about the code. I'm just really frustrated. I have changed my ... (by apeachaday)
by kox
Trouble assigning array with loop
 
Hello. That's my first post. I'm 16. I like to program just for a hobby. My knowledge is very basic. I wanted to write a program that would display shared divis...
[1 reply] : Now what's even stranger, I put both array assigment and cout dividabl... (by kox)
October 2012 Pages: 1... 4849505152... 84
  Archived months: [sep2012] [nov2012]

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