dev-cpp-users Mailing List for Dev-C++ (Page 3)
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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
|
2
(3) |
3
(3) |
4
(15) |
5
(11) |
6
(4) |
7
(1) |
8
(2) |
9
(1) |
10
(10) |
11
(7) |
12
(5) |
13
|
14
(2) |
15
(9) |
16
(2) |
17
(12) |
18
(7) |
19
(3) |
20
(2) |
21
(2) |
22
(1) |
23
(5) |
24
(1) |
25
|
26
(3) |
27
|
28
(1) |
29
|
30
(1) |
31
(2) |
|
|
|
|
From: Ioannis V. <no...@ya...> - 2000-10-15 10:21:04
|
Why the following code does not work as it is supposed to work? #include <stdio.h> int main() { printf("This is a test\b\b\b\b\b\n"); return 0; } I expected to print on screen "This is a". I tried it on 3 compilers with different combinations and the results were the same ('\b' not erasing). Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys |
From: SpiderMan <Spi...@pr...> - 2000-10-14 21:00:22
|
Yes I see what you mean, I think the Microsoft people brought this = on themselves; people shouldn't have to download 5 megs worth of files = just to get one 200k file that they really want. Shameless plug: I've added 5 more tools from platform SDK they are: Stress.zip - similar to resource watcher = (which comes with windows) Heap Walker.zip - walk the heap : ) ImagEdit.zip - kinda dumb image editor Heap Watcher.zip - watch the heap : ) Screen Capture.zip - let's you capture your screen movments = and saves it as an .avi -------------------------------------------------------------------------= ------- "Don`t be afraid about it ;-) i can see what`s spam and what`s not spam = :) The only thing i see there, is that DlgEdit may probably not = distributed like this as it is under the freedomless Microsoft license. = This is just for you to know, but you won`t probably have troubles since = Microsoft looks like the "bad" company with their licenses since Linux = and its Free Software have came (so they`re probably trying to change that people = feeling :-) I had the same problem for distributing the Win32 API help file, but i = was encouraged (by a person who got the license to distribute this file) = to distribute it too, although i did not have its license.=20 I hope you see what i mean :-) Greetings, Colin" |
From: Guido C. <cec...@tu...> - 2000-10-14 00:20:19
|
Hi all, When I put the function "include <conio.h>" And I compile the source code, appears the following error message: "ld: cannot open crt2.o: No such file or directory" What can I do? Please help me! Thanks. Guido mailto:cec...@tu... |
From: Linda H. <lz...@sp...> - 2000-10-12 21:22:11
|
I am having a problem printing also, but with the output. using #include <fstream, putting ofstream pout ("PRN") in int main(), and changing the cout's to pout's does absolutely nothing on my system. Linda ------------------------------- ----- Original Message ----- From: "mark r rivet" <ma...@bi...> To: <dev...@li...> Sent: Thursday, October 12, 2000 12:34 PM Subject: [Dev-C++] file|print problem > hello, this is my first message.new to the group and program. > > Im trying to print out the source files from my project. > but when I click on file|print from the toolbar, the appropriate messages > come up ,and when i finally say ok print,the file does'nt get printed.And > there are no error messages.Anyone seen this before or I have some kind of > system trouble.I have no trouble printing from any other application. > > > thanks > Mark > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
From: mark r r. <ma...@bi...> - 2000-10-12 15:32:17
|
hello, this is my first message.new to the group and program. Im trying to print out the source files from my project. but when I click on file|print from the toolbar, the appropriate messages come up ,and when i finally say ok print,the file does'nt get printed.And there are no error messages.Anyone seen this before or I have some kind of system trouble.I have no trouble printing from any other application. thanks Mark |
From: Colin L. <col...@wa...> - 2000-10-12 11:46:10
|
> P.S: This is not spam, I was asked to upload the files. Don't be afraid about it ;-) i can see what's spam and what's not spam :) The only thing i see there, is that DlgEdit may probably not distributed= like this as it is under the freedomless Microsoft license. This is just= for you to know, but you won't probably have troubles since Microsoft= looks like the "bad" company with their licenses since Linux and its Free= Software have came (so they're probably trying to change that people= feeling :-) I had the same problem for distributing the Win32 API help file, but i was= encouraged (by a person who got the license to distribute this file) to= distribute it too, although i did not have its license. I hope you see what i mean :-) Greetings, Colin |
From: Ioannis V. <no...@ya...> - 2000-10-12 11:28:32
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Linda Hohenstein Sent: Wednesday, October 11, 2000 7:54 PM To: DevCpp List Subject: [Dev-C++] Fw: C++ Program Help Please I'm having a trouble understanding how to do this assignment. We are supposed to send a character constant as areference parameter to the function GetUserInput six times - to get Odometer A character constant: 'a'. As an argument to a function f() which accepts a reference of a char. f('a'). Start, Odometer End, Hours Start, Hours End, Minutes Start and Minutes End. The instructor said that I do not have to initialize (as in (//get total mileage) StartReading, but to just send the string. I don't understand the syntax for doing this or how to use it in the output statement. I am also confused about how to do the Average Speed function. Since we are required to convert the total time of the trip into minutes, someone could travel a hundred miles in two hours, but then it would be 100/120 which doesn't make sense. The function I did not understand it. I think your time is 120 minutes here. for turning minutes into hours and minutes also gets an error for using ints. However, we don't want a float for this since we have to output the times in hour:minute format. Suppose you have traveled 169 minutes. 169/60 is the hours of the journet and 169%60 is the rest of the minutes. So in this example: 169/60=2 hours 169%60= 49 minutes. Total time: 2 hours + 49 minutes. Ioannis |
From: Ioannis V. <no...@ya...> - 2000-10-12 11:16:57
|
Go to the command prompt window, cd in the directory you have the source code, and run the exe from within the command prompt window. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Saundra Schwarz Sent: Wednesday, October 11, 2000 4:00 AM To: dev...@li... Subject: [Dev-C++] Print Question I'm a student taking a class in C programming. I need to be able to print the results of my program, but when I use the run feature the program runs then the run window closes. Is there a way to keep the run window active so that I can print the results of my run? Right now i'm using a while loop at the end of my programs to hold the screen until I can print. -Sam |
From: Richard P. E. <ev...@ma...> - 2000-10-11 21:42:27
|
Just wanted to thank everyone who responded to my question. The glaring mistake was a typo in the text book I am using showing ( ) where it should have been { }. All the answers were correct and I am encouraged to know where to go for help. Hopefully I can return the favor for some one else in the near future. Richard P. Evans |
From: Vesa N. <wa...@dl...> - 2000-10-11 20:01:32
|
> c:\dev-c++\projects\dplugx\dplugx_t.o(.text+0x103):dplugx_t.cpp: > undefined reference to `GetStockObject@4' > c:\dev-c++\projects\dplugx\dplugx_t.o(.text+0x4fa):dplugx_t.cpp: > undefined reference to `DirectDrawCreateEx@16'I tried to like with > -lddraw -ld3dx but you see, it doesnt fix the problem.Also, this major > bug in Dev-C++ 4 about running out of memory or this awful msg : Hi, I got around this by getting the newest library files from the latest mingw32 and copying them over the ones that come with Dev-C++. You can find mingw by following links on www.bloodshed.net. -Vesa |
From: Linda H. <lz...@sp...> - 2000-10-11 17:53:50
|
I'm having a trouble understanding how to do this assignment. We are supposed to send a character constant as areference parameter to = the function GetUserInput six times - to get Odometer Start, Odometer = End, Hours Start, Hours End, Minutes Start and Minutes End. The = instructor said that I do not have to initialize (as in (//get total = mileage) StartReading, but to just send the string. I don't understand = the syntax for doing this or how to use it in the output statement. I am also confused about how to do the Average Speed function. Since we = are required to convert the total time of the trip into minutes, someone = could travel a hundred miles in two hours, but then it would be 100/120 = which doesn't make sense. The function for turning minutes into hours = and minutes also gets an error for using ints. However, we don't want a = float for this since we have to output the times in hour:minute format. Any help would be appreciated. The code is below. TIA, Linda //AverageMiles.cpp //This program computes the average speed //on a trip. #include <iostream> //for DevC++ #include <string> using namespace std; void GetUserInput (char Prompt[], int &UserInput) { cout << Prompt << endl; cin >> UserInput; return; } int HoursInMinutes (int HoursTraveled) { return HoursTraveled * 60; } int AverageSpeed (int TotalMiles, int TravelTimeInMinutes) { return TotalMiles/TravelTimeInMinutes; } void MinutesToHoursAndMinutes (int TravelTimeInMinutes, int &TimeHours, int &TimeMinutes) { TravelTimeInMinutes /60 =3D TimeHours; TravelTimeInMinutes %60 =3D TimeMinutes; return; } int main() { //get total mileage char OdometerStart[] =3D "Enter the start odometer reading: "; int StartReading; GetUserInput (OdometerStart, StartReading); char OdometerEnd[] =3D "Enter the end odometer reading: "; int EndReading; GetUserInput (OdometerEnd, EndReading); int TotalMileage =3D EndReading - StartReading; //get start and end hours; convert hours to minutes char HourStart[] =3D "Enter hour of start: "; int StartHour; GetUserInput (HourStart, StartHour); char HourEnd[] =3D "Enter hour of stop: "; int EndHour; GetUserInput (HourEnd, EndHour); int TotalHoursInMinutes =3D EndHour - StartHour; HoursInMinutes (TotalHoursInMinutes); //get start and end minutes char MinutesStart[] =3D "Enter minutes of start: "; int StartMinutes; GetUserInput (MinutesStart, StartMinutes); char MinutesEnd [] =3D "Enter minutes of stop: "; int EndMinutes; GetUserInput (MinutesEnd, EndMinutes); int TotalTripMinutes =3D EndMinutes - StartMinutes; //get average miles int TotalTravelTime; TotalTravelTime =3D TotalHoursInMinutes + TotalTripMinutes; AverageSpeed (TotalMileage, TotalTravelTime); |
From: RoGeR <le...@sp...> - 2000-10-11 07:03:31
|
I am trying to program Direct X but I get undefined references errors : c:\dev-c++\projects\dplugx\dplugx_t.o(.text+0x103):dplugx_t.cpp: = undefined reference to `GetStockObject@4' c:\dev-c++\projects\dplugx\dplugx_t.o(.text+0x4fa):dplugx_t.cpp: = undefined reference to `DirectDrawCreateEx@16' I tried to like with -lddraw -ld3dx but you see, it doesnt fix the = problem. Also, this major bug in Dev-C++ 4 about running out of memory or this = awful msg : Access Violation at address 00403ECC in module 'DEVCPP.exe" Read of address 294B4F78 And ofcourse the followup window : Invalid pointer operation Pls FIX FIX FIX |
From: JESSE S. <sec...@ya...> - 2000-10-11 04:36:05
|
send me the source code and i'll see if i can help you OKAY? jesse __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ |
From: Adam B. <abe...@ho...> - 2000-10-11 04:25:59
|
Saundra, try this: #include <stdlib.h> system ("pause"); It should ask for input to continue. >From: "Saundra Schwarz" <Sch...@ho...> >Reply-To: dev...@li... >To: <dev...@li...> >Subject: [Dev-C++] Print Question >Date: Tue, 10 Oct 2000 18:59:44 -0700 > >I'm a student taking a class in C programming. I need to be able to print >the results of my program, but when I use the run feature the program runs >then the run window closes. Is there a way to keep the run window active >so that I can print the results of my run? Right now i'm using a while >loop at the end of my programs to hold the screen until I can print. > >-Sam _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. |
From: SpiderMan <Spi...@pr...> - 2000-10-11 03:13:45
|
Include stdlib.h then at the end of your program write: = system("pause"); here is an example: #include <iostream.h> #include <stdlib.h> void main() { cout<<"Hello world!\n"; system("pause"); } ----- Original Message -----=20 From: Saundra Schwarz=20 To: dev...@li...=20 Sent: Tuesday, October 10, 2000 6:59 PM Subject: [Dev-C++] Print Question I'm a student taking a class in C programming. I need to be able to = print the results of my program, but when I use the run feature the = program runs then the run window closes. Is there a way to keep the run = window active so that I can print the results of my run? Right now i'm = using a while loop at the end of my programs to hold the screen until I = can print. =20 -Sam -------------------------------------------------------------------------= ----- Link is external to the Privacyx.com System |
From: SpiderMan <Spi...@pr...> - 2000-10-10 23:04:46
|
Hello I've uploaded a few development tools to my site's server, if = you would like to download them go to = http://spiderman.datablocks.net/files/tools/ then chose which ones you = would like to download. I will add more later, these are just a few of = the tools that are available from platform SDK.=20 P.S: This is not spam, I was asked to upload the files. |
From: Saundra S. <Sch...@ho...> - 2000-10-10 23:00:45
|
I'm a student taking a class in C programming. I need to be able to = print the results of my program, but when I use the run feature the = program runs then the run window closes. Is there a way to keep the run = window active so that I can print the results of my run? Right now i'm = using a while loop at the end of my programs to hold the screen until I = can print. =20 -Sam |
From: <Jam...@gm...> - 2000-10-10 22:37:13
|
It works fine if you use {} instead of () Try this: int distribution[5] = {0}; You´ll get no error message. RT > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On > Behalf Of Richard > P. Evans > Sent: Tuesday, October 10, 2000 5:08 AM > To: dev...@li... > Subject: [Dev-C++] Invalid initializer for an array > > > Why do I get an "invalid initializer" message for the > following line in my > program? > > int distribution[5] = (0); > > It seems the only thing that works to initialize an array > is a "for" > statement. Does anyone have an answer? The above line > is by the book and > should work. Or is this a software bug? Some how I doubt that. > > Richard Evans > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: Matthew H. <mhi...@ko...> - 2000-10-10 21:23:37
|
Hello everybody, Just a quick question regarding Dev-C++ (I'm using v3.9). Has anybody encountered a good class builder utility? Ideally something along the lines of MSVC++ v5. Nothing super special, just something to generate standard C++ classes (most preferably with a Windows interface). Thanks, ----- Matthew Hickson |
From: Matthew H. <mhi...@ko...> - 2000-10-10 21:20:54
|
> Try this int distrubution[]={0,0,0,0,0} > > It means an array of ints ,with proper size (5), initialized with all > elements to 0. You could also replace the {0,0,0,0,0} with {0} (if I recall properly, this works with all ANSI C/C++ compilers). ----- Matthew Hickson |
From: Dee Z. <zs...@br...> - 2000-10-10 11:51:19
|
On Tue, 10 Oct 2000, Ioannis Vranos wrote: > > > > Why do I get an "invalid initializer" message for the following > > line in my > > program? > > > > int distribution[5] = (0); > > > > It seems the only thing that works to initialize an array is a "for" > > statement. Does anyone have an answer? The above line is by the > > book and > > should work. Or is this a software bug? Some how I doubt that. Try this int distrubution[]={0,0,0,0,0} It means an array of ints ,with proper size (5), initialized with all elements to 0. zsombi |
From: RoGeR <le...@sp...> - 2000-10-10 11:49:25
|
to initialize an array you do this : int distribution [5] = { 1,2,3,4,5 } ----- Original Message ----- From: "RoGeR" <le...@sp...> To: <dev...@li...> Sent: Tuesday, October 10, 2000 09:39 AM Subject: Re: [Dev-C++] Invalid initializer for an array > Probably the compiler's fault. Why don't you try creating a function that > handles that ? > E.g. : > > template <class ARRAY_TYPE> > void fill_array ( ARRAY_TYPE [] &arrary, int number_of_items, ARRAY_TYPE > fill_value = 0 ) > { for ( int i=0; i < number_of_items; i++ ) > array[i] = fill_value; } } > > I know you said you didn't want the for thing... but making it a function > becomes really easy to use : > > fill_array ( distribution, 5, 0 ); > > Byezzz > > ----- Original Message ----- > From: Richard P. Evans <ev...@ma...> > To: <dev...@li...> > Sent: Tuesday, October 10, 2000 06:07 AM > Subject: [Dev-C++] Invalid initializer for an array > > > > Why do I get an "invalid initializer" message for the following line in my > > program? > > > > int distribution[5] = (0); > > > > It seems the only thing that works to initialize an array is a "for" > > statement. Does anyone have an answer? The above line is by the book and > > should work. Or is this a software bug? Some how I doubt that. > > > > Richard Evans > > > > _______________________________________________ > > 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: Ioannis V. <no...@ya...> - 2000-10-10 10:56:11
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of > Richard P. Evans > Sent: Tuesday, October 10, 2000 5:08 AM > To: dev...@li... > Subject: [Dev-C++] Invalid initializer for an array > > > Why do I get an "invalid initializer" message for the following > line in my > program? > > int distribution[5] = (0); > int distribution[5]={0,0,0,0,0}; > It seems the only thing that works to initialize an array is a "for" > statement. Does anyone have an answer? The above line is by the > book and > should work. Or is this a software bug? Some how I doubt that. I am new at C++, but i think that your initialisation is somehow wrong. Ioannis __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com |
From: RoGeR <le...@sp...> - 2000-10-10 06:34:46
|
Probably the compiler's fault. Why don't you try creating a function that handles that ? E.g. : template <class ARRAY_TYPE> void fill_array ( ARRAY_TYPE [] &arrary, int number_of_items, ARRAY_TYPE fill_value = 0 ) { for ( int i=0; i < number_of_items; i++ ) array[i] = fill_value; } } I know you said you didn't want the for thing... but making it a function becomes really easy to use : fill_array ( distribution, 5, 0 ); Byezzz ----- Original Message ----- From: Richard P. Evans <ev...@ma...> To: <dev...@li...> Sent: Tuesday, October 10, 2000 06:07 AM Subject: [Dev-C++] Invalid initializer for an array > Why do I get an "invalid initializer" message for the following line in my > program? > > int distribution[5] = (0); > > It seems the only thing that works to initialize an array is a "for" > statement. Does anyone have an answer? The above line is by the book and > should work. Or is this a software bug? Some how I doubt that. > > Richard Evans > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
From: Richard P. E. <ev...@ma...> - 2000-10-10 03:00:58
|
Why do I get an "invalid initializer" message for the following line in my program? int distribution[5] = (0); It seems the only thing that works to initialize an array is a "for" statement. Does anyone have an answer? The above line is by the book and should work. Or is this a software bug? Some how I doubt that. Richard Evans |