868 Posted Topics

Member Avatar for Eadams20

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 …

Member Avatar for Nick Evan
0
102
Member Avatar for taruj83

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; …

Member Avatar for WolfPack
0
106
Member Avatar for stymiee

[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?

Member Avatar for letsjoy
0
404
Member Avatar for tirivamwe

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.

Member Avatar for tirivamwe
0
126
Member Avatar for taineechan

use [URL="http://www.cppreference.com/cppstring/length.html"]std::string::length()[/URL].

Member Avatar for taineechan
0
135
Member Avatar for rgbivens

[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; …

Member Avatar for WolfPack
0
222
Member Avatar for doraemon

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 …

Member Avatar for doraemon
0
214
Member Avatar for ~s.o.s~

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 …

Member Avatar for Dani
0
241
Member Avatar for The Dude

[quote=The Dude;264661]Its sad thinking he thought this was his only way out! :([/quote] Wasn't he trying to get in?

Member Avatar for WolfPack
0
111
Member Avatar for FireSBurnsmuP

[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 …

Member Avatar for ~s.o.s~
0
112
Member Avatar for nasduck
Member Avatar for GreenDay2001

[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 …

Member Avatar for GreenDay2001
0
88
Member Avatar for morning_star_18

[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] …

Member Avatar for WolfPack
0
122
Member Avatar for ~s.o.s~

[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:

Member Avatar for Ancient Dragon
0
179
Member Avatar for Iqbal_h_a

[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 …

Member Avatar for Iqbal_h_a
0
173
Member Avatar for maxinetyl

Try the [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp"]ShellExecute[/URL] API.

Member Avatar for maxinetyl
0
116
Member Avatar for ~s.o.s~

I got spatial too. But I am sure I got all but one correct. How do you get the results?

Member Avatar for ~s.o.s~
0
163
Member Avatar for CurtisBridges

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 …

Member Avatar for gerbil
0
104
Member Avatar for LegerdemaiN

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 …

Member Avatar for LegerdemaiN
0
90
Member Avatar for The Dude

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]

Member Avatar for xyfay
0
159
Member Avatar for WolfPack

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 …

Member Avatar for Anonymusius
0
183
Member Avatar for jado

[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 …

Member Avatar for jbennet
0
153
Member Avatar for ~s.o.s~

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 …

Member Avatar for happygeek
3
384
Member Avatar for johnnyrocket

[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 …

Member Avatar for iamthwee
0
5K
Member Avatar for calvin 44

I believe you are looking for something like [URL="http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=388"]this[/URL].

Member Avatar for calvin 44
0
61
Member Avatar for Seadragon
Member Avatar for computerages

[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 …

Member Avatar for Salem
0
271
Member Avatar for Behzad Oskooi

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.

Member Avatar for WolfPack
0
89
Member Avatar for Clinton Portis

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& …

Member Avatar for Clinton Portis
0
125
Member Avatar for shermaine

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 …

Member Avatar for vegaseat
0
172

The End.