Beginners - March 2016 (Page 10)

What does exception thrown mean, and how may I fix it?
 
I am working on a very simple battleship game with one ship and three turns. My code seems to work to only about line 30, I then receive an error message statin...
[2 replies] Last: I can't believe I missed that. Thank you it works fine now. (by Too Explosive)
I'm bad at functions, keep getting errors
 
The user enters the amount of cents and the program is supposed to output it in quarters, dimes, and pennies. Then it prompts them to go again. The errors ar...
[7 replies] Last: yeah I'm looking for some easier stuff to practice now. This is for m... (by strawberryunicorn)
Randomly generate x,y coord for png's
 
Hey everyone. I got some help here before with regards to collision detection, but now I require some more help. I'm looking to allocate certain x/y coordinates...
[4 replies] Last: Thank you so much!!! (by lvluffinz)
Connecting to Mobile Device (phone) Via USB
 
Looking for some information on how I would go about notifying my software of a hardware change via USB. IE) when I plug in a mobile phone I want my software to...
[no replies]
How do I get rid of leading 0's in my output?
 
My challenge is to convert string to integer without any string-to-integer libraries. I have a working function that converts string to integer but it doesn't e...
[5 replies] Last: Have you tried running your function? It turns the string 00000345 in... (by Moschops)
how can i count the number of columns of a 2D array?
 
I'm trying to count the number of rows and columns of a 2D array. The elements for the array are in a different text file and I have to import the file. 1...
[no replies]
If statements?
 
Hi there, Im building a very simple mock phone diagnostics tool and this is what I have so far.. For some reason my if statements aren't working like I want th...
[2 replies] Last: Thanks a lot! creating variables and assigning a number was the only ... (by DragonKyn)
Functions and Array
 
Hi, I have an assignment that I am really stuck on. Question asks us to use a function and an array to have the user enter 10 numbers into the array, then in th...
[4 replies] Last: Here's the same thing again, but using a function. It may give you a b... (by Chervil)
Recursive ripple gets stuck
 
Hi, I have been trying to find my answer online but I can't find it. I bet the answer is supersimple, but I am pretty new to coding. =( Apologize for post...
[no replies]
Computation Using A Stack (1,2)
 
Everything seems to be right except for line 46. There is a bad access error but I don't know what is causing it. Also on line 61 and line 107, there are warnin...
[27 replies] Last: Ah I see. Thanks! (by DoABarrelRoll94)
help with three games menu program
 
Hello, I am having trouble to get my program to work. My compiler keeps giving me debug error messages that I do not understand how to fix the syntactical er...
[3 replies] Last: Thank You (by alexexcl)
Getting numbers from each line of a file
 
I'm trying to get the numbers from every line of a file, each line has the same format: A\tB\tC\tD where A, B, C, D are the numbers that I want. ifs...
[8 replies] Last: Problem solved. I replace "\t" in my text file with tab and it went we... (by tomtran3110)
replace chr in string - fault
 
Hi Am trying to replace a character with another character in a pointer string. The function should return the number of occurrences modified. A runtime er...
[2 replies] Last: thanks, modified as follows, and it works! unsigned int replace(ch... (by bluefrog)
by marrom
solve
 
sss
[3 replies] Last: when using using namespace std; ... (by Areey)
Is there any way I can check if the console buffer has any text?
 
I want that so I can make a function to clear the console contents, don't know if it can work, it's a long shot. Like this for example: void ClearScreen(...
[1 reply] : The short answer is no. The longer answer is if you're using a consol... (by Moschops)
getting void errors & trying to figure out if I'm doing functions right
 
I'm really bad at programming and my tutor didn't show up. I'm not sure if I'm doing the functions and if/else statements right. so if anyone could help me that...
[4 replies] Last: area(semiperimeter, sideA, sideB, sideC); You're passing the value ... (by Moschops)
by djf321
graphing calculator program help
 
I want to write a calculator console program where I would be able to type in a mathematical formula, for example 2*5+3/1, and where it would then upon pressing...
[1 reply] : "expression parser" is a search keyword. (by keskiverto)
Cannot make goto, and just end the program by itself
 
How to correct this one please? can't make solutions to it. I made a program that will covert temperature, #include <iostream> #include <cstring> #incl...
[2 replies] Last: The get function and the >> operator does not discard the newline ... (by Peter87)
Can't get array to input correctly
 
Hi, I am trying to get 5 quiz scores, 3 exam scores, and 1 final exam score in this bit of code. However, when I run this and print it out, the last quiz value ...
[2 replies] Last: Please don't double post, it's ultimately a time waster for those who ... (by TheIdeasMan)
Newbie Here!!!
 
Hello All!! I am new to this forum and very much glad to be the part of this community.
[1 reply] : You should probably move this to the Lounge. Also, welcome. (by firedraco)
March 2016 Pages: 1... 89101112... 47
  Archived months: [feb2016] [apr2016]

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