- PC Specs
- OS X 10.8.2, 2 GHz Intel Core i7, 16 GB 1333 MHz DR3
21 Posted Topics
Re: I don't really see what you are asking... Is there something wrong with your code? Does it not run correctly? | |
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 … ![]() | |
Re: 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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 -= … | |
Re: 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 … | |
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 … | |
Re: you have a ; after the last bracket. and system("pause"); is not a good thing to use. | |
| |
Re: hint hint. it has something to do with cin and strings. try looking up another way of inputting information. | |
Re: 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 >> … | |
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 … | |
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 … | |
Re: 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. | |
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 … | |
Re: 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. | |
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; … |
The End.