dev-cpp-users Mailing List for Dev-C++ (Page 205)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Ehi I. <eh...@ya...> - 2004-06-26 09:10:03
|
Hi guys, Can someone please tell me how to do WinSock programming with Dev C++? I know Visual C++ syntax, but I am not sure of Dev C++'s syntax for doing that kind of programming. Thanks. Ehi Ikhimiukor --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! |
|
From: Scott S. <age...@co...> - 2004-06-26 03:29:45
|
No clue. It all depends on when the developers can finish. That could be a long time, but I sure hope not. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Guillermo Gutierrez Sent: Friday, June 25, 2004 6:58 PM To: dev...@li... Subject: [Dev-C++] dev-cpp-4.9.9.0 Any idea when the next version w/ the latest MinGW in the installer will be available? Guillermo Gutierrez Market Scan Information Systems Software Q.A. Supervisor (818) 575-2000 x2427 ggu...@ma... |
|
From: Marco R. <ma...@ne...> - 2004-06-25 23:48:23
|
Sorry about the last post :) The link http://www.fredosaurus.com/notes-cpp/io/readtextfile.html bye. Marco -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Noorez Kassam Sent: sexta-feira, 25 de Junho de 2004 22:09 To: dev...@li... Subject: [Dev-C++] file handling How can I get integers from a file. The get() method only seems to work with chars. _________________________________________________________________ STOP MORE SPAM with the MSN Premium and get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt p://hotmail.com/enca&HL=Market_MSNIS_Taglines ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Marco R. <ma...@ne...> - 2004-06-25 23:46:24
|
Hello Kassam, Try this link: -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Noorez Kassam Sent: sexta-feira, 25 de Junho de 2004 22:09 To: dev...@li... Subject: [Dev-C++] file handling How can I get integers from a file. The get() method only seems to work with chars. _________________________________________________________________ STOP MORE SPAM with the MSN Premium and get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt p://hotmail.com/enca&HL=Market_MSNIS_Taglines ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Guillermo G. <ggu...@ma...> - 2004-06-25 22:56:45
|
Any idea when the next version w/ the latest MinGW in the installer will = be available? Guillermo Gutierrez Market Scan Information Systems Software Q.A. Supervisor (818) 575-2000 x2427 ggu...@ma... |
|
From: Noorez K. <coo...@ho...> - 2004-06-25 22:08:54
|
How can I get integers from a file. The get() method only seems to work with chars. _________________________________________________________________ STOP MORE SPAM with the MSN Premium and get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
|
From: Marco R. <ma...@ne...> - 2004-06-25 18:27:04
|
Thanks man :)=20 -----Original Message----- From: Daniel K. O. [mailto:dan...@ya...]=20 Sent: sexta-feira, 25 de Junho de 2004 16:10 To: Marco Ribeiro Cc: dev...@li... Subject: Re: [Dev-C++] __asm ??? (HELP) Marco Ribeiro wrote: > <>Now, my problem is that it=B4s not possible to program assembler = with=20 > it. The __asm instruction is not working!!!=20 1. Read the FAQ (there's a "How to use assembly with Dev-C++ ?" = question) 2. Read this:=20 http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html=20 (remember that DJGPP, like MinGW, is GCC) 3. Read this message:=20 http://sourceforge.net/mailarchive/message.php?msg_id=3D6360457 Daniel K. O. |
|
From: Sebastien K. <Seb...@un...> - 2004-06-25 16:49:07
|
A 09:55 25/06/2004 -0400, vous avez =E9crit : >The setting are stored in a different place. Under Windows XP, they are >stored under C:\Documents and Settings\Your Account\Local >Settings\Application Data. The last two folders are hidden if you go to= look >for them. Ah well, OK, same in w2k, Thank you. I searched only in the \program files\Dev-cpp path, like version 4 did. The actual way is of course much better, since several users on the same machine can have their own settings. |
|
From: Daniel K. O. <dan...@ya...> - 2004-06-25 16:10:31
|
Marco Ribeiro wrote: > <>Now, my problem is that it´s not possible to program assembler with > it. The __asm instruction is not working!!! 1. Read the FAQ (there's a "How to use assembly with Dev-C++ ?" question) 2. Read this: http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html (remember that DJGPP, like MinGW, is GCC) 3. Read this message: http://sourceforge.net/mailarchive/message.php?msg_id=6360457 Daniel K. O. |
|
From: <sp...@po...> - 2004-06-25 14:28:03
|
Sebastien Kramm wrote:
>Hi,
>With version 4.9.8.10, with the french language pack, it appears that the
>text in the buttons are inverted in the dialog box used for shortcuts
>editing. Il you hit 'OK', the changes aren't registered, you have to hit
>the 'Esc' button ("Annuler" in french) to make'em change. After checking,
>items 555 et 556 where inverted in french.lng
>
>
Please report it at http://sf.net/projects/dev-cpp/bugs .
Someone will definitely take care of it. (Don't forget to
check the checkbox when you include a file).
Thanks
Marek Januszewski
|
|
From: Marco R. <ma...@ne...> - 2004-06-25 14:02:56
|
Hello all, =20 I got a free version of Dev-c++ version 5. To be more specific, =20 Dev-C++ 5.0 beta 8 (4.9.8.0) (12 MB) with Mingw/GCC 3.2 =20 From the site, =20 http://www.bloodshed.net/dev/devcpp.html. =20 Now, my problem is that it=B4s not possible to program assembler with = it. The __asm instruction is not working!!! =20 Can someone please tell me why? Or can someone tell me where to download another free c++ compiler with this feature working ? =20 Next I present a little program (console), and the respective compile = log, =20 PROGRAM: =20 #include <iostream> #include <stdlib.h> =20 using namespace std; =20 int main(int argc, char *argv[]) { __asm=20 { mov ax,0h }=20 system("PAUSE"); =20 return 0; } =20 COMPILE LOG: =20 Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\my_projects\prj1\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\my_projects\prj1\Makefile.win" all g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" =20 main.cpp: In function `int main(int, char**)': main.cpp:9: parse error before `{' token main.cpp:10: invalid suffix on integer constant main.cpp: At global scope: main.cpp:12: ISO C++ forbids declaration of `system' with no type main.cpp:12: `int system' redeclared as different kind of symbol C:/Dev-Cpp/include/stdlib.h:373: previous declaration of `int = system(const=20 char*)' main.cpp:12: invalid conversion from `const char*' to `int' main.cpp:13: parse error before `return' make.exe: *** [main.o] Error 1 Execution terminated =20 =20 Thanks =20 Marco=20 =20 |
|
From: Scott S. <age...@co...> - 2004-06-25 13:55:21
|
The setting are stored in a different place. Under Windows XP, they are
stored under C:\Documents and Settings\Your Account\Local
Settings\Application Data. The last two folders are hidden if you go to =
look
for them.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of =
Sebastien
Kramm
Sent: Friday, June 25, 2004 4:04 AM
To: dev...@li...; web...@bl...
Subject: [Dev-C++] small bug found in french language
Hi,
With version 4.9.8.10, with the french language pack, it appears that =
the
text in the buttons are inverted in the dialog box used for shortcuts
editing. Il you hit 'OK', the changes aren't registered, you have to hit
the 'Esc' button ("Annuler" in french) to make'em change. After =
checking,
items 555 et 556 where inverted in french.lng
(I wanted to change the default setting for ALT-F4, from 'close' to =
'quit',
wich is more common I think under windows, and set CTRL-F4 for 'close')
BTW, just to know, where does Dev-cpp store its settings ? No .ini file,
nothing in HKLM or HKLU...
Corrected file is joined
Thank you all for this great tool.
|
|
From: Sebastien K. <Seb...@un...> - 2004-06-25 07:54:03
|
Hi,
With version 4.9.8.10, with the french language pack, it appears that the
text in the buttons are inverted in the dialog box used for shortcuts
editing. Il you hit 'OK', the changes aren't registered, you have to hit
the 'Esc' button ("Annuler" in french) to make'em change. After checking,
items 555 et 556 where inverted in french.lng
(I wanted to change the default setting for ALT-F4, from 'close' to 'quit',
wich is more common I think under windows, and set CTRL-F4 for 'close')
BTW, just to know, where does Dev-cpp store its settings ? No .ini file,
nothing in HKLM or HKLU...
Corrected file is joined
Thank you all for this great tool.
|
|
From: Nancy A. <nai...@ho...> - 2004-06-25 01:31:12
|
<html><div style='background-color:'><DIV class=RTE>Hi</DIV></div><br clear=all><hr>MSN Amor <a href="http://g.msn.com/8HMAES/2752??PS=47575">Busca tu ½ naranja</a> </html> |
|
From: Noorez K. <coo...@ho...> - 2004-06-25 00:50:50
|
When I keep my program in one directory it works fine but when I need to move it into another and I recompile it, the program ignores all the system() functions! _________________________________________________________________ Free yourself from those irritating pop-up ads with MSn Premium. Get 2months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
|
From: Peter B. <pb...@hg...> - 2004-06-24 11:52:29
|
Siva Chandra wrote: > Hello all, > > Is there a way(or a tool available) to convert *.lib > files to *.a files? I did google for it and found > nothing usefull. > > If yes, kindly give me pointers... > If no, please let me know. http://www.emmestech.com/software/cygwin/pexports-0.43/moron1.html Peter |
|
From: Wehrli, L. <we...@st...> - 2004-06-24 11:29:01
|
Hi Siva, =20 I think the solution can be found here: http://www.cygwin.com/faq/faq_3.html#SEC100 =20 Greetings, Lior =20 ________________________________ From: dev...@li... on behalf of Siva = Chandra Sent: Thu 6/24/2004 12:34 PM To: dev...@li... Subject: [Dev-C++] Converting *.lib files to *.a files Hello all, Is there a way(or a tool available) to convert *.lib files to *.a files? I did google for it and found nothing usefull. If yes, kindly give me pointers... If no, please let me know. TIA Siva Chandra =20 __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Siva C. <siv...@ya...> - 2004-06-24 10:34:28
|
Hello all, Is there a way(or a tool available) to convert *.lib files to *.a files? I did google for it and found nothing usefull. If yes, kindly give me pointers... If no, please let me know. TIA Siva Chandra __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
|
From: Per W. <pw...@ia...> - 2004-06-24 06:25:29
|
First of all - stop using goto everywhere. You'r logic isn't advanced
enough to need it.
Second - it isn't enough to do
char* quizName = new char;
cin.getline(quizName,123);
new char allocates a single character! If you want a string, you should
either usse "new char[<my_string_length>] or look into the string class.
As long as you do "new char;" you can't expect _any_ part of your program
to work!
/Per W
On Wed, 23 Jun 2004, Noorez Kassam wrote:
> this program is ignoring the system() functions
>
> //quiz maker!
> #include <iostream>
> #include <fstream>
> #include <cstdlib>
> #include <conio.h>
> using namespace std;
>
> class Quiz
> {
> private:
> char question[1000];
> char answerA[1000];
> char answerB[1000];
> char answerC[1000];
> char answerD[1000];
> char answerT;
> char answerF;
> char actual;
>
> public:
> static int questionNumb;
> static int type;
> Quiz createQuestion();
> void writeQuestion(Quiz ques, int type,char* quizName);
> };
>
> int Quiz::questionNumb = 1;
> int Quiz::type = 0;
>
> Quiz Quiz::createQuestion()
> {
> Quiz ques;
> system("cls");
> cout << "What kind of question do you want question " <<
> Quiz::questionNumb << " to be\n";
> real1:
> cout << "A. Multiple choice.. or B. True/False [a\\b] ";
> char choice;
> cin >> choice;
> cin.sync();
> if(!(choice == 'a' || choice == 'b'))
> {
> cout << "Choice must be a or b\n";
> goto real1;
> }
> if(choice == 'a' || choice == 'A')
> {
> type = 1;
> cout << "\nType the question in\n\n";
> cin.getline(ques.question,1000);
> cout << "Type in answer A. ";
> cin.getline(ques.answerA,1000);
> cout << "Type in answer B. ";
> cin.getline(ques.answerB,1000);
> cout << "Type in answer C. ";
> cin.getline(ques.answerC,1000);
> cout << "Type in answer D. ";
> cin.getline(ques.answerD,1000);
> real2:
> cout << "Give us the real answer: ";
> cin >> ques.actual;
> cin.sync();
> if(!(ques.actual == 'a' || ques.actual == 'b'
> || ques.actual == 'c' || ques.actual == 'd') )
> {
> cout << "Real answer must be a,b,c or d\n";
> goto real2;
> }
> }
> if(choice == 'b' || choice == 'B')
> {
> type = 2;
> cout << "\nType in the statement\n\n";
> cin.getline(ques.question,1000);
> real3:
> cout << "Give us the real answer: ";
> cin >> ques.actual;
> cin.sync();
> if(!(ques.actual == 't' || ques.actual == 'f'))
> {
> cout << "Real answer must be t or f\n";
> goto real3;
> }
> }
> return ques;
> }
>
> void Quiz::writeQuestion(Quiz ques, int type, char* quizName)
> {
> ofstream out_file(quizName,ios::app);
> if(type == 1)
> {
> out_file << "~\n" << questionNumb << ". " << ques.question << '\n'
> << '\n';
> out_file << "A. " << ques.answerA << '\n';
> out_file << "B. " << ques.answerB << '\n';
> out_file << "C. " << ques.answerC << '\n';
> out_file << "D. " << ques.answerD << '\n';
> out_file << '~' << ques.actual << '\n';
> }
> if(type == 2)
> {
> out_file << "~\n" << questionNumb << ". " << ques.question << '\n';
> out_file << "True or False\n";
> out_file << '~' << ques.actual << '\n';
> }
> }
>
> int main()
> {
> cout << "Welcome to the quiz maker.\n";
> cout << "With this program you can make a Multiple Choice/True or False
> quiz.\n";
> getName:
> cout << "We need the name of the quiz file: ";
> char* quizName = new char;
> cin.getline(quizName,123);
> strcat(quizName,".qz");
> fstream fs(quizName);
> if(fs)
> {
> cout << "File name in use.\n";
> goto getName;
> }
>
> cout << endl << "\nLets start making questions!\n";
> system("pause");
> system("cls");
> Quiz question;
> char contin;
> do
> {
> question = question.createQuestion();
> question.writeQuestion(question,Quiz::type,quizName);
> Quiz::questionNumb = Quiz::questionNumb+1;
> cout << "\nDo you want to add another question [Y\\N] ";
> do
> {
> cin >> contin;
>
> }while(contin == 'y' && contin == 'Y' && contin == 'n' && contin ==
> 'N');
>
> }while(contin == 'y' || contin == 'Y');
> }
>
> _________________________________________________________________
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Noorez K. <coo...@ho...> - 2004-06-24 03:00:57
|
this program is ignoring the system() functions
//quiz maker!
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <conio.h>
using namespace std;
class Quiz
{
private:
char question[1000];
char answerA[1000];
char answerB[1000];
char answerC[1000];
char answerD[1000];
char answerT;
char answerF;
char actual;
public:
static int questionNumb;
static int type;
Quiz createQuestion();
void writeQuestion(Quiz ques, int type,char* quizName);
};
int Quiz::questionNumb = 1;
int Quiz::type = 0;
Quiz Quiz::createQuestion()
{
Quiz ques;
system("cls");
cout << "What kind of question do you want question " <<
Quiz::questionNumb << " to be\n";
real1:
cout << "A. Multiple choice.. or B. True/False [a\\b] ";
char choice;
cin >> choice;
cin.sync();
if(!(choice == 'a' || choice == 'b'))
{
cout << "Choice must be a or b\n";
goto real1;
}
if(choice == 'a' || choice == 'A')
{
type = 1;
cout << "\nType the question in\n\n";
cin.getline(ques.question,1000);
cout << "Type in answer A. ";
cin.getline(ques.answerA,1000);
cout << "Type in answer B. ";
cin.getline(ques.answerB,1000);
cout << "Type in answer C. ";
cin.getline(ques.answerC,1000);
cout << "Type in answer D. ";
cin.getline(ques.answerD,1000);
real2:
cout << "Give us the real answer: ";
cin >> ques.actual;
cin.sync();
if(!(ques.actual == 'a' || ques.actual == 'b'
|| ques.actual == 'c' || ques.actual == 'd') )
{
cout << "Real answer must be a,b,c or d\n";
goto real2;
}
}
if(choice == 'b' || choice == 'B')
{
type = 2;
cout << "\nType in the statement\n\n";
cin.getline(ques.question,1000);
real3:
cout << "Give us the real answer: ";
cin >> ques.actual;
cin.sync();
if(!(ques.actual == 't' || ques.actual == 'f'))
{
cout << "Real answer must be t or f\n";
goto real3;
}
}
return ques;
}
void Quiz::writeQuestion(Quiz ques, int type, char* quizName)
{
ofstream out_file(quizName,ios::app);
if(type == 1)
{
out_file << "~\n" << questionNumb << ". " << ques.question << '\n'
<< '\n';
out_file << "A. " << ques.answerA << '\n';
out_file << "B. " << ques.answerB << '\n';
out_file << "C. " << ques.answerC << '\n';
out_file << "D. " << ques.answerD << '\n';
out_file << '~' << ques.actual << '\n';
}
if(type == 2)
{
out_file << "~\n" << questionNumb << ". " << ques.question << '\n';
out_file << "True or False\n";
out_file << '~' << ques.actual << '\n';
}
}
int main()
{
cout << "Welcome to the quiz maker.\n";
cout << "With this program you can make a Multiple Choice/True or False
quiz.\n";
getName:
cout << "We need the name of the quiz file: ";
char* quizName = new char;
cin.getline(quizName,123);
strcat(quizName,".qz");
fstream fs(quizName);
if(fs)
{
cout << "File name in use.\n";
goto getName;
}
cout << endl << "\nLets start making questions!\n";
system("pause");
system("cls");
Quiz question;
char contin;
do
{
question = question.createQuestion();
question.writeQuestion(question,Quiz::type,quizName);
Quiz::questionNumb = Quiz::questionNumb+1;
cout << "\nDo you want to add another question [Y\\N] ";
do
{
cin >> contin;
}while(contin == 'y' && contin == 'Y' && contin == 'n' && contin ==
'N');
}while(contin == 'y' || contin == 'Y');
}
_________________________________________________________________
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
|
|
From: Noorez K. <coo...@ho...> - 2004-06-24 02:56:01
|
My program is ignoring the system("pause") function during execution.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN Premium
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
|
|
From: Alfredo C. <al...@cl...> - 2004-06-24 02:41:41
|
El Mi=E9 23 Jun 2004 19:21, jab...@ta... escribi=F3: > Hello, > > Can anybody tell me if there is a way to use VBX controls or (may be > better) where can I get a library of controls to be used with the c++ > compiler to create windows programs? > > Thanks, > > Jorge > Take a look at http://www.wxwidgets.org. Regards. =2D-=20 Alfredo J. Cole http://www.acyc.com http://www.clshonduras.com li...@ac... |
|
From: <jab...@ta...> - 2004-06-24 01:21:21
|
Hello, Can anybody tell me if there is a way to use VBX controls or (may be better) where can I get a library of controls to be used with the c++ compiler to create windows programs? Thanks, Jorge |
|
From: Jean P. <2s...@ma...> - 2004-06-23 23:11:52
|
Hello ! I'm new to Dev-C++ and would like to know what is the best way to compile a project with mixed C code and FORTRAN code (FORTRAN functions are called by the C code). I've found a way which works : 1) Compile the FORTRAN code with g77 (included in the distribution) and move the objects in the folder of the project. 2) Append "*.o -lg2c" to the linking command But I wonder if there is a better method ? Something that would compile directly the FORTRAN code for instance... Thanks in advance. |
|
From: Neszt T. <ne...@ss...> - 2004-06-23 20:52:42
|
Hello! > Does anyone know if ther is a glut (opengl util toolkit) implementation > for Devcpp? You can use freeglut. (http://devpaks.org) If You decide to use the original glut, just google for GLUT for Mingw32. Regards, Neszt Tibor |