1,990 Posted Topics
Re: Please post what you've tried so we can tell you where your error is. Welcome aboard | |
Re: tonykjose.....welcome aboard once more...[U][B]system("pause"); [/B][/U]it will pause a program before it exits.The [U][B]system("cls");[/B][/U]...is a call to the OS command line, "cls" is a command on some operating systems that clears the screen. | |
Re: consider this: [CODE] int count = 0; int min = 32767; for (i=0;i<count;i++) { if (number[count]<min) min = number[count]; }//end of i cout<<"Minimum # is"<<min<<endl; [/CODE] | |
Re: This is a great environment for Prom: [url]http://www.youtube.com/watch?v=TtJRNyPK-lc[/url] | |
Re: I have a quick thought. Many persons who join the forums are usually students who are required to take a course, for example C++. After the student has completed their course and have received the help from the forum, many never return here. So the inactive accounts/profiles...pretty much just hang … ![]() | |
Re: Good catch...just to emphasise. example: [CODE] 12/58 = 0 [/CODE] (integer arithmetic drops the fractional part). Welcome aboard too. | |
This is what I've got so far: [CODE] #include <iomanip> #include <cmath> #include <fstream> #include<string> #include<iostream> using namespace std; int main() { double numA=0; double numB=0; double productB; double accumulator = 0; cout<<"Your two numbers to multiply are?"<<endl; cin>>numA>>numB; double productA = (numA * numB); if (numA>numB||numA%2==1)//check if larger and … | |
Re: A brief description of the assignment would also be helpful | |
Re: To get the largest and mimimum #, we could create/use a Max() function after we've declared/initialized i & count to zero: [CODE] int Max() { int largest = Numbers[0]; for(int i = 0; i < count; i++) if( largest < Numbers[i] ) largest = Numbers[i]; return largest; } [/CODE] This … | |
Re: Hello there, if you notice that your PC is running slow, it maybe possible that computer is still infected. In addition to viruses, your computer may be infected with spywares, Trojans, worms, adwares, viruses and other malwares. Personally, if a PC is infected, I do recommend using more than one … | |
Re: Ok then...how about this: [url]http://www.youtube.com/watch?v=TtJRNyPK-lc[/url] and [url]http://www.youtube.com/watch?v=YiOiA1yThJ8[/url] and [url]http://www.youtube.com/watch?v=OEotMbRfDvA[/url] | |
[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> #include<iomanip> using namespace std; int main() { ifstream infile; ofstream outfile; int num;//number of grades int Hi;//highest test grade int Low;//lowest test grade sting stat;//status of grade, whether higher or lower than avverage infile.open ("grades.txt"); outfile.open ("gradeOutput"); double number;//the … | |
Write a c++ program that will read in an unknown number of employee records from a text file call “PAYDATA3.TXT”. Each employees record is a string of 47 characters (with spaces), set up as follows: Positions Data Description 0 – 14 Last Name (15 characters) 15 -24 First name (10 … | |
Re: well, in addition to cost, you may wanna take into consideration what you're going to be using the PC for, for example if you're a PC gamer, you'll want to think about grapics (monitor size), memory, processor speed, weight, wirless and battery power....just to name a few. Personally, i've had … | |
Re: Sorry to hear about the loss of your laptop. Pitty you didn't get the lo-jack with it. I remember reading somewhere that there is a software that if installed on the laptop (while in owners possession) would alert the owner if someone tries to access the interent. It would let … | |
Re: what "problem" does it say it's having? Copy the error log and post it here so that we can see it. | |
Re: Hello there, if you notice that your PC is running slow, it maybe possible that computer is still infected. In addition to viruses, your computer may be infected with spywares, Trojans, worms, adwares, viruses and other malwares. . My personal recommendation for cleanup softwares are : Adware SE, ACE, Avast, … | |
Re: [QUOTE=Narue;449187]It's possible that he wants you to use global variables, but if that's the case I'd seriously consider getting a new teacher.[/QUOTE] Silly things teachers make you do make/mandate in codes frustrates the heck out of everyone, it's such a turn-off for noobs like. ![]() | |
Re: oookk then....what a long code....i won't even bother to compile the program...whats this game suppose to be? sneha_venky...try somrthing simple to start out with...how about writing a c++ game that asks the user to guess a number between 1 and a 100. If you guessed correctly, it will say you … | |
Re: A few things: We only provide help, we don't give away codes. You must also try to think about it on your own. Minimum value for a variable of type short. –32768. Maximum value for a variable of type short. 32767. Visit here for some other relavnt information:[url]http://msdn2.microsoft.com/en-us/library/ms860861.aspx[/url] I have … | |
Re: Try this: [CODE] srand ( static_cast<unsigned int> ( time ( 0 ) ) ); int randNum = rand() % 10 + 1; [/CODE] :cool: | |
Re: i did this program with the loops and not needing a separate functions from main. | |
[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> using namespace std; int main() { int num1 = 0; int num2 = 0; char again = 'y'; while (again=='y') { cout<<"Please enter two numbers to compare "<<endl; cin>>num1>>num2; cout<<"The two numbers entered in order were "<<num1<<" and "<<num2<<endl; … | |
Write a c++ program that will read in, from a file entitled "word.txt", an unknown number of single words (no spaces ). The program will then print out the word, move 2 tabs to the right, display the word with the first letter removed, move 2 tabs to the right, … | |
Good day. I recently purchased a TI-84 calculator and realized that it has some programming commands as a c++ compiler would. Is it possible to load a c++ program on a ti-84 calculator...thx | |
Re: I've always thought about this too....but if you need different colour text..i think you could use " #define yl system("color 0e");". | |
Re: Oh my goodness...that's carzy....not many cars can do that. Well time for me to head to the alps... | |
Re: ooookkkkk then....... so michael jackson or this guy: [url]http://www.youtube.com/watch?v=LbvP7dT3Dx0[/url] | |
Re: Format hard-drive from start-up and as caperjack said.....re-install. | |
The assignment is : Write a C++ program that calculates the volume of 3 different geometric shapes. Your program should give the user a menu like the following and repeat until the user wants to stop. Volume Calculation Program Select the Number of Your Chosen Object 1. Dumbbell 2. Axle … | |
Re: Just calm down and think about about it. Use a flow chart to get some ideas and then post your code that you've tried. Looks like in this code, they may be a need for if/else statements. The only way to be successful in programming is to try and get … | |
Re: What's the purpose of the '^' (carot) symbol in C\C++? | |
Re: welcome aboard...i could write a book about u jennifer...just joking | |
Re: [QUOTE=Sturm;443853]Are most computer science professors that incompetent?[/QUOTE] ..To be honest, it's unfortunate, you learn more from Google and the forum, than these instructors...it's sad. Neither did i know about the airplane algorithim. For example, on one of the programs, I used a 'break' with a 'for' loop. The program compiled … | |
Re: Nice to have you aboard. You've got an interesting country there...quite diversed. | |
Re: My choices: 1. [url]http://www.youtube.com/watch?v=YiOiA1yThJ8[/url] 2. [url]http://www.youtube.com/watch?v=OEotMbRfDvA[/url] And then...who is it going to be guys...Michael Jackson or : [url]http://www.youtube.com/watch?v=Ll8Qm8yDj-8[/url] | |
Re: Hhhhmmmmm...if you're unable to turn on your fire-wall, I do recommend that you clean/restore your registry files…if these are corrupted, your PC will slow down. The software to help you with your registry: RegCure and Regpair. Some of the above mentioned programs can be downloaded at [url]www.cnet.com[/url]. Also, there are … | |
Re: When you say that your background has been 'locked out', please elaborate. Also, you have additional copies of "C:\WINDOWS\system32\svchost.exe". I think that there should only be 2. | |
I need a head-up on this program....i really don't know where to start....however for section one, i'm guessing we'll have to use for loop from 1000 to 9999...because of the fact that they show the range of the samllest to largest 4 digit #'s. In section two I guess we'd … | |
Re: So what kind of problems are you having with your computer? | |
Good day: There have been similar posts to my question...but i don't see what I'm doing wrong. Our professor wanted us to use a switch/case statement, we started transversing a string....The assisgnment : Write a program that will read in a one line phrase from a text file named “vowels.txt”. … | |
Good day guys: The assignment is : Write a program that will generate an unknown (between 93 & 139) count of random numbers whose values fall between 147 and 206. Calculate the average to 2 decimal places and the standard deviation (3 decimal places). On the monitor, display only the … | |
![]() | |
Re: Just out of curiosity...I'd like to know the amount of posts that are required to progress through the different levels of poster...ie. New poster---->junior poster in training------>Junior poster------>? | |
The following is my "inFile": [code]UEAALEUE RIXETOHI BACOZOEI DIUEAOAU ZIKOFIMO RESUZEAE IIJEHUMO EEQINOXO TAOEKIBI RUQICIGU ZIWAREWE HIDIFIFO MOIACALA MEJIEACO UAPEUUQU YISOZAZO KENIDONA EEVIYOHU SEJEXEYA OESEQUFU NUJECAUE RAKAWUME NISIMAKE MEPIBADO TAUELAZI IIEACINU IITOGIIE GIEIFEVU NIOUQELU IIVOFEHI TOKUCORU GUQOEOJE HOBUUIXA HOVEDAGO JEROMAFA TOLIOELU QIGOIIAA TEDEIUOA COZOLELA YOHUZUZA QUNACAKO POSAEIGA JECAMOPE VAKEKAPA LEJEVINE … | |
Re: The only way to learn and master c++ is if you practice and get corrected.... | |
Re: Hello there, if you notice that your PC is running a bit crazy, it maybe possible that computer is infected. In addition to viruses, your computer may be infected with spywares, Trojans, worms, adwares, viruses and other malwares. Please let us know what type of computer you have and also … |
The End.