dev-cpp-users Mailing List for Dev-C++ (Page 302)
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: <ten...@ne...> - 2003-10-25 12:42:25
|
I don't see anything wrong in your code. See what happens if you rewrite it in another source. >I don't remember about iostream, but C output primitives are >line-buffered: the output will appear only if you include a '\n' into the >output string. > > No, that's not needed. >I don't know whether it's so or not in C++, but I remember there's a flush >method somewhere in the ostream or ios class. Try searching for it on >MSDN: it sends every output you have in your buffer to screen. > It's endl. > >Bye, Ferdinando > > >------------------------------------------------------- >This SF.net email is sponsored by: The SF.net Donation Program. >Do you like what SourceForge.net is doing for the Open >Source Community? Make a contribution, and help us add new >features and functionality. Click here: http://sourceforge.net/donate/ >_______________________________________________ >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: Matt K. <sy...@as...> - 2003-10-25 11:24:11
|
This may seem trivial, but I'm having troubling finding a clear answer through just searching on the net. My question is: In the following scenario where you are using STL stack or vector container with a class object, ie: stack<board> moves; if you do something like: moves.push( thismove ); Does thismove get copied or is it passed into the stack by reference? In other words, if I am dynamically allocating thismove, should I be worrying about deallocating (freeing) it at a later point? Or does pop() call the deconstructor on the object for you? Thank you! |
|
From: P.D. v. Z. <pa...@my...> - 2003-10-25 09:39:54
|
Hi, Returning an STL container from a function is valid, but it will give you a performance decrease. Every time you call this function, a new container is created, filled, and then returned, upon which the entire container gets copied over to the destination (element by element). Can't really recommend a better way to solve it though, I usually lay my designs out differently :) Regards, Paul -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Matt Kerr Sent: Friday, October 24, 2003 11:17 AM To: dev...@li... Subject: [Dev-C++] Another newbie question about fn's returning STL containers I'm generating a stack of custom board class objects, and was wondering what the proper way to do this is (this is all for a board game-- tic-tac-toe in this case). What I have is a board member function called Generate_Moves that returns a stack of boards (ie. stack<board> ) of new possible selections. In the calling fn, I have a passed in variable of type board called state and do this: stack<board> moves; moves = state.Generate_Moves( p ); // p is the player whose turn it is Is this valid? Or should I be making "moves" a pointer, and then return a pointer to the new stack from Generate_Moves (and call delete on it when I'm done ? ). I was thinking that the way I have it right now is going to lose the "moves" stack in memory and cause a leak because it will add another lost guy every time the containing fn is called.... Implementing this minimax algorithm for tic-tac-toe was so much simpler in LISP :( ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ 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: Matt K. <sy...@as...> - 2003-10-25 06:00:49
|
I'm generating a stack of custom board class objects, and was wondering what the proper way to do this is (this is all for a board game-- tic-tac-toe in this case). What I have is a board member function called Generate_Moves that returns a stack of boards (ie. stack<board> ) of new possible selections. In the calling fn, I have a passed in variable of type board called state and do this: stack<board> moves; moves = state.Generate_Moves( p ); // p is the player whose turn it is Is this valid? Or should I be making "moves" a pointer, and then return a pointer to the new stack from Generate_Moves (and call delete on it when I'm done ? ). I was thinking that the way I have it right now is going to lose the "moves" stack in memory and cause a leak because it will add another lost guy every time the containing fn is called.... Implementing this minimax algorithm for tic-tac-toe was so much simpler in LISP :( |
|
From: Daniel K. O. <dan...@ya...> - 2003-10-25 01:53:53
|
First: GCC uses AT&T syntax by default, but it accepts Intel as well.
You can set which syntax you want to use by default, with the "-masm=x"
compiler option, where "x" can be:
"att" -> for AT&T syntax
"intel" -> for Intel syntax (d'oh....)
So, with -masm=intel you can write:
---
char hello[] = "Hello";
__asm(
"mov ebx, _hello \n"
"more intel asm here... \n"
);
---
And with -masm=att (the default) you can do:
---
char hello[] = "Hello";
__asm(
"mov $_hello, %ebx \n"
"more at&t asm here... \n"
);
---
If you want to mix ASM code, you can use ".intel_syntax" and
".att_syntax" to change the syntax for the next lines. Just don't
forget to change it back to the default syntax:
Option -> -masm=att
---
char hello[] = "Hello";
__asm(
".intel_syntax \n"
"mov ebx, _hello \n"
"more intel asm here... \n"
".att_syntax \n" // back to default syntax
);
---
Also, check:
http://www.codeproject.com/useritems/gccasm.asp
And also the Dev-Cpp's FAQ.
And please, learn how to use Google, I found all this in the first
results page. ;)
Daniel K. O.
Bjorn Terelius wrote:
> I'm using visual studio for this project, so it may be the wrong place
> for the question.
> Anyway, when I try compile code like:
>
>
> char hello[] = "Hello";
> __asm
> {
> mov ebx, offset hello
> ...
> }
>
> the compiler fail and respond "error C2415: improper operand type"
> This only occur when I'm trying to use offset
>
> Does anyone recognize this?
> I havn't found any helpful information on MSDN or by searching with
> Google
>
> Thanks
> Bjorn Terelius
|
|
From: <or...@vp...> - 2003-10-25 00:56:49
|
Bjorn Terelius wrote: > I'm using visual studio for this project, so it may be the wrong place > for the question. This is the worst place for that question. -- Greetings, Balázs |
|
From: Per W. <pw...@ia...> - 2003-10-24 19:31:58
|
Correction - DJGPP compiles 32-bit code which is run with a DOS extender. /Per W On Wed, 22 Oct 2003, OROSZI Bal=E1zs wrote: > John Ramshur wrote: > > I have a console application written it C using > > Dev-C++. I need to know if it is a 16 or 32 bit > > application. Can anyone help? > > MinGW compiles 32 bit code, that is, it will only run under Windows in a > command prompt (or with wine :) > If you want your program to run in DOS or DOS-mode, then use DJGPP, it > is a GCC port for DOS, that compiles 16 bit code. > > -- > Greetings, > Bal=E1zs > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > _______________________________________________ > 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: Alvin T. <al...@th...> - 2003-10-24 19:14:55
|
the line: foo gotFoo=fm[id]; should read: foo* gotFoo=fm[id]; bleh! |
|
From: Alvin T. <al...@th...> - 2003-10-24 19:12:07
|
TO ANYONE: some this may be c++ specific. if so, could you provide the c
equivalents?
>typedef std::map <compKey, unsigned int> mapVal;
to make sure i know what you're doing here, you want to supply 'compKey'
as the key and retrieve a plain int as the value? if not, disregard this
message and tell me what you mean.
a question that comes to mind is: since you're creating the compKey
struct yourself, and the only value you look up is an int, why not just
add an int field to compKey, and avoid using the map entirely?
struct compKey
{
EtrialId trialId;
EInternetId interId;
int foo;
};
you obviously already have access to compKey if you're going to supply
it as the key to the map, and it would be by far much faster (and
intuitive) to just access the int directly:
struct compKey key1;
...
int gotFoo=key1.foo;
to answer your questions: maps generally are more useful the other way
around; you want to look up a structure keyed on a simple item like an
int or a string:
struct foo
{
...
};
typedef std::map<string /*id*/,foo*> fooMap;
fooMap fm;
...
foo* getFoo(string id)
{
return fm[id];
}
as you can see above, to retrieve a value, you don't need to get an
iterator. just enclose the key in brackets after the map name, like:
foo gotFoo=fm[id];
to remove a key/value pair from the map:
fm.erase(id);
to add a key/value pair to the map:
string newID="whatever";
foo* newFoo;
...
fm[newID]=newFoo;
if you do need an iterator, use:
fooMap::iterator it;
/*
get an iterator pointing to the first item in the
map. use 'it++' to advance to the next item. if
there are no items in the map, returns the same as
'fm.end()' (see below).
*/
it=fm.begin();
/*
get an iterator to JUST AFTER the last item in the
map. use 'it--' to go to the last/previous item.
*/
it=fm.end();
/*
get an iterator to the item specified by the key
'id'. if that key does not exist in the map, it
returns the same as 'fm.end()'.
*/
it=fm.find(id);
if you have an iterator to a map, you can get the key or value
associated with it:
string key=it->first; /* gets the key */
foo* value=it->second; /* gets the value */
to advance the iterator to the next item in the map:
it++;
you can erase an item with its iterator, too. of course, the iterator is
no longer valid if you do:
fm.erase(it);
so, to traverse a map using a for loop:
for (fooMap::iterator it=fm.begin();it!=fm.end();it++)
{
string key=it->first; /* gets the key */
foo* value=it->second; /* gets the value */
/* do something here */
}
to clear the map:
fm.clear();
see:
http://www.sgi.com/tech/stl/table_of_contents.html
hth,
alvin
|
|
From: <or...@vp...> - 2003-10-24 18:31:10
|
John Ramshur wrote: > I have a console application written it C using > Dev-C++. I need to know if it is a 16 or 32 bit > application. Can anyone help? MinGW compiles 32 bit code, that is, it will only run under Windows in a command prompt (or with wine :) If you want your program to run in DOS or DOS-mode, then use DJGPP, it is a GCC port for DOS, that compiles 16 bit code. -- Greetings, Balázs |
|
From: Pascal <p.t...@ti...> - 2003-10-24 17:28:29
|
This code work fine under windows XP compatible mode for win98.
But I have test "FULL OPTIMISATION FOR P4 PRESCOTT NATIVE MODE" function in
DEV C++,and the result is:
#include <iostream>
using namespace std;
int main()
{
int a;
int *aPtr;
aPtr= &a;
std::cout << "Hello World! \n";
std::cout << "The address of a is" << &a
<< "\n The value of aPtr is" << aPtr<<"\n";
system ("pause"); // execute M$-DOS' pause command
return 0;
}
++ :)
|
|
From: Bjorn T. <bjo...@ho...> - 2003-10-24 16:33:52
|
I'm using visual studio for this project, so it may be the wrong place for
the question.
Anyway, when I try compile code like:
char hello[] = "Hello";
__asm
{
mov ebx, offset hello
...
}
the compiler fail and respond "error C2415: improper operand type"
This only occur when I'm trying to use offset
Does anyone recognize this?
I havn't found any helpful information on MSDN or by searching with Google
Thanks
Bjorn Terelius
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
|
|
From: Maya <Esc...@ne...> - 2003-10-24 16:14:05
|
I am not sure if the problem below is a bug in GCC 3.2.3 or an error on my part, but after reading data from a file I check the file cursor position using ::tellg() and tellp() and I get -1; an error in the stream. ---- snip ---- bool data; fstream f(blabla, blabla) std::cout << f.tellg() << std::endl; //<--- returns 0 f >> data; std::cout << f.tellg() << std::endl; //<--- returns -1 ----- The data stored in file 'blabla' is '010101', all bool values. If I only read the first value in the file (zero) why is tellg() reporting a failure in the stream. A more comprehensive example is at: http://www.vif.com/users/escalante/IO_BASE_H.html Can anyone help? -- -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Ferdinando F. <s2...@st...> - 2003-10-24 12:41:41
|
> I do have the system pause, and still I didn't see the statements. > > Any other suggestions? > I don't remember about iostream, but C output primitives are line-buffered: the output will appear only if you include a '\n' into the output string. I don't know whether it's so or not in C++, but I remember there's a flush method somewhere in the ostream or ios class. Try searching for it on MSDN: it sends every output you have in your buffer to screen. Bye, Ferdinando |
|
From: <go...@fo...> - 2003-10-24 12:19:15
|
Hi Mic,
I tried your code. It works fine on my machine(500MHz,250MB RAM, win2k
sp4).
One comment though:
The line
using namespace std;
does exactly what it says, that is; names should be interpreted according
to std. This means that doing std::cout<<blabla... is overkill. Just
cout<<blabla... is enough.
In fact you can define your own namespace (don't ask me how) where you
might specify that cout should mean something else. Putting
using namespace mynamespace;
would imply your implementation of cout rather than the std (standard) one.
But if you then wanted the standard cout then you would have to do
std::cout<<blabla...
(or if you omitted the using namespace std;-line)
Cheers
G=F6sta
*********** REPLY SEPARATOR ***********
On 2003-10-23 at 20:43 Mic wrote:
>Hello all
>
>
>
>And thanks for your mails. I'm including the code I'm trying to run on
>Dev-cpp (which by the way works fine on unix).
>
>The statements do not display on my DOS terminal.
>
>
>
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>#include <iostream>
>
>//using the & and * operators
>
>
>
>using namespace std;
>
>
>
>int main(){
>
>int a;
>
>int *aPtr;
>
>a=3D7;
>
>aPtr=3D &a;
>
>system ("pause");
>
>
>
>std::cout << "Hello World! \n";
>
>
>
>std::cout << "The address of a is" << &a
>
> << "\n The value of aPtr is" << aPtr;
>
> system ("pause"); // execute M$-DOS' pause command
>
> return 0;
>
>}
>
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>
>
>
>
>_______________________________________________
>Join Excite! - http://www.excite.com
>The most personalized portal on the Web!
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The SF.net Donation Program.
>Do you like what SourceForge.net is doing for the Open
>Source Community? Make a contribution, and help us add new
>features and functionality. Click here: http://sourceforge.net/donate/
>_______________________________________________
>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: Frank W. <F.W...@wi...> - 2003-10-24 11:22:15
|
Hi, this depends on the compiler you are working with, because DevCpp is only a IDE. If you are working with DevCpp you will be using Mingw on default, but other compilers are also possible. So for your problem the mailinglists or newsgroups concerning your compilor might be the best choice to ask these kind of questions. On the other hand there are a lot of people in this list using the compilor that comes with DevC++ but if you will get help from them you must tell them wich compiler you are using. Greetings Frank >>> John Ramshur <jt...@ya...> 10/23 6:01 >>> Apparently outportb() or inportb() isn't supported in Dev-cpp header files. Does anyone know what Dev-cpp uses to write and read to port or memory locations in C? With borland I just typed outportb(0x378, 0xff). John R __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ 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: Eric <eri...@cl...> - 2003-10-24 11:09:50
|
I just tried that program and it works OK on Windows 98
----- Original Message -----
From: "Mic" <mi...@ex...>
To: <dev...@li...>
Sent: Friday, October 24, 2003 1:43 PM
Subject: [Dev-C++] code with cout statement (no display)
Hello all
And thanks for your mails. I'm including the code I'm trying to run on
Dev-cpp (which by the way works fine on unix).
The statements do not display on my DOS terminal.
======================================================================
#include <iostream>
//using the & and * operators
using namespace std;
int main(){
int a;
int *aPtr;
a=7;
aPtr= &a;
system ("pause");
std::cout << "Hello World! \n";
std::cout << "The address of a is" << &a
<< "\n The value of aPtr is" << aPtr;
system ("pause"); // execute M$-DOS' pause command
return 0;
}
=====================================================================
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
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: Nehal S. <ns...@ix...> - 2003-10-24 10:32:42
|
Hi All-
I have a question on std::map in C++. So, here is the scenario.
struct compKey
{
EtrialId trialId;
EInternetId interId;
};
typedef std::map <compKey, unsigned int> mapVal;
mapVal::const_iterator itVal;
mapVal storeMap;
now:
(1) I want to store compKey element in the map in suach a way that I have
the fastest retrieval of the information and I guess I also need to find out
how do I find in the map so that I provide it (compKey) and it tells the
iterator.
Many thanks in advance
nehal
|
|
From: Eric <eri...@cl...> - 2003-10-24 10:16:59
|
it is possible it might display something, but then it might go away before you see anything. at the end of the program do either a "pause" or a "cin" to stop the program closing down before you press the keyboard ----- Original Message ----- From: "Mic" <mi...@ex...> To: <dev...@li...> Sent: Thursday, October 23, 2003 1:10 AM Subject: [Dev-C++] cout not displaying Hello The statement cout does not display anything on my DOS terminal. Could you help? Mic _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ 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: Christopher H. <ha...@au...> - 2003-10-24 08:34:00
|
Before discovered Dev-C++, I used MinGW and MSYS as well as other tools = in that family. I recently tried to install MSYS into the same directory as Dev-C++ (since the directory structures are similar and I already have = the 'bin' directory on my path). After installing MSYS into 'Dev-Cpp' the = build project function no longer works as 'make' exits with a compiler error = of 'No input files found'. Examining the compile log shows that the syntax passed to the compiler is correct (the source file is there). I have = tried compiling from the command line using that same syntax (it works) and I = have tried moving 'make' and 'mingw32-make' out of the 'bin' directory before installing MSYS and then moving them back and overwriting MSYS's make utilities (doesn't work). If MSYS is installed in a different directory = and pointed to 'Dev-Cpp' during the post-install, the problem does not = occur. So then, how does Dev-C++ generate those makefiles? If anyone has also = tried using MSYS in the same directory as Dev-C++ successfully, what steps did = you take? -christof |
|
From: Santiago P. C. <San...@yd...> - 2003-10-24 08:07:39
|
Hi Maya, Just a few tries... ;o) - Please double-check that you're really creating a 'Win32 console' application instead of a common 'Windows application'. - Please have in mind that if you're including 'windows.h', then 'winuser.h' is automatically included from that file. =09BTW, 'windows.h' must be included if you're creating a common windows application...=20 - Removing an include file is not an option nor a solution, remember that (at least) you'll not be able to use it in the future if you remove it... Anyway, please do not remove include or lib files if you don't really know what you're exactly doing... You can lead other components to a crash... And OTOH the system is prepared to work with these files... Best regards, ~Santy -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Maya Sent: jueves, 23 de octubre de 2003 2:11 To: Dev - C++ Subject: [Dev-C++] uninclude winuser.h? When I compile my program, Dev-C++ automatically include the file=20 'winuser.h' as well as other windows files. I don't want this, I am not=20 creating a Windows program, but a Text program. Another member of the mailing list, Jorge Infante, kindly suggested me=20 to remove the winuser.h file from the '../include/' subdirectory and=20 warned me that it was more of a trick than a solution. Later this=20 afternoon, I had a little misunderstanding with the MS-Windows OS; I am=20 more of a UNIX user, and I feel like I have one hand tide behind my back here in the Windows world, and didn't have time to work on the Dev-C++=20 problem. Anyway, what can I do to stop Dev-C++ from including 'winuser.h'? Thanks folks. --=20 Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. =20 - Jean Chretien * The media's the most powerful entity on earth. They have the=20 =20 power to make the innocent guilty and to make the guilty=20 =20 innocent, and that's power.=20 =20 - Malcom X * "Innocent until proven guilty", no... not in Canada!! ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ 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 -------------------------------------------------------------------------= ------------- This message and any files transmitted with it are confidential and inten= ded solely=20 for the use of the individual or entity to whom they are addressed. No co= nfidentiality=20 or privilege is waived or lost by any wrong transmission.=20 If you have received this message in error, please immediately destroy it= =20and kindly=20 notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, o= r copy any=20 part of this message if you are not the intended recipient. Opinions, con= clusions and=20 other information in this message that do not relate to the official busi= ness of=20 Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given= =20nor endorsed by it.=20 -------------------------------------------------------------------------= ------------- |
|
From: Mic <mi...@ex...> - 2003-10-24 07:32:16
|
Hello all
And thanks for your mails. I'm including the code I'm trying to run on Dev-cpp (which by the way works fine on unix).
The statements do not display on my DOS terminal.
======================================================================
#include <iostream>
//using the & and * operators
using namespace std;
int main(){
int a;
int *aPtr;
a=7;
aPtr= &a;
system ("pause");
std::cout << "Hello World! \n";
std::cout << "The address of a is" << &a
<< "\n The value of aPtr is" << aPtr;
system ("pause"); // execute M$-DOS' pause command
return 0;
}
=====================================================================
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
|
|
From: <ten...@ne...> - 2003-10-24 05:01:59
|
How is it used? What kind of variables are you trying to display? Mic wrote: >Thank you for your mail, Eric > > > >I do have the system pause, and still I didn't see the statements. > >Any other suggestions? > > > >Again, thank you. > > > >Mic > > > > > > > > > > > > --- On Thu 10/23, Eric < eri...@cl... > wrote: > >From: Eric [mailto: eri...@cl...] > >To: mi...@ex..., dev...@li... > >Date: Thu, 23 Oct 2003 19:10:26 +1300 > >Subject: Re: [Dev-C++] cout not displaying > > > >it is possible it might display something, but then it might go away<br>bef= ore you see anything.<br><br>at the end of the program do either a "pause" o= r a "cin" to stop the<br>program closing down before you press the keyboard<= br><br><br>----- Original Message -----<br>From: "Mic" <mi...@ex...><b= r>To: <dev...@li...><br>Sent: Thursday, October 23, 2= 003 1:10 AM<br>Subject: [Dev-C++] cout not displaying<br><br><br><br>Hello<b= r><br><br><br>The statement cout does not display anything on my DOS termina= l. Could<br>you help?<br><br><br><br>Mic<br><br><br><br><br><br><br><br>____= ___________________________________________<br>Join Excite! - http://www.exc= ite.com<br>The most personalized portal on the Web!<br><br><br>-------------= ------------------------------------------<br>This SF.net email is sponsored= by OSDN developer relations<br>Here's your chance to show off your extensiv= e product knowledge<br>We want to know what you know. Tell us and you have a= chance to win $100<br>http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4ML= NSV3E54<br>_______________________________________________<br>Dev-cpp-users=20= mailing list<br>Dev...@li...<br>TO UNSUBSCRIBE: http:= //www23.brinkster.com/noicys/devcpp/ub.htm<br>https://lists.sourceforge.net/= lists/listinfo/dev-cpp-users<br><br> > >_______________________________________________ >Join Excite! - http://www.excite.com >The most personalized portal on the Web! > > >------------------------------------------------------- >This SF.net email is sponsored by OSDN developer relations >Here's your chance to show off your extensive product knowledge >We want to know what you know. Tell us and you have a chance to win $100 >http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 >_______________________________________________ >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 > > =20 > |
|
From: Maya <Esc...@ne...> - 2003-10-23 23:57:39
|
When I compile my program, Dev-C++ automatically include the file 'winuser.h' as well as other windows files. I don't want this, I am not creating a Windows program, but a Text program. Another member of the mailing list, Jorge Infante, kindly suggested me to remove the winuser.h file from the '../include/' subdirectory and warned me that it was more of a trick than a solution. Later this afternoon, I had a little misunderstanding with the MS-Windows OS; I am more of a UNIX user, and I feel like I have one hand tide behind my back here in the Windows world, and didn't have time to work on the Dev-C++ problem. Anyway, what can I do to stop Dev-C++ from including 'winuser.h'? Thanks folks. -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: David M. <ci...@ya...> - 2003-10-23 22:44:36
|
May we see what code you are trying to run (or at least a snippet)? ----- Original Message ----- From: "Mic" <mi...@ex...> To: <dev...@li...> Sent: Thursday, October 23, 2003 3:28 AM Subject: [Dev-C++] cout statement not displaying even when the system pauses > > Thank you for your mail, Eric > > > > I do have the system pause, and still I didn't see the statements. > > Any other suggestions? > > > > Again, thank you. > > > > Mic > > > > > > > > > > > > --- On Thu 10/23, Eric < eri...@cl... > wrote: > > From: Eric [mailto: eri...@cl...] > > To: mi...@ex..., dev...@li... > > Date: Thu, 23 Oct 2003 19:10:26 +1300 > > Subject: Re: [Dev-C++] cout not displaying > > > > it is possible it might display something, but then it might go away<br>before you see anything.<br><br>at the end of the program do either a "pause" or a "cin" to stop the<br>program closing down before you press the keyboard<br><br><br>----- Original Message -----<br>From: "Mic" <mi...@ex...><br>To: <dev...@li...><br>Sent: Thursday, October 23, 2003 1:10 AM<br>Subject: [Dev-C++] cout not displaying<br><br><br><br>Hello<br><br><br><br>The statement cout does not display anything on my DOS terminal. Could<br>you help?<br><br><br><br>Mic<br><br><br><br><br><br><br><br>____________________ ___________________________<br>Join Excite! - http://www.excite.com<br>The most personalized portal on the Web!<br><br><br>-------------------------------------------------------<br>T his SF.net email is sponsored by OSDN developer relations<br>Here's your chance to show off your extensive product knowledge<br>We want to know what you know. Tell us and you have a chance to win $100<br>http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54<br>____ ___________________________________________<br>Dev-cpp-users mailing list<br>Dev...@li...<br>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm<br>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users<br><br> > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > 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 |