dev-cpp-users Mailing List for Dev-C++ (Page 111)
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: tichy <ti...@po...> - 2005-08-17 16:10:31
|
I do not see Class.hInstance =3D GetModuleHandle(NULL); This is very important because it, if I can say so, "assigns" your class=20 (any) to process you spawns. > regards, A.Kry=F1ski ------------------------------------------------------------------- Wybieramy internetowa dziewczyne wakacji!!! Wyslij zgloszenie >> http://link.interia.pl/f18ab << |
|
From: Alfred P. R. <al...@ya...> - 2005-08-17 15:32:20
|
Hi Scott, Warnings are actually a good thing, that forces you to write cleaner, platform independent code. As the man page indicates: "Warnings are diagnostic messages that report constructions which are not inherently erroneous but which are risky or suggest there may have been an error. " However, if you still want to disable warnings, try the different warning options as specified in the GCC (1) man page. The -w (Inhibit all warning messages) one is the one you probably want, and you want to place it in the compiler parameters. Look at your automatically generated make file to insure that it is actually present. If that doesn't work, try -fsyntax-only also. I compile with -Wall, and force myself to clean up the code till the warnings go away. This is not viable for h files though that are part of the standard libraries, and some have significant numbers (>150) of warnings in them. Scott <fre...@ve...> wrote: Is there a way to turn Warnings off in the C Compiler? I'd like it to just show Errors in compiler / compiler log windows, to make tracking down Errors more visible... "Inhibit all warning messages" is checked in the C compiler settings, tab...... But this seems to do nothing? Cheers, Scott. Alfred P. Reaud |
|
From: Martin D. <nex...@qu...> - 2005-08-17 06:48:19
|
Kelly Boult wrote: > I got this cd last semester at school in a Beginning Game Programming > book and have this version (4.9.8.0) installed on my computer. I seem > to be having a problem getting updates/packages. When I go to > tools/check for updates/packages and then click on the red check mark > I get a server error, "Error server returned code 302...". This has > been happening for a few days now so I wondered if this is really a > server error or what? I have never been into the updates before so I > have no idea if it ever really did work. > > Please get back to me and let me know at your convenience. > > Thanks, > Kelly I think that Dev-C++ 4.9.8.0 uses the old vUpdate program. Right now, updates are handled in Dev-C++ itself and they were moved to another server. Download new Dev-C++ from http://www.bloodshed.net/dev and don't forget to remove Dev-C++ 4.9.8.0 before installing new version. Happy coding, next_ghosts |
|
From: ZATTI A. C. <Ale...@co...> - 2005-08-17 06:46:10
|
I think that you have problems when you call RegisterClassEx, right? = What's the error code that return from GetLastError? Try to modify your code like below: l_Class.hInstance =3D GetModuleHandle(NULL); l_Class.cbSize =3D sizeof( WNDCLASSEX ); l_Class.style =3D CS_HREDRAW | CS_VREDRAW;=09 l_Class.lpszClassName =3D "WindowsApp"; l_Class.lpfnWndProc =3D WindowProcedure; l_Class.hbrBackground =3D (HBRUSH) COLOR_BACKGROUND; l_Class.hCursor =3D NULL; l_Class.hIcon =3D NULL; l_Class.hIconSm =3D NULL; l_Class.lpszMenuName =3D NULL; l_Class.cbClsExtra =3D 0; l_Class.cbWndExtra =3D 0; Regards, Ale -----Messaggio originale----- Da: dev...@li... [mailto:dev...@li...]Per conto di Noorez Kassam Inviato: mercoled=EC 17 agosto 2005 5.47 A: dev...@li... Oggetto: [Dev-C++] Window Class Error WNDCLASSEX l_Class; l_Class.cbSize =3D sizeof( WNDCLASSEX ); l_Class.style =3D 0; l_Class.lpszClassName =3D "WindowsApp"; l_Class.lpfnWndProc =3D WindowProcedure; l_Class.hbrBackground =3D NULL; l_Class.hCursor =3D NULL; l_Class.hIcon =3D NULL; l_Class.hIconSm =3D NULL; l_Class.lpszMenuName =3D NULL; l_Class.cbClsExtra =3D 0; l_Class.cbWndExtra =3D 0; This is not working, what am I doing wrong? _________________________________________________________________ Powerful Parental Controls Let your child discover the best the Internet = has=20 to offer.=20 http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D= 1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines=20 Start enjoying all the benefits of MSN=AE Premium right now and get = the=20 first two months FREE*. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle = Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf _______________________________________________ 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: cwic <cw...@ma...> - 2005-08-17 06:23:10
|
Hello bhadram, Wednesday, August 17, 2005, 8:51:11 AM, you wrote: br> Dear friends, br> I'd problem with usage of friends in br> templates in vc++ compiler. Please any one can help me. br> I want to make the Node class as frined to List class to br> access the private variables of Node class int list class but it br> is giving the compilation errors like this. With out the frinds br> class definition it is working fine. Can't understand how it can to "working fine", but as you ask for the friend class issue - it may be resolved with declaration of what the List class is. Insert this line on top of List1.h template <class T> class List; -- Best regards, cwic mailto:cw...@ma... |
|
From: bhadram r. <bha...@ya...> - 2005-08-17 05:51:18
|
Dear friends,
I'd problem with usage of friends in templates in vc++ compiler. Please any one can help me.
I want to make the Node class as frined to List class to access the private variables of Node class int list class but it is giving the compilation errors like this. With out the frinds class definition it is working fine. friends class defintion is line 4 of Node class. Please write the solution as it is sucking me.Waiting for your help.
yours truly,
bhadram
Compiling...
list.cpp
d:\cpppractice\listproject\list1.h(6) : error C2059: syntax error : '<'
d:\cpppractice\listproject\list1.h(17) : see reference to class template instantiation 'Node<T>' being compiled
d:\cpppractice\listproject\list1.h(6) : error C2238: unexpected token(s) preceding ';'
d:\cpppractice\listproject\list1.h(17) : see reference to class template instantiation 'Node<T>' being compiled
d:\cpppractice\listproject\list1.h(32) : error C2989: 'List' : template class has already been defined as a non-template class
d:\cpppractice\listproject\list1.h(6) : see declaration of 'List'
d:\cpppractice\listproject\list1.h(36) : error C2059: syntax error : '<'
d:\cpppractice\listproject\list1.h(44) : error C2039: 'insert' : is not a member of '`global namespace''
d:\cpppractice\listproject\list1.h(45) : error C2143: syntax error : missing ';' before '{'
d:\cpppractice\listproject\list1.h(45) : error C2447: missing function header (old-style formal list?)
d:\cpppractice\listproject\list1.h(50) : error C2954: template definitions cannot nest
d:\cpppractice\listproject\list1.h(52) : error C2039: 'print' : is not a member of 'List'
d:\cpppractice\listproject\list1.h(32) : see declaration of 'List'
d:\cpppractice\listproject\list.cpp(7) : error C2143: syntax error : missing ';' before '<'
d:\cpppractice\listproject\list.cpp(7) : error C2143: syntax error : missing ';' before '<'
d:\cpppractice\listproject\list.cpp(10) : error C2065: 'l' : undeclared identifier
d:\cpppractice\listproject\list.cpp(10) : error C2228: left of '.insert' must have class/struct/union type
d:\cpppractice\listproject\list.cpp(12) : error C2228: left of '.print' must have class/struct/union type
Error executing cl.exe.
list.obj - 14 error(s), 0 warning(s)
the code is the header file:
template<class T>
class Node
{
friend class List<T>;
private:
T data;
Node<T>* next;
public:
Node(T v,Node<T>* n)
{
data=v;
next=n;
}
};
template<class T>
class List
{
private:
public:
Node<T>* first;
Node<T>* last;
List();
void insert(T v);
void print();
};
template<class T>
List<T>::List()
{
first='\0';
last='\0';
}
template<class T>
void List<T>::insert(T v)
{
Node* n=new Node(v,first);
first=n;
}
template<class T>
void List::print()
{
for(Node* p=first;p;p=p->next)
{
cout<<p->data<<endl;
}
}
the cpp program:
# include <iostream.h>
# include<List1.h>
void main()
{
List<int> l;
for(int i=0;i<5;i++)
{
l.insert(i);
}
l.print();
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
From: Scott <fre...@ve...> - 2005-08-17 05:14:25
|
Is there a way to turn Warnings off in the C Compiler? I'd like it to just show Errors in compiler / compiler log windows, to make tracking down Errors more visible... "Inhibit all warning messages" is checked in the C compiler settings, tab...... But this seems to do nothing? Cheers, Scott. |
|
From: Scott <fre...@ve...> - 2005-08-17 05:14:17
|
It works for me no problems with 4.9.9.2 (and the previous version, too) Maybe just uninstall the version you have, download the install the = latest.version, and then try it again...... =20 Do you have a firewall? This could interfere with the connection. Hope it helps... Cheers, Scott. I got this cd last semester at school in a Beginning Game Programming = book and have this version (4.9.8.0) installed on my computer. I seem to = be having a problem getting updates/packages. When I go to tools/check = for updates/packages and then click on the red check mark I get a server = error, "Error server returned code 302...". This has been happening for = a few days now so I wondered if this is really a server error or what? I = have never been into the updates before so I have no idea if it ever = really did work. Please get back to me and let me know at your convenience. Thanks, Kelly |
|
From: Kelly B. <bo...@ms...> - 2005-08-17 04:26:36
|
<html><div style='background-color:'><DIV class=RTE><FONT size=5>I got this cd last semester at school in a Beginning Game Programming book and have this version (4.9.8.0) installed on my computer. I seem to be having a problem getting updates/packages. When I go to tools/check for updates/packages and then click on the red check mark I get a server error, "Error server returned code 302...". This has been happening for a few days now so I wondered if this is really a server error or what? I have never been into the updates before so I have no idea if it ever really did work.</FONT></DIV> <DIV class=RTE><FONT size=5></FONT> </DIV> <DIV class=RTE><FONT size=5>Please get back to me and let me know at your convenience.</FONT></DIV> <DIV class=RTE><FONT size=5></FONT> </DIV> <DIV class=RTE><FONT size=5>Thanks,</FONT></DIV> <DIV class=RTE><FONT size=5>Kelly</FONT></DIV> <DIV class=RTE> </DIV> <DIV class=RTE> </DIV></div></html> |
|
From: Noorez K. <lor...@ho...> - 2005-08-17 03:47:19
|
WNDCLASSEX l_Class; l_Class.cbSize = sizeof( WNDCLASSEX ); l_Class.style = 0; l_Class.lpszClassName = "WindowsApp"; l_Class.lpfnWndProc = WindowProcedure; l_Class.hbrBackground = NULL; l_Class.hCursor = NULL; l_Class.hIcon = NULL; l_Class.hIconSm = NULL; l_Class.lpszMenuName = NULL; l_Class.cbClsExtra = 0; l_Class.cbWndExtra = 0; This is not working, what am I doing wrong? _________________________________________________________________ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: <szs...@12...> - 2005-08-16 18:40:54
|
尊敬的客户:
你好,在这信息时代,随着市场经济全球化的发展,
国内市场经济竞争日趋激烈!使商家利润难以得到保障!
公司本着互惠互利的原则与客户建立良好的合作伙伴关系。
随着"金税工程"的启动,为我们的合作提供了"平台"。
公司可为商家优惠代开电脑增值税抵扣发票,国税地税
普通销售发票,广告专用发票,运输专用发票等.如贵公司
有下列情况:
1.公司做进帐.出项有差额;
2.客户压底货价.利润微薄;
3.采购时需要正式票据报销;
若您或您的朋友有这方面需要的话,请致电我们.
我们都能为您效劳, 我们是先用票后付款.具体合作方式可来电咨询!
顺祝商祺!
联系电话:13760375409 (张先生)
邮箱:szs...@12...
深圳地中海实业有限公司
|
|
From: <szs...@12...> - 2005-08-16 18:38:58
|
尊敬的客户:
你好,在这信息时代,随着市场经济全球化的发展,
国内市场经济竞争日趋激烈!使商家利润难以得到保障!
公司本着互惠互利的原则与客户建立良好的合作伙伴关系。
随着"金税工程"的启动,为我们的合作提供了"平台"。
公司可为商家优惠代开电脑增值税抵扣发票,国税地税
普通销售发票,广告专用发票,运输专用发票等.如贵公司
有下列情况:
1.公司做进帐.出项有差额;
2.客户压底货价.利润微薄;
3.采购时需要正式票据报销;
若您或您的朋友有这方面需要的话,请致电我们.
我们都能为您效劳, 我们是先用票后付款.具体合作方式可来电咨询!
顺祝商祺!
联系电话:13760375409 (张先生)
邮箱:szs...@12...
深圳地中海实业有限公司
|
|
From: majdi m. <maj...@ya...> - 2005-08-15 07:57:38
|
confirm 211322 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Verne H. B. <ve...@sy...> - 2005-08-14 16:03:42
|
Along with the correction suggested and reason for wrong answer you think you
got don't forget to use this before return.
system("PAUSE");
return 0;
Verne
Hello, I am new to programming and to c++ and Dev-CPP. I have been
experimenting with numbers and can't figure this one out. Here is the
code the I am using:
#include<iostream>
using namespace std;
int main ()
{
int a;
float b;
double c;
long double d;
cout << " Enter a number: ";
cin >> d;
c=d;
b=d;
a=d;
cout << d << endl << c << endl << b << endl << a << endl;
return 0;
}
Here is the result with the number 123456789.123456789:
1.23457e+008
1.23457e+008
1.23457e+008
123456789
Now from what I have read, a long double should be good up to 19
digits, a long up to 15, and a float up to 7. Why does the long double
return 1.23457e+008, instead of the entered value of
123456789.123456789, which is only 18 digits long?
--
Paul Lane
KC9EYE
-----------------------------------------------------------------------------
"Life after all, is a fatal disease, and the mortality rate
for humans, at the end of the day is 100%."
K.C. Cole
----------------------------------------------------------------------------
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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: Martin D. <nex...@qu...> - 2005-08-14 08:03:20
|
P.Lane wrote:
>Hello, I am new to programming and to c++ and Dev-CPP. I have been
>experimenting with numbers and can't figure this one out. Here is the
>code the I am using:
>
>#include<iostream>
>using namespace std;
>int main ()
>{
> int a;
> float b;
> double c;
> long double d;
> cout << " Enter a number: ";
> cin >> d;
> c=d;
> b=d;
> a=d;
> cout << d << endl << c << endl << b << endl << a << endl;
> return 0;
>}
>Here is the result with the number 123456789.123456789:
>1.23457e+008
>1.23457e+008
>1.23457e+008
>123456789
>Now from what I have read, a long double should be good up to 19
>digits, a long up to 15, and a float up to 7. Why does the long double
>return 1.23457e+008, instead of the entered value of
>123456789.123456789, which is only 18 digits long?
>
>
That output is right. Standard setting for floating point values bigger
than 10^6 is scientific notation with first 6 digits. Try tampering with
output formating mathods of std::ostream.
Happy coding,
next_ghost
|
|
From: P.Lane <kc...@gm...> - 2005-08-14 04:34:48
|
Hello, I am new to programming and to c++ and Dev-CPP. I have been
experimenting with numbers and can't figure this one out. Here is the
code the I am using:
#include<iostream>
using namespace std;
int main ()
{
int a;
float b;
double c;
long double d;
cout << " Enter a number: ";
cin >> d;
c=3Dd;
b=3Dd;
a=3Dd;
cout << d << endl << c << endl << b << endl << a << endl;
return 0;
}
Here is the result with the number 123456789.123456789:
1.23457e+008
1.23457e+008
1.23457e+008
123456789
Now from what I have read, a long double should be good up to 19
digits, a long up to 15, and a float up to 7. Why does the long double
return 1.23457e+008, instead of the entered value of
123456789.123456789, which is only 18 digits long?
--=20
Paul Lane
KC9EYE
---------------------------------------------------------------------------=
--
"Life after all, is a fatal disease, and the mortality rate=20
for humans, at the end of the day is 100%."
K.C. Cole
---------------------------------------------------------------------------=
-
|
|
From: Per W. <pw...@ia...> - 2005-08-12 20:28:46
|
Sorry, you have to generate your permutation yourself. Depending on how you generate your permutations, you can calculate where a specific permutation should be stored in the array. There will be a total of 8! or 40320 permutations. Depending on algorithm implementation, the permutations may also be stored as a large bit array, where non-eliminated permutations are located by scanning the bit array 32-bit at a time. /Per W On Fri, 12 Aug 2005, Pablo Itaim A. wrote: > Hi, i'm trying to implemet a hill climbing algorithm with a greedy initial heuristic for the n queen problem. > For the greedy, i wanto to have an array with all the permuted columns. > is there any c command for genering permuted arrays? > how can i eliminate a value from that array without searching the complete array? > > Thank you for the help and i hope that you can undertand my english ;-) > > Pablo |
|
From: Verne H. B. <ve...@sy...> - 2005-08-12 19:50:53
|
Simply use cin.get();
return 0;
// This works nicely in all three of the programs I use though sometimes the
'system("PAUSE"); will work as well in Borland, Dev C++ or Ms V c++.
Verne
----- Original Message -----
From: "lordSauron" <lor...@gm...>
To: <dev...@li...>
Sent: Friday, August 12, 2005 2:48 PM
Subject: Fwd: FW: [Dev-C++] Execution Problem
what if you said cin.ignore (0, '\n'); ???
Does anyone know if that'd work? Or maybe putting in a negative
number or something... I dunno. There should just be a way to do
this, but you might have to get sneaky and be weird like this:
while (true) {
if (getc() != '\n')
break;
}
or something to that effect.
NOTE: dangit. forgot to change the to: area to dev-cpp-users.
MESSAGE TO ADMIN: make the place have a reply-to adress PLEASE!!!
it's really screwing me up!
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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: lordSauron <lor...@gm...> - 2005-08-12 18:49:09
|
what if you said cin.ignore (0, '\n'); ???
Does anyone know if that'd work? Or maybe putting in a negative
number or something... I dunno. There should just be a way to do
this, but you might have to get sneaky and be weird like this:
while (true) {
if (getc() !=3D '\n')
break;
}
or something to that effect.
NOTE: dangit. forgot to change the to: area to dev-cpp-users.=20
MESSAGE TO ADMIN: make the place have a reply-to adress PLEASE!!!=20
it's really screwing me up!
|
|
From: Pablo I. A. <rig...@ho...> - 2005-08-12 18:42:09
|
Hi, i'm trying to implemet a hill climbing algorithm with a greedy = initial heuristic for the n queen problem.=20 For the greedy, i wanto to have an array with all the permuted columns.=20 is there any c command for genering permuted arrays? how can i eliminate a value from that array without searching the = complete array? Thank you for the help and i hope that you can undertand my english ;-) Pablo |
|
From: Daniel K. O. <dan...@ya...> - 2005-08-12 12:10:00
|
Farzan Hajian wrote:
> I have a problem with variable declaration.
> Please tell me what the following declaration means?
>
> int * const * ptr;
>
> I know that "ptr" is a pointer to "int * const". But what "int *
> const" means.
I know that Shachar already answered, but I thought that it was a bit
confusing; so I'll try too.
Considering that T is a type, you can write:
T obj;
T * pobj;
Where "obj" is a variable of type "T", and "pobj" is a pointer to a
variable of type T.
Now, replace "T" with a type like "int" and you have:
int obj;
int * obj;
But "int *" is also a type; you could write:
typedef int * pint; /* now "pint" is a synonym for "int *" */
pint obj;
pint * pobj;
The typedef "pint" is just a convenience here; if you remove it, you can
write the equivalent code:
int * obj;
int * * pobj;
So, "obj" is a pointer to "int", and "pobj" is a pointer to pointer to
"int".
Now if you want to declare the "int" value as constant, you can:
const int * * pobj;
or
int const * * pobj;
Now you can't change the end of the two pointers (the "int" value).
int * a;
pobj = &a; /* ok, assigning the address of variable "a" */
*pobj = a; /* ok, assigning the address stored in "a" */
**pobj = *a; /* error, assignment of read-only location */
You can also declare the variable itself ("pobj") as const, so its value
can't be changed.
int * a;
int * * const pobj;
pobj = &a; /* error, assignment of read-only location */
*pobj = a; /* ok, assigning the address stored in "a" */
**pobj = *a; /* ok, assigning the integer pointed by "a" */
And finally, you can add a const so the value pointed by "pobj" (a
pointer) can't be changed.
int * a;
int * const * pobj;
pobj = &a; /* ok, assigning the address of variable "a" */
*pobj = a; /* error, assignment of read-only location */
**pobj = *a; /* ok, assigning the integer pointed by "a" */
---
Daniel K. O.
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis.
Instale o discador agora! http://br.acesso.yahoo.com/
|
|
From: Shachar R. <sha...@gm...> - 2005-08-12 10:36:39
|
On 8/12/05, Farzan Hajian <far...@ho...> wrote:
> Hi,
> I have a problem with variable declaration.
> Please tell me what the following declaration means?
>=20
> int * const * ptr;
>=20
> I know that "ptr" is a pointer to "int * const". But what "int * const"
> means.
You have a 2 level pointer, out of which the second one is constant. I
will try to illustrate this:
Lets assume ptr =3D=3D 0x1000
Additionally, in address 0x1000 you have the value 0x2000
And finally, in address 0x2000 you have the value 0x3000
So, writing **ptr will get you the integer value at address 0x2000
(meaning if you will do printf("0x%X",**ptr); you will get 0x3000) ,
and will allow you to change it (meaning that you will be able to
assign a different value there), and writing *ptr will get you the
address 0x2000 (meaning that if you will do printf("%p",*ptr); you
will get 0x2000), which you won't be able to change. Finally, you will
be able to change address ptr itself is pointing to, which currently
is 0x1000.
Regards,
Shachar
|
|
From: Farzan H. <far...@ho...> - 2005-08-12 09:54:24
|
Hi, I have a problem with variable declaration. Please tell me what the following declaration means? int * const * ptr; I know that "ptr" is a pointer to "int * const". But what "int * const" =20 means. Thanks, --=20 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |
|
From: Markella K. <chr...@fr...> - 2005-08-12 07:07:41
|
I didn't know this. thx Krisztian > fflush(stdin) isn't portable either, so that should probably be > replaced with cin.ignore(8) or something. (with the argument being > greater if you anticipate more than 8 chars of garbage in the stdin > queue). > > > |
|
From: Keenan <Co...@xm...> - 2005-08-12 02:00:19
|
Major News for MiDX was released. Big exposure tomorrow. Don't miss this watch... Live audio interview with the CEO has been released. Make sure you go listen now. Big exposure for tomorrow. Put MiDX on those RADARS now. MidNet, Inc. MiDX Recently News was released about MIDX's Platform To Be Used By "The Alliance for a New Humanity" Whose President Is Deepak Chopra MD! Deepak Chopra MD - An acclaimed Author And Spiritual Leader The Time to Look at MIDX is Right Now! More Big News for MiDX has been released SmallCapVoice Features Interview With MidNet CEO Tilo Kunz CEO Presents Company Overview and Discusses introduction of the beta version of a software-based "media phone" (Go to yahoo or any financial site to read the entire news release now. This could be huge exposure for MiDX) MidNet, Inc. MiDX Using patented Digital DNA technology, The Middle Network provides customers with unparalleled levels of closed-loop security for data, reinforcing anti-piracy, copyright control, privacy and security measures. If we need to explain how important security, copyright control and privacy are then we need to give up now! Anti-piracy? Losses due to piracy are off the charts... We all know that! More News was released Today after the stock markets closed, MiDX, MidNet Inc., the company issued a press release announcing that CEO Tilo Kunz, does a featured audio interview with SmallCapVoice and Discusses introduction of the beta version of a software-based "media phone" Make sure you go listen to this interview ASAP. News of this new media phone should be welcomed by investors, as the company's Middle Network continues to gain exposure! SmallCapVoice means more EXPOSURE for MiDX. The Middle Network MidNet's The Middle Network acts as an affordable and secure network operating environment, a private "middle layer" between communication infrastructure companies and application services. Its breakthrough technological capabilities provide fast, private, secure, high-capacity transmission of mission-critical information. After more than 3 years of development, MidNet debuted The Middle Network in September 2004, rolling out in seven major North American centers.Los Angeles, Houston, Denver, Vancouver, Toronto, Calgary and Edmonton. The company plans to expand the network to London plus 35 additional markets in North America. Building Customer Acceptance in Niche Markets (MiDX is not in the dream stage) MidNet has signed agreements and begun providing private network services to major players in both the entertainment and oil and gas sectors. These customers include Technicolor Creative Services Canada and Rainmaker Limited, two of Canada's largest video post-production companies. Another key customer is Kelman Technologies Ltd., a provider of seismic processing services to the energy industry and a member of Canada's Tech 100. This year MidNet is targeting approximately 25 companies in the entertainment industry and 150 businesses in the energy sector. More customers in other industry sectors will follow. In the film industry alone.representing only a subset of MidNet's customer base.the revenue potential for collaborative media creation services is estimated by Frost & Sullivan to be $1.5 Billion US annually with market acceptance currently at 10% and anticipated yearly increases of 50%. The demand for fast, secure, big-pipe transactions is increasing at an explosive rate. The Company is confident it can provide the means to support this pace and capitalize on its growth. Make sure you take the time to read current news releases. There are many! You will not want to miss this watch for tomorrow, so Put MiDX on your Radar's right now and make sure you watch out for tomorrow. Disclaimer: Information within this email contains "forwardlooking statements" within the meaning of Section 27Aof the Securities Act of 1933 and Section 21B of the Securities Exchange Act of 1934. Any statements that express or involve discussions with respect to predictions, expectations, beliefs, plans, projections, objectives, goals, assumptions or future events or performance are not statements of historical fact and may be "forward looking statements". "Forward looking statements" are based on expectations, estimates and projections at the time the statements are made that involve a number of risks and uncertainties which could cause actual results or events to differ materially from those presently anticipated. Forward looking statements in this action may be identified through the use of words such as "projects", "foresee", "expects", "will", "anticipates", "estimates", "believes", "understands" or that by statements indicating certain actions "may", "could", or "might" occur. Risk factors include general economic and business conditions, the ability to acquire and develop specific projects, the ability to fund operations and changes in consumer and business consumption habits and other factors overwhich the company has little or no control. The publisher of this newsletter does not represent that the information contained in this message states all material facts or does not omit a material fact necessary to make the statements therein not misleading. All information provided within this email pertaining to investing, ST0CKs, securities must be understood as information provided and not investment advice. The publisher of this newsletter advises all readers and subscribers to seek advice from a registered professional securities representative before deciding to trade in ST0CKs featured within this email. None of the material within this report shall be construed as any kind of investment advice or solicitation. Many of these companies are on the verge of bankruptcy. You can lose all your money by investing in this ST0CK. We urge you to read the company's SEC filings now, before you invest. The publisher of this newsletter is not a registered invstment advisor. Subscribers should not view information herein as legal, tax, accounting or investment advice. In compliance with the SecuritiesAct of 1933, Section 17(b), The publisher of this newsletter is contracted to receive six hundred thousand free trading shares from a third party, not an officer, director or affiliate shareholder for the circulation of this report. Be aware of an inherent conflict of interest resulting from such compensation due to the fact that this is a paid advertisement and is not without bias. The party that paid us has a position in the ST0CK they will sell at anytime without notice. This could have a negative impact on the price of the ST0CK, causing you to lose money. All factual information in this report was gathered from public sources, including but not limited to SEC filings, Company Websites and Company Press Releases. The publisher of this newsletter believes this information to be reliable but can make no guarantee as to its accuracy or completeness. Use of the material within this email constitutes your acceptance of these terms. |