Beginners - October 2012 (Page 67)

Guessing a secret number assignment
 
Assignment 8, the Random class Attached Files: Random.h (292 B) Random.cpp (487 B) (do work in assignments/a08 directory) Write a C++ program (assignmen...
[2 replies] Last: See http://www.cplusplus.com/forum/beginner/81102/ (by TheJJJunk)
c++ stacks converting decimal to hexadecimal
 
Okay so all I need help with is the part where the remainder is 10-15 it outputs the number not the letter. I'm new with stacks and my teacher wants us to use t...
[2 replies] Last: Thank you so much I'll see what I can do (by dangles19)
School Assignment - I'm so close to "getting" it.
 
Okay, I'm going to preface this by saying I don't take this forum for granted, and the help I've received from this forum (simply by reading previous threads). ...
[3 replies] Last: Is the above work correct? Yes it works. How do I make it so I can'... (by TheJJJunk)
quadratic formula.. input values
 
can anyone help me actually put the values into the structure..? #include <iostream> #include <string> #i...
[2 replies] Last: If you really want to use a structure, you could use this sort of synt... (by Chervil)
Reverse a string
 
Hello, this is my first time posting to these forums but they have been extremely helpful throughout my college semester. I have a program here that I have been...
[2 replies] Last: Hello, I thank-you for the reply!! This is exactly what needs to hap... (by Endl3ss)
WHILE LOOP
 
Write a C++ program that uses a while loop to guess a persons age, ask the user if the want to try again if no end the loop. Of course if they guess it the loop...
[1 reply] : Start with a while loop. (by TheJJJunk)
mktime changing tm_hour during execute ??
 
During execution of mktime(), only value of tm_hour changes. Copy of part of code: 1 strcpy(s_1, PRDATA.periode .start_w); // s_1 = hhmm 2 // start wer...
[no replies]
New to Functions
 
I have this code and I want to be able to call it as a function. I looked up how, but am pretty confused and always get an error. Here is my code I want to make...
[2 replies] Last: u forgot the () on line 12. (by Aramil of Elixia)
This code outputs words onto a text file only the first word disappears!!!what happened?
 
and how could i have the program outomaticly put .txt on the end of the filename without having to do it manually? #include <iostream> #include <stri...
[7 replies] Last: how? (by devonrevenge)
array decToBin
 
hi, im wondering how can i make an array that converts a decimal to binary. thanks. :-)
[4 replies] Last: @whitenite1 thanks again. :-) (by nicole Yoonzy)
by jc4bs
The Monty Hall Problem
 
I'm writing a code based on the Monty Hall problem. For those of you not familiar with it, you are on a game show and must pick 1 of 3 doors to see if you won t...
[2 replies] Last: Move lines 17 and 18 inside the loop at line 21. Otherwise exactly th... (by Chervil)
by icee3x
how do I print out the amount of times a program has looped.
 
Ok so my program is supposed to ask the user for a number then generate random numbers until it(the oracle) guesses my number. After the oracle guesses my numbe...
[2 replies] Last: Have a value. Set it to zero at the start. Add one to it each time the... (by Moschops)
GCD with 3 integers
 
Hello! im trying to make programm with while loop. I need to enter three integers and i cant get it to output me greatest common divisor. maybe someone can he...
[1 reply] : sry for troubling.. i found the solution ;) here is code if some one ... (by buustar)
by NNinja
Dynamic Allocation High scores
 
Hello all! I'm hoping you guys can help me figure out what's wrong with my code. The output should look like How many scores will you enter?: 5 Enter th...
[1 reply] : If you enter 5 for score you're only allocating enough space to store ... (by cire)
Programming Tablet?????
 
Hi, I was thinking about buying a new tablet. I am looking for a tablet that can run full system software. I want it to be fast enough to run Microsoft Visual...
[7 replies] Last: pogrady, if you read my first post, you would know that I asked for y... (by TheJJJunk)
how can i randomly generate the values of members of struct
 
using namespace std; struct rectinfo { int height,width,area,perimeter; }R1,*R2; void genData (rectinfo* ); void calAreaPer (rectinfo* ); void disp...
[9 replies] Last: I'm not sure I understand what you're referring to by brackets . The... (by cire)
by Yoda
Thanks to all whom helped.
 
Just a shout out to everyone who helped get me started with suggestions, book info, tuts, and youtube tuts. It has been a huge help to start me off, and I am re...
[no replies]
by Fliize
Run real-time + keypress
 
Hi. First of my problems is to make my program run real-time and with pauses. Ive created a function that takes care of the pause, but cant think of the real-t...
[no replies]
by Kash
Two compile errors I can't figure out
 
...
[4 replies] Last: Thanks for the help. After a few hours on it, since I knew I wasn't su... (by Kash)
help with loop
 
Write a program using sentinel loop that gets the unspecified number of student names and and then 3 exam scores of each students and calculates the average. ...
[3 replies] Last: Try this instead of sync: cin.clear(); cin.ignore(std::numeric_limi... (by AleaIactaEst)
October 2012 Pages: 1... 6566676869... 84
  Archived months: [sep2012] [nov2012]

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