Thread: [Dev-C++] (no subject) (Page 2)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Purohit P. J. <pra...@si...> - 2001-03-06 07:29:48
|
Will some one please tell me How To Specify Multiple Include Directories = when using g++ on a linux machine Prahlad J. Purohit... PH: +91-22-8143953 |
From: jag <won...@th...> - 2001-03-25 02:35:37
|
This email was delivered to you by The Free Internet, a Business Online Group company. http://www.thefreeinternet.net --------------------------------------------------------------- unsubscribe |
From: Christian W. <Chr...@vo...> - 2001-04-06 06:18:22
|
Hi, i must learn C++ to write DLL's for our appz. Have anyone a simple DLL or a link where it is explained ? |
From: Alan T. <ala...@3n...> - 2001-04-07 01:50:47
|
Nathan, Can you use a vector or other container that is easily = and safely extended? Perhaps an array is a bad choice for what you`re = trying to do. See = http://www.icce.rug.nl/docs/cplusplus/cplusplus08.html#l112 for vectors = and http://www.icce.rug.nl/docs/cplusplus/cplusplus08.html#l109 for C++ = abstract containers. Below is an example of how to use the vector container (for = a vector of strings). Alan #include <string> #include <iostream> #include <fstream> #include <vector> using namespace std; int main() { vector<string> v; ifstream in ("Fillvector.cpp"); string line; while (getline(in, line)) v.push_back(line); // Add line to the end // Add line numbers: for (int i=3D0; i < v.size(); i++) cout << i << ": " << v[i] << endl; =20 system("PAUSE"); return 0; } Message: 2 From: "Nathan Smith" <str...@ho...> To: "Dev C++" <dev...@li...> Date: Fri, 6 Apr 2001 14:09:46 +1000 Subject: [Dev-C++] Extending an array Reply-To: dev...@li... Is there a way at runtime, after an array has been populated to extend = it? Like I have char stuff[40][17] and I want to extend it to = stuff[xxxx][17]? |
From: Christian W. <Chr...@vo...> - 2001-04-10 13:34:14
|
Hi there, i followed the discussion about the execution of a external prg. I have to learn c++ too, so i copy the source into vc++6.0 (i must use it ... :-( ): --------schnipp--------------------------------------- #include <stdio.h> #include <conio.h> #include <windows.h> #include <stdlib.h> #include <shellapi.h> #include <iostream.h> void main(void) { char c_prg; printf("Wich program sould be executed: "); scanf("%s", &c_prg); getchar(); ShellExecute(GetDesktopWindow(), "open", &c_prg, NULL, NULL, SW_NORMAL); getchar(); }; --------------schnapp---------------------------- if i enter a windows prg. this prog terminate with an error (access violation). WHY ? Thank you for your help Christian Wallukat Voxtron GmbH, Porschestr. 1-7, 59227 Ahlen Tel.: +49 2382 98974-0 / Fax: +49 2382 98974-74 Internet: <http://www.voxtron.de/> / Mail: <mailto:su...@vo...> |
From: Lorenzo <co...@in...> - 2001-04-10 13:52:25
|
> if i enter a windows prg. this prog terminate with an error (access > violation). > > > WHY ? Because you are using a char variable instead of char vector, try this: char c_prg[256] = {0}; <-- look printf("Wich program sould be executed: "); scanf("%s", &c_prg); getchar(); ShellExecute(GetDesktopWindow(), "open", c_prg, NULL, NULL, SW_NORMAL); <-- look Regards, Lorenzo |
From: <jos...@ya...> - 2001-04-10 14:46:43
|
Christian, > void main(void) If you want to learn C++ you should do it right from the beginning. It is int main() Now that we speak the same language here is the reason > scanf("%s", &c_prg); > > ShellExecute(GetDesktopWindow(), "open", &c_prg, NULL, NULL, > SW_NORMAL); > > if i enter a windows prg. this prog terminate with an error (access > violation). > > > WHY ? The name of the program need to be enclosed between inverted commas, but the variable c_prg doesn't have them. BTW: Don't think you can use Win API functions in this fancy way. Perhaps you can encounter some severe problems. I suggest you to learn the basics of C++ and start to learn Windows programming as a complement. Hope this clarifies. Chemanuel __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
From: Christian W. <Chr...@vo...> - 2001-04-12 10:27:00
|
Hi there, i am still learning c++, for educational purposes i want to write a = litle database. I created a struckt: ------------------schnipp---------------- typedef struct { char nname[100]; //Variable nname mit 100 Zeichen l=E4nge... char vname[100]; char strasse[100]; char tel[100]; } S_ADRESSE; S_ADRESSE datensatz[1000];=20 ----------------schnapp------------------ if i want to write this in a file with ------------------schnipp---------------- FILE *p_dateizeiger; int i_i; int i_c; char c_c[1]; //Versuche Datei zu =F6ffnen, bei Fehler ausgabe=20 if ((p_dateizeiger =3D fopen("adressen.txt", "w")) =3D=3D NULL) { //Da bei Fehler fopen den Wert NULL liefert, den Fehler ausgeben =20 printf("\nEs ist ein fehler beim oeffnen der Datei aufgetreten !\n\n"); =20 break; } else { for (i_i =3D 0; i_i <=3D i_ds; ++i_i) { =20 printf("\nSchreibe Datensatz: %i\n",i_ds); =20 for (i_c =3D 0; i_c <=3D 99; ++i_c) { =20 c_c[0] =3D datensatz[i_i].vname[i_c]; if (c_c !=3D "\n")=20 { if (c_c !=3D " " || c_c !=3D "") fputc(datensatz[i_i].vname[i_c], p_dateizeiger); } else { fputc('\n', p_dateizeiger); break; }; =09 =09 }; }; ----------------schnapp------------------ and open the file with notepad there are many spaces before the caracters... How you see, i tried to filter this without any success... Who can help ? best regards... Christian Wallukat Voxtron auf der CeBIT: Halle 17, Stand C56 - besuchen Sie uns!=20 Voxtron GmbH, Porschestr. 1-7, 59227 Ahlen=20 Tel.: +49 2382 98974-0 / Fax: +49 2382 98974-74 Internet: <http://www.voxtron.de/> / Mail: <mailto:su...@vo...>=20 |
From: Purohit P. J.. <pra...@si...> - 2001-04-24 11:48:54
|
Hi, No dear yet Dev-C++ is not available for linux, But the author of Dev-C++ ie Colin has plans to release a linux = version. regards, Prahlad Purohit |
From: <LO5...@ao...> - 2001-05-06 21:01:38
|
#include <iomanip.h> #include <iostream.h> #include <stdlib.h> const int removal= 500; const int trimming= 80; int main() { int r; int g; int t; float cost; char choice= 'y'; char more_grinding; float total; do { cout<< "please enter the width of tree"; cin>> g ; if(g <=10) { cost = 25; cout << cost; } else if(g >10) { cost = (g - 10) * 2 + 25; cout<< cost; } cout << "anymore grinding...? <y> or <n>"; cin >> choice; } while (choice == 'y'); total= cost + cost+ cost +cost +cost+cost; cout<< "total is...."; cout<< total; system ("pause"); return 0; } please, please please, could some genius help me with this pathetic problem, how cn i modify this code so that when i compute the total cost the subtotal will take into account the number of times the loop has been entered(remebering the cost) and adding each cost, ie) i want to compute a subtotal how can i write code to the following given x amount of integers print the largest how can i use char (n) to write a test program that allows me to see the characters contained within my characterset in my computer from a confused programmer, thanx for your precious time and patience in advance. lostboyz |
From: gisan <gi...@li...> - 2001-05-07 09:51:41
|
#include <iomanip.h> #include <iostream.h> #include <stdlib.h> const int removal= 500; const int trimming= 80; int main() { int r; int g; int t; float cost; char choice= 'y'; char more_grinding; float total; do { cout<< "please enter the width of tree"; cin>> g ; if(g <=10) { cost = 25; cout << cost; } else if(g >10) { cost = (g - 10) * 2 + 25; cout<< cost; } cout << "anymore grinding...? <y> or <n>"; cin >> choice; } while (choice == 'y'); total= cost + cost+ cost +cost +cost+cost; cout<< "total is...."; cout<< total; system ("pause"); return 0; } please, please please, could some genius help me with this pathetic problem, how cn i modify this code so that when i compute the total cost the subtotal will take into account the number of times the loop has been entered(remebering the cost) and adding each cost, ie) i want to compute a subtotal how can i write code to the following given x amount of integers print the largest how can i use char (n) to write a test program that allows me to see the characters contained within my characterset in my computer from a confused programmer, thanx for your precious time and patience in advance. lostboyz |
From: Andre` N. C. <ca...@op...> - 2001-05-07 11:31:50
|
----- Original Message ----- From: "gisan" <gi...@li...> To: <dev...@li...> Sent: Monday, May 07, 2001 5:38 AM Subject: Re: [Dev-C++] (no subject) > > > do > { > > cout<< "please enter the width of tree"; > cin>> g ; > > > if(g <=10) > .........................................................> > will take into account the number of times the loop has been I'm not sure what you mean here but if you want to keep track of howmany times the loop is hit you could add ulLoopCount = ++ above cout<< "please enter the width of tree"; of course make sure you initialize it to 0 first. |
From: Bolek V. <vr...@pa...> - 2001-05-09 11:21:23
|
Just testing the list works - I did not get any message for several days. -- ============================================================ Ing. Boleslav Vrany Stanice techniku DDM hl. m. Prahy Pod Juliskou 2a Praha 6 - Dejvice 16000 Czech Republic tel. (420 2) 243 10 240 |
From: Vassili <v.v...@bt...> - 2001-05-10 12:13:17
|
Ditto ----- Original Message ----- From: "Bolek Vrany" <vr...@pa...> To: <dev...@li...> Sent: Wednesday, May 09, 2001 12:19 PM Subject: [Dev-C++] test > Just testing the list works - I did not get any message for several > days. > > -- > ============================================================ > Ing. Boleslav Vrany > Stanice techniku DDM hl. m. Prahy > Pod Juliskou 2a > Praha 6 - Dejvice > 16000 > Czech Republic > > tel. (420 2) 243 10 240 > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: <LO5...@ao...> - 2001-05-20 22:55:55
|
#include <iostream.h> #include <stdlib.h> const char a =3D 61; const int SENNTINEL=3D -999; const char SKIP =3D' '; void main() { char choice; int quantity; int quit; int cost; int cost1; int cost2; int cost3; int cost4; int cost5; int cost6; int cost7; int cost8; int cost9; int count =3D0 ; int fbw=3D 61; int fbb=3D 68; int dp=3D 48; int cc=3D358; int crp=3D 98; int cmp=3D159; int pies=3D53; int t1=3D92; int t2=3D127; int num; cout << SKIP << "* * ******** The Bakery ************ * *" ; cout << endl; cout << endl; cout << SKIP <<" Item code Item Price "= ; cout << SKIP; cout << endl; cout << endl; cout << SKIP <<" a Fresh Bread White 61p "= ; cout << endl; cout << SKIP <<" b Fresh Bread brown 68p "= ; cout << endl; cout << SKIP <<" c danish pastries 48p "= ; cout << endl; cout << SKIP <<" d celabration cake 358p "= ; cout << endl; cout << SKIP <<" e cookies regular pack 98p "= ; cout << endl; cout << SKIP <<" f cookies maxi pack 159p "= ; cout << endl; cout << SKIP <<" g pies 53p "= ; cout << endl; cout << SKIP <<" h sandwiches type 1 92p "= ; cout << endl; cout << SKIP <<" i sandwiches type 2 127p "= ; cout << endl; cout << endl; cout << SKIP <<"******************************************************"= ; cout << endl; count =3D 0 ; while (quit !=3D SENNTINEL) { cout << "please select an item" <<endl; cin >> choice; cout << "please select quantity press"<<endl; cin >> num; count=3D count + 1; cout<< count; if(choice=3D 'a') { cost1=3D fbw * num; } if(choice=3D 'b') { cost2=3D fbb * num; } if(choice=3D'c') { cost3=3D dp * num; } if(choice=3D'd') { cost4=3D cc * num; } if(choice=3D'e') { cost5=3D crp * num; } if(choice=3D'f') { cost6=3D cmp * num; } if(choice=3D'g') { cost7=3D pies* num; } if(choice=3D'h') { cost8=3D t1 * num; } else if(choice=3D'i') { cost8=3D t2 * num; } cout << endl; cout << "press -999 to quit or 111 to continue"<<endl; cin >> quit; } cout << SKIP << "* * ******** The Bakery ************ * *" ; cout << endl; cout << endl; cout << SKIP <<" Item code Item Price Quantity =20 Price2 " ; cout << SKIP <<" =20= =20 "; cout << endl; cout << endl; cout << SKIP <<" a Fresh Bread White 61p" <<" "<< =20 num <<" "<<cost1; cout << endl; cout << SKIP <<" b Fresh Bread brown 68p" <<" "<< =20 num <<" "<<cost2; cout << endl; cout << SKIP <<" c danish pastries 48p" <<" "<< =20 num <<" "<<cost3; cout << endl; cout << SKIP <<" d celabration cake 358p" <<" "<< =20 num <<" "<<cost4; cout << endl; cout << SKIP <<" e cookies regular pack 98p" <<" "<< =20 num <<" "<<cost5; cout << endl; cout << SKIP <<" f cookies maxi pack 159p" <<" "<< =20 num <<" "<<cost6; cout << endl; cout << SKIP <<" g pies 53p" <<" "<< =20 num <<" "<<cost7; cout << endl; cout << SKIP <<" h sandwiches type 1 92p" <<" "<< =20 num <<" "<<cost8; cout << endl; cout << SKIP <<" i sandwiches type 2 127p" <<" "<< =20 num <<" "<<cost9; cout << endl; cout << endl; cout << SKIP <<"******************************************************"= ; cout << endl; system("PAUSE"); return 0; } hello programmers i was wondering if anyone could help me with a problem , i= =20 am trying to calculate num but i can only calculate the last num entered by=20 the user i want to calculate all num (numbers) that the user types in ie i=20 want num to be stored each time a different value for num is entered so that= =20 i can calculate different quantities of items eg, 10(num) * =A33.50 2(num) *61p 15(num) 89p each time num is entered i only receive calculations for the last num entere= d=20 15 in this example, but i need all nums to be calculated. The user can only=20 type in a code for an item eg a=3Dfresh brown bread followed by a quantity=20 (represented by num) this process is repeated until the user is happy with=20 there selection from the menu. I need to print out a menu indicating item ,=20 quantity , then cost which is item * quantity but i seem to only be able to=20 calculate the last num the user enters. thanx for your precious time and patience in advance=20 from lostboyz.=20 |
From: <LO5...@ao...> - 2001-05-20 23:00:42
|
void main()=20 {=20 char choice;=20 int quantity;=20 int quit;=20 int cost;=20 int cost1;=20 int cost2;=20 int cost3;=20 int cost4;=20 int cost5;=20 int cost6;=20 int cost7;=20 int cost8;=20 int cost9;=20 int count =3D0 ;=20 int fbw=3D 61;=20 int fbb=3D 68;=20 int dp=3D 48;=20 int cc=3D358;=20 int crp=3D 98;=20 int cmp=3D159;=20 int pies=3D53;=20 int t1=3D92;=20 int t2=3D127;=20 int num;=20 cout << SKIP << "* * ******** The Bakery ************ * *" ;=20 cout << endl;=20 cout << endl;=20 cout << SKIP <<" Item code Item Price " ;=20 cout << SKIP;=20 cout << endl;=20 cout << endl;=20 cout << SKIP <<" a Fresh Bread White 61p "=20= ;=20 cout << endl;=20 cout << SKIP <<" b Fresh Bread brown 68p " ;=20 cout << endl;=20 cout << SKIP <<" c danish pastries 48p " ;=20 cout << endl;=20 cout << SKIP <<" d celabration cake 358p "=20= ;=20 cout << endl;=20 cout << SKIP <<" e cookies regular pack 98p "=20= ;=20 cout << endl;=20 cout << SKIP <<" f cookies maxi pack 159p "=20= ;=20 cout << endl;=20 cout << SKIP <<" g pies 53p " ;=20 cout << endl;=20 cout << SKIP <<" h sandwiches type 1 92p " ;=20 cout << endl;=20 cout << SKIP <<" i sandwiches type 2 127p "=20= ;=20 cout << endl;=20 cout << endl;=20 cout << SKIP <<"******************************************************"=20= ;=20 cout << endl;=20 count =3D 0 ;=20 while (quit !=3D SENNTINEL)=20 {=20 cout << "please select an item" <<endl;=20 cin >> choice;=20 cout << "please select quantity press"<<endl;=20 cin >> num;=20 count=3D count + 1;=20 cout<< count;=20 if(choice=3D 'a')=20 {=20 cost1=3D fbw * num;=20 }=20 if(choice=3D 'b')=20 {=20 cost2=3D fbb * num;=20 }=20 if(choice=3D'c')=20 {=20 cost3=3D dp * num;=20 }=20 if(choice=3D'd')=20 {=20 cost4=3D cc * num;=20 }=20 if(choice=3D'e')=20 {=20 cost5=3D crp * num;=20 }=20 if(choice=3D'f')=20 {=20 cost6=3D cmp * num;=20 }=20 if(choice=3D'g')=20 {=20 cost7=3D pies* num;=20 }=20 if(choice=3D'h')=20 {=20 cost8=3D t1 * num;=20 }=20 else if(choice=3D'i')=20 {=20 cost8=3D t2 * num;=20 }=20 cout << endl;=20 cout << "press -999 to quit or 111 to continue"<<endl;=20 cin >> quit;=20 }=20 cout << SKIP << "* * ******** The Bakery ************ * *" ;=20 cout << endl;=20 cout << endl;=20 cout << SKIP <<" Item code Item Price Quantity =20 Price2 " ;=20 cout << SKIP <<"=20 ";=20 cout << endl;=20 cout << endl;=20 cout << SKIP <<" a Fresh Bread White 61p" <<" "<< =20 num <<" "<<cost1;=20 cout << endl;=20 cout << SKIP <<" b Fresh Bread brown 68p" <<" "<< =20 num <<" "<<cost2;=20 cout << endl;=20 cout << SKIP <<" c danish pastries 48p" <<" "<< =20 num <<" "<<cost3;=20 cout << endl;=20 cout << SKIP <<" d celabration cake 358p" <<" "<< =20 num <<" "<<cost4;=20 cout << endl;=20 cout << SKIP <<" e cookies regular pack 98p" <<" "<< =20 num <<" "<<cost5;=20 cout << endl;=20 cout << SKIP <<" f cookies maxi pack 159p" <<" "<< =20 num <<" "<<cost6;=20 cout << endl;=20 cout << SKIP <<" g pies 53p" <<" "<< =20 num <<" "<<cost7;=20 cout << endl;=20 cout << SKIP <<" h sandwiches type 1 92p" <<" "<< =20 num <<" "<<cost8;=20 cout << endl;=20 cout << SKIP <<" i sandwiches type 2 127p" <<" "<< =20 num <<" "<<cost9;=20 cout << endl;=20 cout << endl;=20 cout << SKIP <<"******************************************************"=20= ;=20 cout << endl;=20 system("PAUSE");=20 return 0;=20 }=20 hello programmers i was wondering if anyone could help me with a problem , i= =20 am trying to calculate num but i can only calculate the last num entered by=20 the user i want to calculate all num (numbers) that the user types in ie i=20 want num to be stored each time a different value for num is entered so that= =20 i can calculate different quantities of items=20 eg, 10(num) * =A33.50=20 2(num) *61p=20 15(num) 89p=20 each time num is entered i only receive calculations for the last num entere= d=20 15 in this example, but i need all nums to be calculated. The user can only=20 type in a code for an item eg a=3Dfresh brown bread followed by a quantity=20 (represented by num) this process is repeated until the user is happy with=20 there selection from the menu. I need to print out a menu indicating item ,=20 quantity , then cost which is item * quantity but i seem to only be able to=20 calculate the last num the user enters.=20 thanx for your precious time and patience in advance=20 from lostboyz.=20 |
From: rogain <co...@ho...> - 2001-05-28 05:41:25
|
Y29uZmlybSAzMjA5NDENCg== |
From: jesse s. <sec...@ya...> - 2001-05-28 07:06:17
|
Hello there! can someone give me some to open and close the CD-Rom tray? Thank OyU __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ |
From: Peter W. (EMW) <Pet...@em...> - 2001-06-14 08:06:04
|
Hi all, I=B4m trying to learn how to address and talk to HPIB instruments with = the attached exampleprogram but I get these errors: c:\dev-c++\bin\untitled1.o(.text+0x24):untitled1.c: undefined reference = to `iopen' c:\dev-c++\bin\untitled1.o(.text+0x3d):untitled1.c: undefined reference = to `itimeout' c:\dev-c++\bin\untitled1.o(.text+0x51):untitled1.c: undefined reference = to `iprintf' c:\dev-c++\bin\untitled1.o(.text+0x60):untitled1.c: undefined reference = to `iclose' c:\dev-c++\bin\untitled1.o(.text+0x68):untitled1.c: undefined reference = to `_siclcleanup' what am I doing wrong. Sorry for being a newbie! |
From: <csc...@gm...> - 2001-07-01 15:24:22
|
help |
From: Ian W. <lak...@ho...> - 2001-07-05 22:51:13
|
hi everyone, i hope someone can help me. at the moment i am writing a program, heres what i want it to do: i want it to open a text document that i have created and i want it to search for '$$$$$' (after this there is some text i want). i then want it to read the text that follows. i use 'fstream.h' in my program if that helps. if anyone can help me i would be very thankful. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
From: Luigi S. <gi...@li...> - 2001-07-06 04:54:57
|
At 22.51 05/07/01 +0000, you wrote: >hi everyone, i hope someone can help me. at the moment i am writing a >program, heres what i want it to do: > >i want it to open a text document that i have created and i want it to >search for '$$$$$' (after this there is some text i want). i then want it >to read the text that follows. >... >_________________________________________________________________________ Ian - I hope that the following example code is of help test.cpp --------- // test the look_for function #include <fstream.h> #include "lookfor.h" int main(int argc, char **argv) { if (argc != 3) cerr << "usage: " << *argv << " file key\n"; else { const char *fname = argv[1]; ifstream file(fname); // open the text file string key = argv[2]; cout << "key is : \"" << key << "\"\n"; if (look_for(file, key)) // load the value { string val; file >> val; cout << "value is : \"" << val << "\"\n"; } else cout << "sorry key not found in \"" << fname << "\"\n"; } return 0; } lookfor.h ------------ #ifndef lookfor_h #define lookfor_h #include <iostream> #include <string> // look_for = look for the key on the stream is, return true if found bool look_for(istream &is, const string &key); #endif lookfor.cpp --------------- #include "lookfor.h" bool look_for(istream &is, const string &key) { bool found = false; string s; while (!found && is >> s) found = (s == key); return found; } here is the test data test.dat ---------- file to be used as input for "test" key_1: $$$$$ value_1 key_2: &&&&& value_2 ... try the following commands: test test.dat $$$$$ test test.dat $$$$ --- gisan |
From: Chakravarti M. <cha...@ho...> - 2001-07-30 08:25:50
Attachments:
OPR.html
|
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text+0xfa):opr.cpp: = undefined reference to `cout' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text+0xff):opr.cpp: = undefined reference to `ostream::operator<<(char const *)' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text+0x11e):opr.cpp: = undefined reference to `cout' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text+0x123):opr.cpp: = undefined reference to `ostream::operator<<(char const *)' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text+0x16b):opr.cpp: = undefined reference to `cout' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text+0x170):opr.cpp: = undefined reference to `ostream::operator<<(char const *)' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text+0x1b8):opr.cpp: = undefined reference to `cout' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text+0x1bd):opr.cpp: = undefined reference to `ostream::operator<<(char const *)' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text$show__7complex+0x28):= opr.cpp: undefined reference to `cout' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text$show__7complex+0x2d):= opr.cpp: undefined reference to `ostream::operator<<(int)' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text$show__7complex+0x38):= opr.cpp: undefined reference to `ostream::operator<<(char const *)' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text$show__7complex+0x43):= opr.cpp: undefined reference to `ostream::operator<<(int)' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccQTaaaa.o(.text$show__7complex+0x4e):= opr.cpp: undefined reference to `ostream::operator<<(char const *)' |
From: Vicente A.S. W. <th...@th...> - 2001-07-30 08:56:32
|
at first sight... you're using conio.h (a non standard header file) wich = only exists on some borland compilers ... ----- Original Message -----=20 From: Chakravarti Mukesh=20 To: dev...@li...=20 Sent: Monday, July 30, 2001 10:04 AM Subject: [Dev-C++] (no subject) Hi, I am a new user of Dev-C++. The attach program is working fine using Turboc++ while using Dev-C++ although it doesnot show any error it = produce various compiler and linker errors(I am also including them.). What = is the cause? Thanks. |
From: Vassili <v.v...@bt...> - 2001-07-30 12:58:38
|
I compiled and ran your program first go, it gave this output: COM1:10+5i COM2:15+10i THE(+)RESULT IS:25+15i THE(*)RESULT IS:150+50i it seems that your program works fine. The project type I used was an empty project, not a console. The only thing I checked under project options was the compile c++ = option. You may also have to link the conio.o object file from the project = options tab. best of luck Vas. ----- Original Message -----=20 From: Chakravarti Mukesh=20 To: dev...@li...=20 Sent: Monday, July 30, 2001 9:04 AM Subject: [Dev-C++] (no subject) Hi, I am a new user of Dev-C++. The attach program is working fine using Turboc++ while using Dev-C++ although it doesnot show any error it = produce various compiler and linker errors(I am also including them.). What = is the cause? Thanks. |