dev-cpp-users Mailing List for Dev-C++ (Page 758)
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: Chris B. <ch...@cb...> - 2000-11-07 18:50:48
|
Hi everyone, Just a quick question that has been bugging me! I if compile the program: #include <iostream> int main() { cout << "Hello World!\n"; return 0; } It works perfectly! But surely it should fail because I have used the = new style header files that are placed in namespace std. Being as I have = not added 'using namespace std;' to my program - why does it work?! I = though you had to qualify each function with std:: Im sure there is a good reason for this - Im just interested! Chris |
From: Fabrizio F. <ffp...@ho...> - 2000-11-07 10:57:39
|
Dear Friends Does exist any italian version of DevC++? |
From: lstar36 <ls...@fl...> - 2000-11-07 02:36:41
|
Your program compiles and runs fine on my system. I am using borland c++ Ver 3.1. The change sugested below should not cause any change as the default is to open in read mode. ----- Original Message ----- From: "Softhome" <ma...@so...> To: <dev...@li...> Sent: Monday, November 06, 2000 2:29 AM Subject: [Dev-C++] Re: Dev-cpp-users digest, Vol 1 #34 - 1 msg > Hi, > I suggest to change line: > > infile.open(filename, ios::nocreate); > to: > > infile.open(filename, ios::nocreate | ios::in); // read enable > > Regards > Marceli > ----------------------------------------------------- > Click here for Free Video!! > http://www.gohip.com/free_video/ > > ----- Original Message ----- > From: <dev...@li...> > To: <dev...@li...> > Sent: Wednesday, November 01, 2000 9:08 AM > Subject: Dev-cpp-users digest, Vol 1 #34 - 1 msg > > > > Send Dev-cpp-users mailing list submissions to > > dev...@li... > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > or, via email, send a message with subject or body 'help' to > > dev...@li... > > > > You can reach the person managing the list at > > dev...@li... > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Dev-cpp-users digest..." > > > > > > Today's Topics: > > > > 1. get (=?iso-8859-1?Q?Esteban_Cresp=ED_de_Valldaura?=) > > > > --__--__-- > > > > Message: 1 > > From: =?iso-8859-1?Q?Esteban_Cresp=ED_de_Valldaura?= <ec...@re...> > > To: <dev...@li...> > > Date: Tue, 31 Oct 2000 00:00:38 +0100 > > charset="iso-8859-1" > > Subject: [Dev-C++] get > > Reply-To: dev...@li... > > > > Hello, I am new to C++. > > I am following a tutorial in wich it appears the following code (wich > makes > > a copy of a file): > > > > #include <iostream.h> > > #include <fstream.h> > > #include <process.h> > > > > void main() > > { > > ifstream infile; > > ofstream outfile; > > char filename[20]; > > > > cout << "Enter the desired file to copy ----> "; > > cin >> filename; > > infile.open(filename, ios::nocreate); > > if (!infile) { > > cout << "Input file cannot be opened.\n"; > > exit(1); > > } > > outfile.open("copy"); > > if (!outfile) { > > cout << "Output file cannot be opened.\n"; > > exit(1); > > } > > char one_char; > > while (infile.get(one_char)) { > > outfile.put(one_char); > > cout.put(one_char); > > } > > infile.close(); > > outfile.close(); > > } > > > > It should create a copy of the original file into the file "COPY". The > > program compiles and runs properly but the file COPY is empty (it exists > but > > has 0 bytes), what is wrong? > > > > thanks. Esteban > > > > > > > > --__--__-- > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > End of Dev-cpp-users Digest_______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: lstar36 <ls...@fl...> - 2000-11-06 21:07:28
|
Try this url for the lattest c/c++ free command line compiler from = Borland. Be sure to download the debugger too. http://www.borland.com/bcppbuilder/freecompiler/ lstar ----- Original Message -----=20 From: Jorge Garcia-Donas K=FCbler=20 To: Dev...@li...=20 Sent: Monday, November 06, 2000 12:58 PM Subject: [Dev-C++] Old Turbo C I=B4m a newbie in this art of C programing, we (my class) are using = Turbo C 2.01 for learning, but does anybody know a newer version, still = under DOS, and were can i find it. Thanks |
From: Softhome <ma...@so...> - 2000-11-06 20:07:22
|
Hi, I suggest to change line: > infile.open(filename, ios::nocreate); to: > infile.open(filename, ios::nocreate | ios::in); // read enable Regards Marceli ----------------------------------------------------- Click here for Free Video!! http://www.gohip.com/free_video/ ----- Original Message ----- From: <dev...@li...> To: <dev...@li...> Sent: Wednesday, November 01, 2000 9:08 AM Subject: Dev-cpp-users digest, Vol 1 #34 - 1 msg > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. get (=?iso-8859-1?Q?Esteban_Cresp=ED_de_Valldaura?=) > > --__--__-- > > Message: 1 > From: =?iso-8859-1?Q?Esteban_Cresp=ED_de_Valldaura?= <ec...@re...> > To: <dev...@li...> > Date: Tue, 31 Oct 2000 00:00:38 +0100 > charset="iso-8859-1" > Subject: [Dev-C++] get > Reply-To: dev...@li... > > Hello, I am new to C++. > I am following a tutorial in wich it appears the following code (wich makes > a copy of a file): > > #include <iostream.h> > #include <fstream.h> > #include <process.h> > > void main() > { > ifstream infile; > ofstream outfile; > char filename[20]; > > cout << "Enter the desired file to copy ----> "; > cin >> filename; > infile.open(filename, ios::nocreate); > if (!infile) { > cout << "Input file cannot be opened.\n"; > exit(1); > } > outfile.open("copy"); > if (!outfile) { > cout << "Output file cannot be opened.\n"; > exit(1); > } > char one_char; > while (infile.get(one_char)) { > outfile.put(one_char); > cout.put(one_char); > } > infile.close(); > outfile.close(); > } > > It should create a copy of the original file into the file "COPY". The > program compiles and runs properly but the file COPY is empty (it exists but > has 0 bytes), what is wrong? > > thanks. Esteban > > > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest_______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: <jor...@wa...> - 2000-11-06 18:59:16
|
I=B4m a newbie in this art of C programing, we (my class) are using = Turbo C 2.01 for learning, but does anybody know a newer version, still = under DOS, and were can i find it. Thanks |
From: Stein N. <tem...@of...> - 2000-11-05 14:54:16
|
Hi there everybody! I was wondering... where can I get Turbo C++ 7.0 (or later)? Thanks, 'n ceep coding! :-) ------------- #define stone |
From: Richard P. E. <ev...@ma...> - 2000-11-05 02:35:41
|
I am trying to compile and run an example program from http://www.relisoft.com/win32/generic.html I created a Project file I called Win_Gen in Dev-C++, removed the default "untitled.cpp" file it opens and added all the files from the generic.zip file. Then I did a "Save All" and a compile and got the following error message: Line 76 winmaker.cpp ANSI C++ forbids implicit conversion from 'void*' in argument passing I got the same error message for Line 85. These lines are both in void WinClass::SetResIcons (int resId) Does anyone know the fix for this in Dev-C++ ? |
From: <jos...@ya...> - 2000-11-03 12:26:56
|
Just a thought! Have you defined in main.h #define CM_HELP_ABOUT 1000 // whatever number. 1000 is an example. ? Everything looks perfectly normal, but you get and error on line 14. That is the only thing I can imagine. Hope this helps. Chemanuel __________________________________________________ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/ |
From: Richard P. E. <ev...@ma...> - 2000-11-02 00:29:02
|
I get this message in the compile log when I try to compile my project: Building resource file... C:\DEV-C_~1\BIN\windres --include-dir C:\DEV-C_~1\INCLUDE\ --include-dir C:\DEV-C_~1\INCLUDE\G__~1 --include-dir C:\DEV-C_~1\INCLUDE\ --use-temp-file -I rc -O coff -i C:\DEV-C_~1\DIALOG\RSRC.RC -o c:\dev-c_~1\dialog\rsrc.o I also get this message for the "resource": C:\DEV-C_~1\BIN\windres: C:\\DEV-C_~1\\DIALOG\\RSRC.RC:14: parse error The code follows below with added line numbers to relate to resource message. Can anyone see what I'm not seeing? Help! 1 500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "Mainicon.ico" 2 #include <windows.h> 3 #include "main.h" 4 5 501 MENU 6 BEGIN 7 POPUP "&File" 8 BEGIN 9 MENUITEM "E&xit", CM_FILE_EXIT 10 END 11 12 POPUP "&Help" 13 BEGIN 14 MENUITEM "&About", CM_HELP_ABOUT 15 END 16 END 17 ABOUTDLG DIALOG 0, 0, 155, 102 18 STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE 19 | WS_CAPTION | WS_SYSMENU 20 CAPTION "This is my About Box" 21 FONT 8, "MS Sans Serif" 22 { 23 CONTROL "&OK", IDOK, "BUTTON", BS_DEFPUSHBUTTON | 24 BS_CENTER | WS_CHILD | WS_VISIBLE |WS_TABSTOP, 25 6, 83, 50, 14 26 CONTROL "&Cancel", IDCANCEL, "BUTTON", BS_BUTTON | 27 BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 28 95, 83, 50, 14 29 CONTROL "About This Program", -1, "button", BS_GROUPBOX 30 | WS_CHILD | WS_VISIBLE | WS_GROUP, 5, 5, 144, 73 31 CONTROL "An example program showing how to use dialog 32 boxes.\r\n\r\nby the Forger", -1, "static", SS_CENTER 33 | WS_CHILD | WS_VISIBLE, 2,7, 27, 100, 50 34 } |
From: Chris B. <ch...@cb...> - 2000-10-31 20:57:12
|
Hi, Just a quick question. If I call sin.sync_with_stdio(), will it = guarantee that getch() will work with cin/cout without problems? Chris. |
From: Chris B. <ch...@cb...> - 2000-10-31 20:40:41
|
Esteban, Hi. If you remove 'ios::nocreate' from the line where you open infile, I think you will find it works as planned, as follows: infile.open(filename); Hope this helps! Chris ----- Original Message ----- From: "Esteban Crespí de Valldaura" <ec...@re...> To: <dev...@li...> Sent: 30 October 2000 23:00 Subject: [Dev-C++] get > Hello, I am new to C++. > I am following a tutorial in wich it appears the following code (wich makes > a copy of a file): > > #include <iostream.h> > #include <fstream.h> > #include <process.h> > > void main() > { > ifstream infile; > ofstream outfile; > char filename[20]; > > cout << "Enter the desired file to copy ----> "; > cin >> filename; > infile.open(filename, ios::nocreate); > if (!infile) { > cout << "Input file cannot be opened.\n"; > exit(1); > } > outfile.open("copy"); > if (!outfile) { > cout << "Output file cannot be opened.\n"; > exit(1); > } > char one_char; > while (infile.get(one_char)) { > outfile.put(one_char); > cout.put(one_char); > } > infile.close(); > outfile.close(); > } > > It should create a copy of the original file into the file "COPY". The > program compiles and runs properly but the file COPY is empty (it exists but > has 0 bytes), what is wrong? > > thanks. Esteban > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: <ec...@re...> - 2000-10-30 23:01:22
|
Hello, I am new to C++. I am following a tutorial in wich it appears the following code (wich makes a copy of a file): #include <iostream.h> #include <fstream.h> #include <process.h> void main() { ifstream infile; ofstream outfile; char filename[20]; cout << "Enter the desired file to copy ----> "; cin >> filename; infile.open(filename, ios::nocreate); if (!infile) { cout << "Input file cannot be opened.\n"; exit(1); } outfile.open("copy"); if (!outfile) { cout << "Output file cannot be opened.\n"; exit(1); } char one_char; while (infile.get(one_char)) { outfile.put(one_char); cout.put(one_char); } infile.close(); outfile.close(); } It should create a copy of the original file into the file "COPY". The program compiles and runs properly but the file COPY is empty (it exists but has 0 bytes), what is wrong? thanks. Esteban |
From: Chris B. <ch...@cb...> - 2000-10-28 15:09:52
|
Hello everyone. Ive written the following function which overloads the insertion = operator for a class for restricting the input of a string to digits = only: class mystring { char *str; // .... public: friend istream& operator >> (istream &is, mystring &rhs); // ... }; istream& operator >> (istream &is, mystring &rhs) { char buf[256]; char ch; short len =3D 0; do { ch =3D getch(); if(isdigit(ch)) { cout << ch; buf[len++] =3D ch;=20 } } while(ch!=3D13); // while not 'return'. =20 buf[len] =3D '\0'; // terminate string; rhs.str =3D new char[len]; strcpy(rhs.str, buf); return is; } This compiles and runs fine on my compilers, but when I compile it and = run it on my college compiler (MSVC++) getch and cin/cout dont get = along! My question is - being as getch() is non ansi and it also uses different = buffers than cin/cout - is there a way of writing a simular function = without using getch? getch is good because it doesn't display inputted = characters and doesn't wait for a return keystroke, but I dont know how = to achieve the same thing using cin/cout. Any ideas? Thanks in advance=20 Chris |
From: Ioannis V. <no...@ya...> - 2000-10-26 21:21:35
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of > Chris Bunney > Sent: Thursday, October 26, 2000 10:38 PM > To: dev...@li... > Subject: [Dev-C++] using getch with cin. > > > Hi everyone. > > I wrote a function using dev c that overloads the insertion operator for a > class. I used the getch() function within this function and everything > worked fine. > > However, when I took this code to college the next day and > compiled it under > MS Vusual C++ it caused all sorts of problems. My lecturer said > this was to > do with getch using different buffers that cin. > > Is there a way to make sure that getch will work with cin on all > compilers? No, since getch() is not part of ANSI C++. Also it is not even part of ANSI C, so any program using getch() is not considered portable. Ioannis _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
From: Chris B. <ch...@cb...> - 2000-10-26 20:42:24
|
Hi everyone. I wrote a function using dev c that overloads the insertion operator for a class. I used the getch() function within this function and everything worked fine. However, when I took this code to college the next day and compiled it under MS Vusual C++ it caused all sorts of problems. My lecturer said this was to do with getch using different buffers that cin. Is there a way to make sure that getch will work with cin on all compilers? Thanks in advance. Chris |
From: <eri...@fr...> - 2000-10-26 12:25:11
|
Hi Has someone ever compiled the FOX toolkit library using the dev-c++ = environment ? The FOX web site said it could be done using the mingw32 = compiler, but I don't know if it could be done using the IDE. thanks Eric |
From: <jos...@ya...> - 2000-10-24 11:23:01
|
Hi everybody, I also encountered problems searching for non-MFC API related sites. I decided then to create personal pages including those sites so everyone can have a look to them and learn. If you are interested then I suggest you to visit http://www.geocities.com/josempadron Cheers, Chemanuel __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ |
From: SpiderMan <Spi...@pr...> - 2000-10-23 22:40:03
|
The code at cpp-programming works, have you looked at: = http://www.relisoft.com/win32/index.htm the explanations are sometimes = awkward, but the code is fabulous. It is a good follow up to = cpp-programming's tutorial. ----- Original Message -----=20 From: Matthew Hickson=20 To: Dev...@li...=20 Sent: Sunday, October 22, 2000 8:44 AM Subject: [Dev-C++] Windows Non-MFC programming site Hello everybody, Just thought, since I'd asked for links pertaining to C++ programming, = that I would share a pretty slick site I came across. It's a non-MFC oriented (read API based) site regarding Windows = programming. I haven't yet sorted out whether the examples will work = without modification on Dev-C++; however, I'm impressed with the = simplicity and scope of the material thus far. If anybody would like to check it out, here's the link: http://www.cpp-programming.com/ Matthew Hickson P.S. By the way, in playing with Resource Scripts in Dev-C++, I seem to = have encountered a difficulty. In adding a dialog resource (even when = using the defaults provided) I get an error back on compilation (from = windres). It always points to the line following the initial 100 = DIALOG... line (I'm assuming here that the error number refers to = line... I moved things around a bit and it seemed consistant). The project was a simple C WinMain project (I'm not sure if this = factors in or not). I only know that if I add any other type of = resource that I get no errors in the compiling of the resource script. = I've been trying to find documentation on windres (without any good = hits, aside from command line options...), and I can't get to = bloodshed.net (maybe this is a known issue?). Any help here would be appreciated. I was developing a little class = building utility in RapidQ (a nifty little BASIC style language - now in = limbo as it's author was picked up by a software company [Ah! So dreams = do come true! 8-)]) but have found that I would now rather just "bite = the bullet" and use C++. However, my inability to create anything more = than simple Windows interfaces is a little frustrating (I think I can = handle the underlying C++, but there's only one way to tell! 8-) Thanks again. -------------------------------------------------------------------------= ----- Link is external to the Privacyx.com System |
From: Matthew H. <mhi...@ko...> - 2000-10-23 16:33:40
|
Hello, Here. Let's try it this way (I hate my mail client by times... sorry = about the double post guys). How about something along these lines for variable spacing. printf("%sSomething else.", sVar); where sVar is a variable number of spaces. You should be able to fill a = string (character array in this case) via something in the <string.h> = (or <cstring.h> if your compiler is predominantly C++) library. strcat and strlen might be of use. I am trying to make it where I can put spaces into a line but at = differing lengths each time.=20 Matthew Hickson |
From: Matthew H. <mhi...@ko...> - 2000-10-23 16:25:36
|
Hello, I am trying to make it where I can put spaces into a line but at = differing lengths each time.=20 If you're using C (as you've said), you could try something along these = lines... #include <stdio.h> |
From: Ioannis V. <no...@ya...> - 2000-10-23 11:14:38
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of blalock Sent: Monday, October 23, 2000 2:59 AM To: c++ dev Subject: [Dev-C++] A newbie question I am in class learning C. I am trying to do something, just goofing not schoolwork, and I wanted to know if I can put a variable in my printf format string. IE printf("%variables%5f%3s"); No. I am trying to make it where I can put spaces into a line but at differing lengths each time. You can try #define, #ifdef, #ifndef, e.t.c. in some way but if you want to create spaces only you can try something like this: int main() { int i=0, spaces=0; /* spaces are defined somewhere in the code */ for (i=0; i<spaces; i++) printf(" "); /* It inserts spaces in a line */ ... return 0; } If I am misspeaking by asking in this forum, please forgive me. If this is not a place to ask questions of a general type, could you please direct me where to go. It is the right place. p/s if this is the place for such posts, I have a thousand more :) Ok post them. :) Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys |
From: blalock <wi...@ea...> - 2000-10-23 00:53:36
|
I am in class learning C. I am trying to do something, just goofing not schoolwork, and I wanted to know if I can put a variable in my printf format string. IE printf("%variables%5f%3s"); I am trying to make it where I can put spaces into a line but at differing lengths each time. If I am misspeaking by asking in this forum, please forgive me. If this is not a place to ask questions of a general type, could you please direct me where to go. Thanks, Blalock p/s if this is the place for such posts, I have a thousand more :) |
From: Matthew H. <mhi...@ko...> - 2000-10-22 16:43:10
|
Hello everybody, Just thought, since I'd asked for links pertaining to C++ programming, = that I would share a pretty slick site I came across. It's a non-MFC oriented (read API based) site regarding Windows = programming. I haven't yet sorted out whether the examples will work = without modification on Dev-C++; however, I'm impressed with the = simplicity and scope of the material thus far. If anybody would like to check it out, here's the link: http://www.cpp-programming.com/ Matthew Hickson P.S. By the way, in playing with Resource Scripts in Dev-C++, I seem to have = encountered a difficulty. In adding a dialog resource (even when using = the defaults provided) I get an error back on compilation (from = windres). It always points to the line following the initial 100 = DIALOG... line (I'm assuming here that the error number refers to = line... I moved things around a bit and it seemed consistant). The project was a simple C WinMain project (I'm not sure if this factors = in or not). I only know that if I add any other type of resource that I = get no errors in the compiling of the resource script. I've been trying = to find documentation on windres (without any good hits, aside from = command line options...), and I can't get to bloodshed.net (maybe this = is a known issue?). Any help here would be appreciated. I was developing a little class = building utility in RapidQ (a nifty little BASIC style language - now in = limbo as it's author was picked up by a software company [Ah! So dreams = do come true! 8-)]) but have found that I would now rather just "bite = the bullet" and use C++. However, my inability to create anything more = than simple Windows interfaces is a little frustrating (I think I can = handle the underlying C++, but there's only one way to tell! 8-) Thanks again. |
From: Matthew H. <mhi...@ko...> - 2000-10-21 20:36:31
|
Hello all, > >I did not receive it as an insult anyway. Also i consider chinese, and the > >like more difficult to read. > >Chinese have 380 letters or something. :) More, if I remember correctly (thousands, only about 3000 common characters though). > FWIW Spanish speakers have an idiom "es chino", it's Chinese, rather than > the English speaker's choice of "It's Greek". It wasn't my intention, by any stretch of the imagination, to be ethno-centric (neutrally or negatively). My apologies, whether I have given offense or not. Traditionally, I've heard the "It's Greek to me..."; however, these days, just about any non-English language is used (though some less often than others). From this point onward, I shall put a little more thought into what I'm thinking and typing! Here I was thinking that "long in the tooth" had been misunderstood. Funny how the international nature of the Internet points out glaring oddities in one's behaviour/thoughts. (For what it matters... I try to avoid smart-ass American comments... I use smart-ass Canadian comments 8-). Anyhow, on a different note. Many thanks for the wealth of resource material that everybody took the time to point out. It'll no doubt take some time to digest (so I'd best get to it! 8-). Matthew Hickson P.S. A further note. I'm current with Dev-C++ 4.0 (I like the extended Tools menu... You CAN run your favourite MIDI file from it! 8-) Is there a "plug-in" style API for Tools? (I admit, I'm remiss in downloading the source for the IDE, and my Delphi is... nearly non-existent, so it might not be my choice for developing something like that.) |