Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #3K
~4K People Reached
PC Specs
OS X 10.8.2, 2 GHz Intel Core i7, 16 GB 1333 MHz DR3
Favorite Tags

21 Posted Topics

Member Avatar for toldav

I don't really see what you are asking... Is there something wrong with your code? Does it not run correctly?

Member Avatar for stultuske
0
188
Member Avatar for pattmorter

Hey everyone So I attempting to recreated one of my game I created in flash to HTML5 with EnchantJS. I originally got my basic images to display but then because I have to have a grid of 6x6 squares, constantly typing everything over and over again gets annoying. So I …

Member Avatar for LastMitch
0
205
Member Avatar for Violet_82

I added `System.out.println` Statements throughout your different loops and it kept repeating `THIRD LOOP` meaning your final loop is where it is getting stuck. Other than that I can't really find whats wrong myself. Add lots of `System.out.println()` to your code to see whats being repeated and what is not. …

Member Avatar for Violet_82
0
132
Member Avatar for pattmorter

Hey everyone, So i've been doing some reasearch and I can't seem to find the answer to my problem anywhere. It could also be that I don't really understand the articles I find in google but I figured I'd ask here since everyone is always so helpful. So for a …

Member Avatar for pattmorter
0
260
Member Avatar for pattmorter

Hey everyone. I was doing a simple test program today that my professor is asking us to do just to test to see if his Ant script works correctly and I came across a problem that is confusing me. My prof wants us (after created all of our homework class …

Member Avatar for pattmorter
0
202
Member Avatar for pattmorter

Hey everyone. So I'm trying to create a siple text editor for handling HTML. I got the majority of the program written to where when you click the toolbar the text is inserted. The only problem is that it only inserts it at the end. So Now I'm trying to …

Member Avatar for pattmorter
0
249
Member Avatar for pattmorter

What's up everyone. A few months ago I followed a website tutorial on how to make a custom CMS and it worked for me on my web server. Well I just recently installed MySQL + phpMyAdmin on my laptop under the localhost of my machine (i have a mac if …

Member Avatar for jkon
0
213
Member Avatar for pattmorter

Hey everyone. I was learning how to make a simple content system for my website today and I was following along the code at [css-tricks.com](http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/) and when I was all finished, I got this error saying: `Parse error: syntax error, unexpected $end in /home/gosports/public_html/gsbadmin/_class/simpleCMS.php on line 107` I read up …

Member Avatar for diafol
0
172
Member Avatar for pattmorter

I'm going over a practice exam right now and I've come across something I can't figure out. I understand what incrementing is but I just don't know why the answer is 0. //What is the value of a after the following code is run (int a=12). a += a -= …

Member Avatar for VernonDozier
0
166
Member Avatar for RainbowMuffin

all EOF does is checks to see whether or not the end of the file was reached. Usually this is used when doing a loop in a which you read input from the file. By what you described, it sounds like the user should be prompted with a menu to …

Member Avatar for thines01
0
141
Member Avatar for pattmorter

Hey everyone. I just finished a cross product calculator program for the fun of it trying to test stuff outside of my rage of knowledge. I tried a couple new things like strings and cin.fail() so if someone would read over it and tell me what I did right/wrong that …

Member Avatar for pattmorter
0
289
Member Avatar for khanthegamer
Re: C++

you have a ; after the last bracket. and system("pause"); is not a good thing to use.

Member Avatar for khanthegamer
0
160
Member Avatar for Tinier
Member Avatar for eliokdc

hint hint. it has something to do with cin and strings. try looking up another way of inputting information.

Member Avatar for ob3sus
0
95
Member Avatar for Borgan

Exactly what Mandrew said. And here's a tip to clean up your code. Rather than writing: cout<<"Please type in 3 numbers.\n"; cout<<"A: "; cin>>a; cout<<"\n"; cout<<"B: "; cin>>b; cout<<"\n"; cout<<"C: "; cin>>c; cout<<"\n"; You can do this: cout << "Please type in 3 number.\n"; cout << "A: "; cin >> …

Member Avatar for ob3sus
0
212
Member Avatar for pattmorter

I am working on a practice exam right now and I came across a write-your-own code problem that I can't figure out. The question is: > Modify your first function. In addition to returning the greatest value by pass-by-value, you should also sent a true/false value back to main() if …

Member Avatar for pattmorter
0
217
Member Avatar for pattmorter

So I was doing some code for input validation on my homework program and i have the correct code to make sure a number entered it correct but I thought, what if they enter a letter. We aren't required to make sure that the user entered a number but how …

Member Avatar for WaltP
0
179
Member Avatar for rbran74

What SoapyCro says. Using only setprecision(2) does 2 places so .9 would be correct because 0.9 is 2 digits. Including cout << fixed; like SoapyCro did forces 2 places after the decimal.

Member Avatar for pattmorter
0
136
Member Avatar for pattmorter

a friend asked me to help him with his lab. the lab involves opening a file and adding the numbers in the file together displaying how many even and how many odd numbers there are. I have the file "textinput.txt" in the directory with the .cpp file but when i …

Member Avatar for pattmorter
0
303
Member Avatar for radiat

Like Walt P says, when you define an integer within a for loop, it only is recognized within that for loop in which it is defined. If you would have defined i outside of the for loop, then your code will work.

Member Avatar for MandrewP
0
180
Member Avatar for pattmorter

I was studying for an exam and came across two questions that me and my friends didn't know the answer to. We are given the answer but we just can't figure out what the answer is what it is. First, why does this code give an error? [CODE]int z=5, q=2; …

Member Avatar for Ali_2101
0
194

The End.