868 Posted Topics
Re: There are too many compile errors to be counted. For example [code]void getdownPayment(float& downPayment)[B][COLOR=Red]; // you dont need this semicolon[/COLOR][/B] {[/code] There are a lot of functions that have similar errors. Also it looks as if you are not saving the file in ASCII format. Best thing is to copy … | |
Re: Indent your code properly. Just telling the program won't give you the result doesn't help. Tell us what you expect and what the program gives actually. [code] void SortList::QuickSort(int X,int I) { int L,R,V; if (I>X) { V=list[[B][COLOR=Red]i[/COLOR][/B]];[B][COLOR=Red]// what is this simple i? I don't see it declared anywhere.[/COLOR][/B] L=X-1; … | |
Re: [quote=DMR;256651]Now- tell me, Oh Uberly One: how do I get my sound card working under FC5? [/quote] An uberly one I'm certainly not so confusion arose in my simple thought Surely in your marsupial abode Ought to be a disc of windows stored? | |
Re: We don't do homework. If you post code which you have written upto now, and say where you are having the problems, we will help. | |
Re: use [URL="http://www.cppreference.com/cppstring/length.html"]std::string::length()[/URL]. | |
Re: [CODE]//--------------------------- // lab8.cpp // Author: Grant Bivens // Class: EET 2303 C++ // Professor: Dr. Imad Abouzahr // Date: 4-4-06 // This program generates a table of values at specific times along a sine waveform. //--------------------------- #include <stdio.h> #include <stdlib.h> #include <cmath> // includes #include <iostream> #include <iomanip> using std::cout; … | |
Re: It is used when you want to control your program from the command line. Rather than promting the user for input, say for example entering a filename, you can use a switch like [inlinecode] -f filename.txt[/inlinecode] and that will be all the program needs for execution. The command line arguments … | |
Re: Not many newbies bump a thread to say thanks. When something like that occurs it is up to the moderators to educate the users (usually by deleting the unwanted post and giving the reason-this sents an automatic PM telling the user about their offence). Once they get to know that … | |
Re: [quote=The Dude;264661]Its sad thinking he thought this was his only way out! :([/quote] Wasn't he trying to get in? | |
Re: [quote=FireSBurnsmuP;264534]Do I have to go through a for loop and delete each character individually?[/quote] No. Just calling delete pointer_variable should suffice. The destructor of class string should handle the rest. If you are trying to delete an array of string pointers, use delete []array_name; Another thing is make sure that … | |
![]() | Re: [quote=vishesh;263012]Suppose I have created a class [B]new [/B]with arguments. [/quote] You can't do this. [inlinecode]new[/inlinecode] is a C++ keyword. You can't create classes or variables with keywords as names. [quote=vishesh;263012] I have declared this as object [B]new1[/B] in the main. [I]new new1(arguments)[/I]. Now what should i do if i want … ![]() |
Re: [code][COLOR=Red]#include[/COLOR] <stdio.h> [COLOR=Red]// There should be no spaces between # and include[/COLOR] #include <stdlib.h> int main (void) { int n [COLOR=Red]= 9; // initialize n to the value you want[/COLOR] for (int i=0; i<n; i++) [COLOR=Red]// deleted the semicolon[/COLOR] { [COLOR=Red]// You print spaces until n - 1 - i[/COLOR] … | |
Re: [quote=Ancient Dragon;263869]the thief was taking 1 gr from each trinket[/quote] You didn't tell this initially. We all thought that the cheat could steal only from [B]his[/B] trinket. So the total was always 1 gram less than 55 oz. :eek: | |
Re: [quote=Iqbal_h_a;262984] My question is, doesn't compiler provide the default constructor when we declare an object of type const? [/quote] There is no such limitation. The above code compiles under Visual Studio 2003. PS. But if you have a data member in the class, things should be different. That is because … | |
Re: Try the [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp"]ShellExecute[/URL] API. | |
Re: I got spatial too. But I am sure I got all but one correct. How do you get the results? | |
Re: This question does not belong in the C/C++ forum. The email address within a post is also not allowed. If you give me the OS you are using, I will move this to the correct forum. Although under normal circumstances I would delete the email without question, I will do … | |
Re: Just use the [URL="http://www.cppreference.com/cppstring/replace.html"]replace[/URL] method of the C++ string class. Something like this perhaps. [code] #include <iostream> #include <string> int main() { std::string email("abcdefgh@abcd.com"); std::cout << email << std::endl; email.replace( email.find('@'),1, "AT" ); std::cout << email << std::endl; return 0; } [/code] One thing to note is that only the … | |
Re: Looks like I am getting a bit rusty. [B]You Passed 8th Grade Math[/B] [IMG]http://images.blogthings.com/couldyoupasseighthgrademathquiz/passed.jpg[/IMG] Congratulations, you got 8/10 correct! [B]Could You Pass 8th Grade Math?[/B] [URL="http://www.blogthings.com/couldyoupasseighthgrademathquiz/"]http://www.blogthings.com/couldyoupasseighthgrademathquiz/[/URL] | |
Is it just me or isn't this a bit dangerous option? ( Like Format C: (Y/N) ). Once you uncheck all and press save, all your contacts are gone unrecoverably? I am too chicken to press and see what happens. Tried to upload a screenshot of this option, but couldn't … | |
Re: [quote=joeprogrammer;258507]it features a seperate close buttons for each tab, that it now has a built-in RSS reader [/quote] The RSS feeds are cool. But I would really like the close button to be at the previous place. That way, when I have to close a lot of tabs at the … | |
Re: Okay. How do you know that someone flagged your post as bad in the first place? Only moderators can read the bad post reports. And I double checked the bad posts section. Nothing has been reported on that post. Are you sure that you got reported? Yep. Checked again. A … | |
Re: [quote=johnnyrocket;259441]I've placed a CSV file into an array with C++ with each row being a single array element, but the file contains many, many columns that I don't need. I only need columns 1,2,3,4,6,7 out of about 50. Is is best to read the full value into the array and … ![]() | |
Re: I believe you are looking for something like [URL="http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=388"]this[/URL]. | |
Re: What is the question? Use code tags the next time. | |
Re: [quote=computerages;259613]I want a program, which will set an alarm on a computer at a specific time according to the day and time... and a window will pop up on the screen with your own text on it.... I want the yellow notification box on the toolbar to popup indicating a … | |
Re: In any case your problem doesn't relate to C or C++. Please refer the modem documentation, or ask your question from the particular modem manufacturer's support staff. | |
Re: Do this [code]struct SongInfo { int track_no, track_pos, track_len_min, track_len_sec, runtime; SongInfo *next; [B][COLOR=Blue]friend [/COLOR][/B]ifstream& operator>> (ifstream& ins, SongInfo *target); [COLOR=Blue][B]friend [/B][/COLOR]ostream& operator<< (ostream& outs, SongInfo *target); }; [COLOR=Blue][B]ifstream[/B][/COLOR]& SongInfo::operator>> (ifstream& ins, SongInfo *target) { ins >> target->track_no >> target->track_pos >> target->track_len_min >> target->track_len_sec; return ins; } [COLOR=Blue][B]ostream[/B][/COLOR]& SongInfo::operator<< (ostream& … | |
Re: hmmm. This is getting out of hand. Is it just me or are more and more people expecting us to do their work? [quote=shermaine] What should i add on so that user can enter the four weights from the keyboard. The program should print an error message is the weights … |
The End.