dev-cpp-users Mailing List for Dev-C++ (Page 308)
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: Kurt N. <KNo...@li...> - 2003-10-07 18:29:11
|
Hello all, I'm using Dev-C++ 4.9.8.0 with MingW 3.2.x, and I'm noticing an odd little = anomaly. In the Tools->Compiler Options->Compiler tab, where you can set = the command line options for the compiler and linker, my linker options = won't show. I've got options set for both the compiler and linker, but = when I look at the compile log, only the options for the compiler are = being used. When I go to the project options and set project specific linker options, = these do actually show on the compile log. Is there any reason that they won't show for the default compiler? Has = anybody else seen this behavior? |
|
From: Soimafreak <soi...@so...> - 2003-10-07 16:12:41
|
Hi!
im trying to get wholes trings into some varibles but i'm struggling...
the code im using (below) works fine for the first thing, works okay for the
second (differnt type of read) but then on the 2nd on the getline() it just
skips the input from user and prints that cout and the other next to each
other (in bold)
cout << "Please enter your full name : ";
cin.getline(owner, 40, '\n');
cout << "Please enter your house number : ";
cin >> houseNumber;
cout << "Please enter the name of the road you live on : ";
cin.getline(road, 30, '\n');
cout << "Please enter the town or city : ";
cin >> townOrCity;
yeah, the two lines in bold are comming out one after another only the first
appears to be working, i may be using the worng type of read, i dunno, all
i know is cin >> varible; doesn't like spaces and i found that cin.getline()
you can specify what it gets untill so any help is appreciated thanks.
Matt.
|
|
From: <ca...@kr...> - 2003-10-07 15:17:59
|
hi Zodiaq, Tuesday, October 7, 2003, 5:02:07 PM, you wrote: > IMO the best book that teaches C++ in comparison to C is Bruce Eckels > "Thinking in C++"... very important thing is that, its available for > free in electronic copy from autors site! Inside there is a lot of > usefull examples, deep explanations of hard concepts of C++ and some > exercises at the end of each chapter! Great book that I recommend to > anyone that starts learning C++ or just want to understand it > better... huh, I think I'm gonna take a look now on it myself to check > few things... > www.mindview.net > or go right here I you can't find it: http://64.78.49.204/ > in volume 1 there'e whole chapter why to use C++ and not C - > interesting ideas with hard evidences - not just some blabla don't use > it! thanks for your answer, but I was refering to c rather than c++.. gruss /Christian mailto:ca...@kr... --- I propose that the following character sequence for joke markers: :-) 19-Sep-82 11:44 Scott E Fahlman |
|
From: <ca...@kr...> - 2003-10-07 14:32:54
|
hi,
I learned c mostly out of kernigan and ritchie.
but almost any example code from it seems to be a DON'T.
when I for example want to write a commando interface, you guys as
well as some other lists would probably say 'oh no, don't use
getchar() use xxx instead it's more safe'.
what I want to find is a book/site that will issue the common examples
in a secure and effective version. explaining why to use some function
and why to avoid others.
do you happen to know such a book/site?
gruss
/Christian mailto:ca...@kr...
---
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|
|
From: Opacki, J. <Jos...@ng...> - 2003-10-07 14:32:09
|
I'm trying to build a simple text editor that edits text and saves them. This is working fine. My question is that I want to implement a custom syntax highlighting to it. Can anyone make any recommendations to me on how to implement something like this? Thanks. Joe |
|
From: Cesare P. <ces...@cc...> - 2003-10-07 13:54:18
|
Hello all. Does anyone know if it is possible to use Qt class library in Dev_C++ (Qt is a cross platform GUI (and more) class library, for Windows, Unix/Linux, Mac OS X, and embedded Linux). Greetings, Cesare Padovani |
|
From: Artem V. <ar...@ma...> - 2003-10-07 12:49:59
|
Hi, everybody! I've just downloaded dev-cpp to replace my old Borland C++ 3.01, and it looks very good. But I have one question: is it possible to use DEV IDE with Borland Free C++ 5.5 Compiler? I want to use debugger too. Is it possible? P.S. But I thing I'll be completely happy with GCC. :) |
|
From: Daniel G. <sp...@ho...> - 2003-10-07 08:10:03
|
Is it very different to what is used by visual C++ / visual studio .NET ?
For example is VC++ I could do
// Add the sum of some integers declared earlier
__asm
{
// eax is the target, move BigInt onto eax.
mov eax, dword ptr[BigInt]
// eax is the target (with BigInt on it), add SmallInt to the target
add eax, dword ptr[SmallInt]
// Move eax onto the new target, the variable that is the result
mov dword ptr[ResultInt], eax
}
std::cout<< ResultInt << std::endl;
Would this simple piece of code be radically different?
Daniel
>From: David McKen <ci...@ya...>
>Reply-To: ci...@ya...
>To: Ursin "Solèr" <urs...@pm...>,
>dev...@li...
>Subject: Re: [Dev-C++] InLineAssembler in Dev-C++
>Date: Mon, 6 Oct 2003 15:11:57 -0700 (PDT)
>
>Yes it does. However it is mingw that supports inline
>assembler not Dev-C++.
>The thing is that mingw supports the AT&T syntax (search
>google you will
>find loads of examples) not the standard i*86 syntax. You
>can probably check
>the documentation at www.mingw.org or just search in
>google.
>
>Happy Coding
>David McKen
>
>
>----- Original Message -----
>From: "Ursin Solèr" <urs...@pm...>
>To: <dev...@li...>
>Sent: Monday, October 06, 2003 5:06 AM
>Subject: [Dev-C++] InLineAssembler in Dev-C++
>
>
> > Hi folks
> >
> > Does Dev-C++ fully support inlineassembling?
> > Does anyone of you have a working example?
> >
> > Thanks, very much!! ;)
> > --
> > Ursin Solèr
> > Physiklaborant
> >
> > Observatorium Davos (PMOD/WRC)
> > Dorfstrasse 33
> > CH-7260 Davos Dorf
> >
> > Tel.: +41 81-417 5144
> > Fax.: +41 81-417 5100
> >
> > http://www.pmodwrc.ch/
> >
> >
>***********************************************************************
> > Zwei Planeten treffen sich im All. "Wie geht's?", fragt
>der eine.
> > "Schlecht", sagt der andere. "Einfach miserabel, ich habe
>Menschen."
> > "Mach dir nichts draus", sagt der eine, "das vergeht."
> >
>***********************************************************************
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > 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
>
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search
>http://shopping.yahoo.com
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>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
_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you.
http://www.msn.co.uk/internetaccess
|
|
From: David M. <ci...@ya...> - 2003-10-06 22:11:59
|
Yes it does. However it is mingw that supports inline assembler not Dev-C++. The thing is that mingw supports the AT&T syntax (search google you will find loads of examples) not the standard i*86 syntax. You can probably check the documentation at www.mingw.org or just search in google. Happy Coding David McKen ----- Original Message ----- From: "Ursin Solèr" <urs...@pm...> To: <dev...@li...> Sent: Monday, October 06, 2003 5:06 AM Subject: [Dev-C++] InLineAssembler in Dev-C++ > Hi folks > > Does Dev-C++ fully support inlineassembling? > Does anyone of you have a working example? > > Thanks, very much!! ;) > -- > Ursin Solèr > Physiklaborant > > Observatorium Davos (PMOD/WRC) > Dorfstrasse 33 > CH-7260 Davos Dorf > > Tel.: +41 81-417 5144 > Fax.: +41 81-417 5100 > > http://www.pmodwrc.ch/ > > *********************************************************************** > Zwei Planeten treffen sich im All. "Wie geht's?", fragt der eine. > "Schlecht", sagt der andere. "Einfach miserabel, ich habe Menschen." > "Mach dir nichts draus", sagt der eine, "das vergeht." > *********************************************************************** > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: w.y. <yok...@ve...> - 2003-10-06 11:34:33
|
Ursin Solèr wrote: > > Does Dev-C++ fully support inlineassembling? Yes. It uses AT&T/Unix style syntax instead of Intel. This site has some information which also applies to dev-c++: http://www.c-for-dummies.com/compilers/djgpp_asm.html |
|
From: <urs...@pm...> - 2003-10-06 09:07:42
|
Hi folks Does Dev-C++ fully support inlineassembling? Does anyone of you have a working example? Thanks, very much!! ;) --=20 Ursin Sol=E8r Physiklaborant Observatorium Davos (PMOD/WRC) Dorfstrasse 33 CH-7260 Davos Dorf Tel.: +41 81-417 5144 Fax.: +41 81-417 5100 http://www.pmodwrc.ch/ *********************************************************************** Zwei Planeten treffen sich im All. "Wie geht's?", fragt der eine. "Schlecht", sagt der andere. "Einfach miserabel, ich habe Menschen." "Mach dir nichts draus", sagt der eine, "das vergeht." *********************************************************************** |
|
From: David M. <ci...@ya...> - 2003-10-06 03:07:21
|
Small change to my last e-mail. After a little more reading I have come across the line
"A user-defined specialization looks like an ordinary template definition except that it must appear after its primary template."
In other words:
template <typename T>
T Operation(T value)
{ return value; }
template<> int Operation(int val)
{ return val; }
won't work but:
template <typename T>
T Operation(T value)
{ return value; }
template<> int Operation(int val)
{ return val; }
should work. My earlier comment about the template declaration and the function header being on different lines is just a sign of my lack of sleep.
Hope this helps some more
David McKen
----- Original Message -----
From: Pillati
To: dev...@li...
Sent: Sunday, October 05, 2003 6:20 PM
Subject: [Dev-C++] problems with template especialization
Hi!
I am trying to do with that a member method of a template class calls another method (with explicit specialization) that doesn't belong that class and it is defined in the same file. However, I obtain the following error: "multiple definition of 'int Operation(int)' ". Why doesn't this code work?
//Image.cpp
template <typename T>
T Operation(T value)
{ return value; }
template<> int Operation(int val)
{ return val; }
// member method of template class
template <typename Type>
void Image<Type>::setData()
{
int a;
a = Operation(10);
}
Raquel.
------------------------------------------
Use o melhor sistema de busca da Internet
Radar UOL - http://www.radaruol.com.br
---------------------------------------------------------------------
Please read http://www.wxwindows.org/mlhowto.htm before posting.
To unsubscribe, e-mail: wx-...@li...
For additional commands, e-mail: wx-...@li...
________________________________________________
Este E-mail foi enviado Usando o Software DETECMAIL 1.0
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ 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
---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search |
|
From: David M. <ci...@ya...> - 2003-10-06 03:05:07
|
Check out: http://gethelp.devx.com/techtips/cpp_pro/10min/2002/May/10min0502-3.asp Your code seems to be correct, except the template <> and the rest of the function header are supposed to be on different lines. At the above site they give a waring about template specilizations that you should probably take a look at. Hope this helps David McKen ----- Original Message ----- From: Pillati To: dev...@li... Sent: Sunday, October 05, 2003 6:20 PM Subject: [Dev-C++] problems with template especialization Hi! I am trying to do with that a member method of a template class calls another method (with explicit specialization) that doesn't belong that class and it is defined in the same file. However, I obtain the following error: "multiple definition of 'int Operation(int)' ". Why doesn't this code work? //Image.cpp template <typename T> T Operation(T value) { return value; } template<> int Operation(int val) { return val; } // member method of template class template <typename Type> void Image<Type>::setData() { int a; a = Operation(10); } Raquel. ------------------------------------------ Use o melhor sistema de busca da Internet Radar UOL - http://www.radaruol.com.br --------------------------------------------------------------------- Please read http://www.wxwindows.org/mlhowto.htm before posting. To unsubscribe, e-mail: wx-...@li... For additional commands, e-mail: wx-...@li... ________________________________________________ Este E-mail foi enviado Usando o Software DETECMAIL 1.0 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ 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 --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search |
|
From: Chris A. <chr...@cy...> - 2003-10-06 00:08:02
|
Whenever I include the following line in my rc file, the apoplication
compiles fine but exits immediately. Any suggestions for a newbie?
CONTROL "Slider1",ID_SPEED,"msctls_trackbar32", TBS_AUTOTICKS |
TBS_TOP | WS_TABSTOP,13,62,165,22
(Yes, I did define ID_SPEEDin resources.h; Maybe I need to import
something?)
Thanks in advance. (If this is OT, please point me to a more appropriate
forum/list/etc)
#Full RC FILE
#include "resource.h"
DLG_CONFIG DIALOG DISCARDABLE 0, 0, 190, 220
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Bouncy Screensaver"
FONT 8, "MS Sans Serif"
BEGIN
// config box and controls
GROUPBOX "Options",ID_GROUP_OPTIONS,7,7,175,95
//CONTROL "", ID_SPEED, "msctls_trackbar32", 1409351777, 24, 24, 124, 24
CONTROL "Slider1",ID_SPEED,"msctls_trackbar32", TBS_AUTOTICKS |
TBS_TOP | WS_TABSTOP,13,62,165,22
//about box and controls
DEFPUSHBUTTON "&OK",ID_OK,40,200,50,14
PUSHBUTTON "&Cancel",ID_CANCEL,100,200,50,14
GROUPBOX "About",ID_GROUP_ABOUT,7,107,175,82
LTEXT "A windows screensaver of a bouncy ball. \r\n\r\nBased
on code by Brook Miles from an animation example distributed with the
Dev-C++ IDE under GPL. \r\n\r\n2003 - Chris Arrowood",
IDC_STATIC,16,118,144,63
END
|
|
From: Pillati <pi...@de...> - 2003-10-05 21:20:21
|
Hi! <BR>I am trying to do with that a member method of a template class
calls another method (with explicit specialization) that doesn't belong that
class and it is defined in the same file. However, I obtain the following
error: "multiple definition of 'int Operation(int)' ". Why doesn't this code
work? <BR><BR>//Image.cpp <BR><BR>template <typename T> <TYPENAME
T><BR>T Operation(T value) <BR>{ return value; } <BR><BR>template<>
int Operation<INT>(int val) <BR>{ return val; } <BR><BR>// member method of
template class <BR>template <typename Type><TYPENAME Type><BR>void
Image<Type><TYPE>::setData() <BR>{ <BR> int a;
<BR> a = Operation(10); <BR>} <BR><BR>Raquel.
<BR><BR><BR><BR>------------------------------------------ <BR>Use o melhor
sistema de busca da Internet <BR>Radar UOL - http://www.radaruol.com.br
<BR><BR><BR><BR><BR>---------------------------------------------------------------------
<BR>Please read http://www.wxwindows.org/mlhowto.htm before posting.
<BR><BR>To unsubscribe, e-mail: wx-...@li...
<BR>For additional commands, e-mail: wx-...@li...
<BR><BR><BR><BR><BR>
<br />
<br />
________________________________________________
<br />
Este E-mail foi enviado Usando o Software DETECMAIL 1.0
<br />
|
|
From: Daniel K. O. <dan...@ya...> - 2003-10-04 22:45:46
|
Daniel K. O. wrote: > BUT if I use a vector<>, it doesn't work: > > --- > vector<Bola> balls; > > ball.push_back(Bola(...)); > Taco taco(balls[0]); > --- Uh... never mind, guys... I just realized I forgot to use a "balls.reserve(...)" to avoid reallocation , cause I use more push_back's after it... Daniel K. O. |
|
From: Daniel K. O. <dan...@ya...> - 2003-10-04 22:21:23
|
Hello people
My problem: getting a reference to a variable works, getting to a vector
position, don't.
I'm writing a pool game, that is a school assignment. And there's a
strange behavior, that only makes me think it's a compiler error - just
a side note, I'm using gcc version 3.2.3 (mingw special 20030504-1), I
downloaded a few days ago.
So, here's the problem: I have two classes to deal: Bola (ball) and Taco
(the direction the white ball will go).
This is the ball class:
--------
class Bola {
...
double x, y, z;
public:
...
double get_x() const { return x; }
... and the same for y and z
};
---------
And the class Taco receives a Bola reference:
----
class Taco {
const Bola& bola;
public:
Taco(const Bola& b): bola(b) { }
}
----
You see, the Taco object will receive a reference to a Bola object, and
use the get_* functions to know the ball coordinates. It all works fine
if I do this:
---
Bola ball(...);
Taco taco(ball);
---
BUT if I use a vector<>, it doesn't work:
---
vector<Bola> balls;
ball.push_back(Bola(...));
Taco taco(balls[0]);
---
In this case, the functions get_x, get_y and get_z always return the
same values; what I get then is an arrow (drawn by Taco) that is always
in (0, 0, 0), the initial ball position, and not following the ball when
it moves. In the first case, all works fine, the arrow is drawn in the
same position as the ball.
If anyone wanna try, my code is here:
http://www.polarhome.com/~danielko/pool/Sinuca.zip
and the sources, in html, here:
http://www.polarhome.com/~danielko/pool/html
I would be glad if anyone could tell my why with a normal variable it
works, and not witha a vector position.
Thanks in advance
Daniel K. O.
|
|
From: w.y. <yok...@ve...> - 2003-10-04 20:51:19
|
I thought of another solution to the pause with multiple exits
problem using C++:
class PauseAtEnd
{ public:
~PauseAtEnd() { system("pause"); }
} myPause;
You can put it outside of a function or at the start of main().
|
|
From: Matthews <dem...@uw...> - 2003-10-04 17:15:00
|
Alternately, you can use getchar(), a portable, standard, etc. method of
leaving the input around until you press a key.
At 05:59 PM 03/10/2003 +0100, Daniel Glenfield wrote:
>what a great idea!!!
>
>
>>From: "Reid Thompson" <Rei...@at...>
>>To: "Natalie Bryant" <nap...@lo...>,<ber...@ce...>
>>CC: "devc++" <dev...@li...>
>>Subject: RE: [Dev-C++] How to not close output win?
>>Date: Fri, 3 Oct 2003 07:45:16 -0400
>>
>>Create an exit function that has the system pause in it. Then,
>>everywhere you wish to exit, call the exit function. Only have to have
>>it in one place.
>>
>>
>>
>>reid
>>
>> -----Original Message-----
>> From: Natalie Bryant [mailto:nap...@lo...]
>> Sent: Friday, October 03, 2003 7:03 AM
>> To: ber...@ce...
>> Cc: devc++
>> Subject: Re: [Dev-C++] How to not close output win?
>>
>>
>> Thankyou Massimo,
>>
>> I'll bear that in mind for later when I need it.
>>
>> Kind regards
>>
>> Natalie
>>
>> ----- Original Message -----
>> From: Massimo Bertozzi <mailto:kb...@ce...>
>> To: Natalie Bryant
>><mailto:nap...@lo...>
>> Cc: devc++ <mailto:dev...@li...>
>>
>> Sent: Friday, October 03, 2003 11:55 AM
>> Subject: Re: [Dev-C++] How to not close output win?
>>
>> On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie Bryant
>><nap...@lo...> wrote:
>>
>> > Hi Neszt,
>> >
>> > Reid sent me this solution yesterday to the same
>>problem. It instantly made everything work properly... Shown below.
>>
>> Yes, until you have a single exit in your program.
>>When you have more
>> possibilities you have to replicate the system("pause")
>>everywhere.
>>
>> M.
>> --
>> Massimo Bertozzi
>> Dipartimento di Ingegneria dell'Informazione Voice:
>>+39 0521 90 5735
>> Parco Area delle Scienze, 181A, Parma, ITALY Fax:
>>+39 0521 90 5723
>> WWW: http://www.ce.unipr.it/people/bertozzi E-mail:
>>ber...@CE...
>>
>>
>>
>
>_________________________________________________________________
>On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>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: David M. <ci...@ya...> - 2003-10-04 16:32:10
|
Where is this function?
If it is in the same file, is it above or below the snippet?
If it is in another file is there a header file that has the prototype?
Hope this helps
David McKen
----- Original Message -----
From: Natalie Bryant
To: ci...@ya...
Sent: Saturday, October 04, 2003 11:01 AM
Subject: Re: [Dev-C++] Can anyone explain this please?
Hi David,
Is this the case, even though I have created it as a void function?
Many thanks
Natalie
----- Original Message -----
From: David McKen
To: Natalie Bryant
Sent: Saturday, October 04, 2003 3:54 PM
Subject: Re: [Dev-C++] Can anyone explain this please?
Essentially what the compiler is trying to tell you is that you are trying to call a function that (to the compiler) does not exist. Make sure at the very least there is a function prototype in the file or included from another file.
Happy Coding
David McKen
----- Original Message -----
From: Natalie Bryant
To: devc++
Sent: Saturday, October 04, 2003 10:08 AM
Subject: [Dev-C++] Can anyone explain this please?
Hi,
I wonder if anyone could explain what this means please. I can' get past this problem.
39 c:\c__pro~1\natash~2.cpp
implicit declaration of function `int TestFunction(...)'
The relevent code is
if
(DoAgain = = 1)
{
std::cout << "Here we go then...\n\n\n";
TestFunction();
}
I wonder if the problem could be that I'm calling the function inside itself?
Mnay thanks for any guidance.
Kind regards
Natalie
---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search |
|
From: Natalie B. <nap...@lo...> - 2003-10-04 14:08:27
|
Hi,
I wonder if anyone could explain what this means please. I can' get past =
this problem.
39 c:\c__pro~1\natash~2.cpp
implicit declaration of function `int TestFunction(...)'
The relevent code is
if
(DoAgain =3D =3D 1)
{
std::cout << "Here we go then...\n\n\n";
=20
TestFunction();
}
I wonder if the problem could be that I'm calling the function inside =
itself?
Mnay thanks for any guidance.
Kind regards
Natalie=20
|
|
From: Wing H. Y. <yok...@ve...> - 2003-10-04 08:14:50
|
Nathan Stanley wrote:
>
> From: "Wing H. Yi" <yok...@ve...>
> To: "Daniel Glenfield" <sp...@ho...>
> > int main()
> > {
> > functionToDoStuff();
> >
> > system("pause");
> > return 0;
> > }
>
> In cases where 'functionToDoStuff()' can exit the program, this is not
> acceptable, and is the case in the original email to list. This fix is good
> if your program can only exit at the end of main.
I suggested that alternative so that instead of explicitly exiting,
one could return from whereever in functionToDoStuff for the pause.
Though if there are many different functions that can exit, the use
of an exit function for the pause would be better.
However the 'atexit' suggested in another message sounds like
a cleaner solution.
|
|
From: Hossein H. <ult...@em...> - 2003-10-04 07:25:30
|
Dear 시니, >i'm?reading?an essential c++ book right now... I do not know how you've come accross this book, but, after all, it is not such a reliable book. There are tremendous number of better ones. Just take a glance to the ACCU book reviews. (http://www.accu.org) > whenever i try to use vector or string data types... > it gives an error....and i include vector for INCLUDE<VECTOR> > & string for INCLUDE<STRING> > i really don't know what is wrong.. > can any one of you guys answer me?? please Have you used the std namespace? E.g., have you typed something such as the following: using namespace std; (There are better options available, but as they seem off-topic, I haven't focused on them.) If not, do it! Regards, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: Wing H. Y. <yok...@ve...> - 2003-10-04 02:48:49
|
> >From: "Reid Thompson" <Rei...@at...>
> >Create an exit function that has the system pause in it. Then,
> >everywhere you wish to exit, call the exit function. Only have to have
> >it in one place.
Perhaps instead of an exit function this might be simpler
int main()
{
functionToDoStuff();
system("pause");
return 0;
}
|
|
From: Daniel G. <sp...@ho...> - 2003-10-03 17:02:25
|
what a great idea!!!
>From: "Reid Thompson" <Rei...@at...>
>To: "Natalie Bryant" <nap...@lo...>,<ber...@ce...>
>CC: "devc++" <dev...@li...>
>Subject: RE: [Dev-C++] How to not close output win?
>Date: Fri, 3 Oct 2003 07:45:16 -0400
>
>Create an exit function that has the system pause in it. Then,
>everywhere you wish to exit, call the exit function. Only have to have
>it in one place.
>
>
>
>reid
>
> -----Original Message-----
> From: Natalie Bryant [mailto:nap...@lo...]
> Sent: Friday, October 03, 2003 7:03 AM
> To: ber...@ce...
> Cc: devc++
> Subject: Re: [Dev-C++] How to not close output win?
>
>
> Thankyou Massimo,
>
> I'll bear that in mind for later when I need it.
>
> Kind regards
>
> Natalie
>
> ----- Original Message -----
> From: Massimo Bertozzi <mailto:kb...@ce...>
> To: Natalie Bryant
><mailto:nap...@lo...>
> Cc: devc++ <mailto:dev...@li...>
>
> Sent: Friday, October 03, 2003 11:55 AM
> Subject: Re: [Dev-C++] How to not close output win?
>
> On Fri, Oct 03, 2003 at 11:39:33AM +0100, Natalie Bryant
><nap...@lo...> wrote:
>
> > Hi Neszt,
> >
> > Reid sent me this solution yesterday to the same
>problem. It instantly made everything work properly... Shown below.
>
> Yes, until you have a single exit in your program.
>When you have more
> possibilities you have to replicate the system("pause")
>everywhere.
>
> M.
> --
> Massimo Bertozzi
> Dipartimento di Ingegneria dell'Informazione Voice:
>+39 0521 90 5735
> Parco Area delle Scienze, 181A, Parma, ITALY Fax:
>+39 0521 90 5723
> WWW: http://www.ce.unipr.it/people/bertozzi E-mail:
>ber...@CE...
>
>
>
_________________________________________________________________
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
|