Beginners - February 2014 (Page 33)

by cozier
Need some hints please!
 
I am working on an assignment in which I wrote the function tortoisePick(int )and need to find a way to be able to have the player chose if they want to go firs...
[2 replies] Last: fluppe, Finally got it! For some reason I had a hard time visualizing ... (by cozier)
Help with error
 
Hello, I am having a problem with a code error that I can not find how to repair. I keep getting the errors 1> projects\try\try\employee.h(12) : se...
[1 reply] : joy.idNumber(81774); idNumber is the name of a variable. You are t... (by Disch)
Whats the best way to understanding Functions?
 
Hi, I was reading over our class lecture on functions and I don't seem to understand fully of what functions can do exactly and how to place them within a sourc...
[5 replies] Last: The easyest way to think of functions is they are just code you can ... (by tomdacat)
If and else statement help?
 
Hey yall! I started writing my first real program earlier and it was going well until I ran into this bug that has perplexed me for hours and I was hoping yo...
[2 replies] Last: Thank you! That fixed it (by BetaServer)
by stanz
please help me
 
How to modify this program using while loop?
[2 replies] Last: Another question (by stanz)
Beginner Function Help Please
 
This function works fine as long as the user inputs integers only, however if the user inputs characters when asked their age, the function goes into an infinit...
[2 replies] Last: You might check out the following post: http://www.cplusplus.com/forum... (by cire)
help! calculate student grades
 
please help me write a code that allows me to calculate grades. the question is: program should prompt user to enter i) total marks for each module ii) mar...
[3 replies] Last: Please use code tags when posting code, to make it readable: http://w... (by MikeyBoy)
array of structs problem
 
Heey , i Have construct an array in each cell of the array is a struct , and i try to send the array to a function to read from int but it dose not work. ...
[2 replies] Last: Thank you ^^ (by max v max2)
How to end program with period?
 
I'm trying to write some program and I need it to end when a period or exclamation point is entered. I have to use while/if loops. I feel like I'm really close ...
[13 replies] Last: A variable of type char may hold one value at a time, therefore it doe... (by cire)
check if character is NOT in string
 
hello all. im making a sudoku solver.. my problem is that when it checks row, column and region for numbers, it seems to find the number that is present in all ...
[3 replies] Last: thank you very much.. it was starting to frustrate me especially when ... (by PR Erkle)
How to use a loop?
 
How do I make this program continue to ask for a paycode after the previous case is complete? And then also show how many times each case has been used? Samp...
[4 replies] Last: #include <iostream> using namespace std; int main() { int option_sele... (by brookeann1694)
Making a Variable while Running?
 
I was thinking of making a mini programming language within a program. Knowing this, I would have to be able to make variables while running the program. Anyway...
[1 reply] : It has to be simulated. Something like this: #include <iostream> #in... (by JLBorges)
Binary Search Tree remove()
 
Im working on a BST remove function. I think I'm on the right track but I'm not sure. From what I understand there are 3 possible cases. A Node with no children...
[no replies]
by cozier
Can't figure out why I am getting this error while testing.
 
I am working on an assignment for school and while testing this short program to determine tax rates on a particular income I run into problems when trying to t...
[2 replies] Last: I got that taken out, but didn't seem to do the trick. Still getting r... (by cozier)
How to Make a Simple Calculator
 
This is for the noobies. But the calc. has all 4 operations. #include <iostream> using namespace std; int main() { double fnum, snum, op, answer; top: co...
[3 replies] Last: switches can be used on any constant, not just int, and its not a loop... (by Little Bobby Tables)
read in txt file into assigned constant
 
Hello guys im working on my C++ assignment i have trouble reading string in txt to an assigned constant this is my file 6 Joe P 10.02 Y Mary r 15.50 N Dan...
[no replies]
by stanz
need help
 
How to modify this program using
[1 reply] : What's your problem? Inserting: while (0) ; anywhere will be a sol... (by ShodanHo)
Uninitalized local variables
 
So I believe the problem I am having is that I've been looking at my code for so long that it is starting to look like Greek. The error I am getting is in this ...
[2 replies] Last: Oh God! I'm so dumb sometimes it is scary. Yes, you would be 100% corr... (by TRAINWRECK)
Beginner Function Help
 
I am asking for the user to enter their age and if the number is less than 0 or greater than 100 to ask them again until they type in a number between 0 and 10...
[1 reply] : while(age < 0 && age > 100) Age can't be less than 0 and greater th... (by wildblue)
by send
Type cast from char array to int in HEX to DEC funct
 
#include <iostream> #include <string.h> #include <math.h> using namespace std; int hexdec (char * hex) { int k=strlen(hex); int i; int res=0; for (i=2;i<k;i++) ...
[3 replies] Last: It is works very well with numbers such as 0xFFFF, so the issue is dec... (by send)
February 2014 Pages: 1... 3132333435... 60
  Archived months: [jan2014] [mar2014]

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