dev-cpp-users Mailing List for Dev-C++ (Page 608)
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: Daniel G. <sp...@ho...> - 2002-03-31 08:46:24
|
Do you need conio_mingw.h for all these to work? Wouldn't <conio.h> do?
>From: Ricardo López Ruiz <ri...@po...>
>To: dev...@li...
>Subject: [Dev-C++] Re: getch()-getche()
>Date: Thu, 28 Mar 2002 18:39:34 +0100
>
>Finally I have found three different ways
>to implement the reading of a key without pressing RETURN.
>I report them if it can be of help for somebody.
>It works finely on my platform, but as it has been discussed
>in the last days, it is not sure that it runs well
>on other installations of Dev-C++.
>Ricardo.
>
>*******************************************
>#include <iostream>
>#include <conio_mingw.h>
>int main()
>{
> cout << "Enter any key." << endl;
> getch(); //reads a char without return and without echo
> cout << "Enter another key" << endl;
> getche(); // reads a char without return and with echo
> cout << "\n End is coming...Press a key" << endl;
> while(!kbhit()) ; // waits until you press a key
>
> return(0);
>}
>********************************************
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
|
|
From: <gi...@li...> - 2002-03-31 08:16:37
|
Hello all I've recently come across a program called "doc++", it is able of reading a C/C++ source file (or a list of source files), using ordinary comments or special ones to document the code. The output is generally HTML pages. It seems simple and quick. I would like to know if anybody out there is using the tool and what you think about it. thanks -- gisan gi...@li... |
|
From: Jason H. <jas...@bt...> - 2002-03-31 03:21:52
|
AFAICT that syntax error is because you haven't included the header =
needed for the pair template class.
Add: #include <utility>
Hope this helps, Jason.
----- Original Message -----=20
From: vze3s3mw=20
To: dev...@li...=20
Sent: Sunday, March 31, 2002 3:39 AM
Subject: [Dev-C++] Hash Table
//Does anyone know what wrong with this program?
//THIS IS THE ERROR MESSAGE: syntax error before `('
//Thank you!!!!!!!!!!!!!!
#include <iostream.h>
#include <fstream.h>
#include <string>
//#include "chaining.h"
// we do not compute prime numbers but use a table instead
// this table is lifted from the STL, see hashtable.h
static const int num_primes =3D 25;
static const unsigned long prime_list[] =3D
{
53, 97, 193, 389, 769,
1543, 3079, 6151, 12289, 24593,
49157, 98317, 196613, 393241, 786433,
1572869, 3145739, 6291469, 12582917, 25165843,
50331653, 100663319, 201326611, 402653189, 805306457
};
class HashMap
{
public:
// provide flexibility
typedef string key_type;
typedef int value_type;
private:
// hashtable entries=20
struct Entry
{
key_type k;
value_type v; =20
bool b;
=20
Entry(): k(), v(), b(false) {}
};
=20
size_t sz; // number of entries
size_t nn; // index to size table
Entry *ht; // array of Entry's
=20
public:
HashMap(): sz(0), nn(0), ht( new Entry[prime_list[0]] ) {}
=20
=20
size_t size() const { return sz; }
size_t table_size() const { return prime_list[nn]; }
float load_factor() const { return float(size())/table_size(); =
}
size_t hash( const key_type& k );
pair<bool,size_t> search( const key_type& k );
size_t insert( const key_type& k, const value_type& v );
size_t resize();
value_type operator[]( size_t i ) { return ht[i].v; }
void print_table();
};
main( int argc, char **argv )
{
if( argc !=3D 3 )
{
cerr << "Usage: " << argv[0] << " <file> <number of words>" << =
endl;
exit(1);
}
HashMap Table;
ifstream inf( argv[1] );
if( !inf )
{
cerr << "cannot open " << argv[1] <<", exiting" << endl;
exit(0);
}
=20
int n =3D atoi( argv[2] );
int cnt =3D 0;
string word;
=20
while( inf >> word && cnt++ < n )=20
Table.insert( word, word.size() );
inf.close();
=20
Table.print_table();
exit(EXIT_SUCCESS);
}
|
|
From: vze3s3mw <vze...@ve...> - 2002-03-30 23:42:28
|
//Does anyone know what wrong with this program?
//THIS IS THE ERROR MESSAGE: syntax error before `('
//Thank you!!!!!!!!!!!!!!
#include <iostream.h>
#include <fstream.h>
#include <string>
//#include "chaining.h"
// we do not compute prime numbers but use a table instead
// this table is lifted from the STL, see hashtable.h
static const int num_primes =3D 25;
static const unsigned long prime_list[] =3D
{
53, 97, 193, 389, 769,
1543, 3079, 6151, 12289, 24593,
49157, 98317, 196613, 393241, 786433,
1572869, 3145739, 6291469, 12582917, 25165843,
50331653, 100663319, 201326611, 402653189, 805306457
};
class HashMap
{
public:
// provide flexibility
typedef string key_type;
typedef int value_type;
private:
// hashtable entries=20
struct Entry
{
key_type k;
value_type v; =20
bool b;
=20
Entry(): k(), v(), b(false) {}
};
=20
size_t sz; // number of entries
size_t nn; // index to size table
Entry *ht; // array of Entry's
=20
public:
HashMap(): sz(0), nn(0), ht( new Entry[prime_list[0]] ) {}
=20
=20
size_t size() const { return sz; }
size_t table_size() const { return prime_list[nn]; }
float load_factor() const { return float(size())/table_size(); }
size_t hash( const key_type& k );
pair<bool,size_t> search( const key_type& k );
size_t insert( const key_type& k, const value_type& v );
size_t resize();
value_type operator[]( size_t i ) { return ht[i].v; }
void print_table();
};
main( int argc, char **argv )
{
if( argc !=3D 3 )
{
cerr << "Usage: " << argv[0] << " <file> <number of words>" << =
endl;
exit(1);
}
HashMap Table;
ifstream inf( argv[1] );
if( !inf )
{
cerr << "cannot open " << argv[1] <<", exiting" << endl;
exit(0);
}
=20
int n =3D atoi( argv[2] );
int cnt =3D 0;
string word;
=20
while( inf >> word && cnt++ < n )=20
Table.insert( word, word.size() );
inf.close();
=20
Table.print_table();
exit(EXIT_SUCCESS);
}
|
|
From: Jason H. <jas...@bt...> - 2002-03-30 15:08:07
|
It doesn't actualy output any of the numbers, i.e.
cout << " number 1 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint) << number1 << endl;
Another thing is that there are other ways of doing what you are doing =
which you may want to look up. I'm pretty sure there is a way to just =
set the precision and iosflags once and then it will use that for all =
output. Also by using for loops and an array of floats you can cut down =
on typing. It's not so bad for 5 floats, but imagine that you wanted to =
do 20.
Just a few thoughts for you.
Jason.
----- Original Message -----=20
From: Charles Nicosia=20
To: dev...@li...=20
Sent: Saturday, March 30, 2002 4:21 AM
Subject: Re: [Dev-C++] How do i correct a syntax error
You need a main() function and semicolons after your cout's. And you =
can't have spaces in your variable names. It compiles fine now, but I'm =
not sure it does what you want it to.
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
float number;
int main()
{
float number1, number2, number3, number4, number5;
cout << " Enter 5 floating point numbers " << endl;
cin >> number1 ;
cin >> number2 ;
cin >> number3 ;
cin >> number4 ;
cin >> number5 ;
cout << " The floating point numbers are " << endl;
cout << " number 1 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
cout << " number 2 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
cout << " number 3 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
cout << " number 4 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
cout << " number 5 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
return 0;
}
|
|
From: Guillaume B. <be...@wa...> - 2002-03-30 08:36:56
|
Hi I'm new to this mailing list and I wonder if there is an history of all messages posted... I'm looking for any informations to access I/O under windows XP (NT/2000), especially serial port. Thank you ! Best regards gUI |
|
From: Charles N. <hi...@ne...> - 2002-03-30 04:21:49
|
You need a main() function and semicolons after your cout's. And you =
can't have spaces in your variable names. It compiles fine now, but I'm =
not sure it does what you want it to.
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
float number;
int main()
{
float number1, number2, number3, number4, number5;
cout << " Enter 5 floating point numbers " << endl;
cin >> number1 ;
cin >> number2 ;
cin >> number3 ;
cin >> number4 ;
cin >> number5 ;
cout << " The floating point numbers are " << endl;
cout << " number 1 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
cout << " number 2 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
cout << " number 3 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
cout << " number 4 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
cout << " number 5 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint);
return 0;
}
|
|
From: EFE B. <dou...@ya...> - 2002-03-30 03:10:17
|
/* file:omosefe.cpp
description:program to input 5 floating point numbers
programmer:Omosefe Bazuaye
Date:27th March 2002
*/
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
float number;
{
float number 1, number 2, number 3, number 4, number
5;
cout << " Enter 5 floating point numbers " << endl;
cin >> number 1 ;
cin >> number 2 ;
cin >> number 3 ;
cin >> number 4 ;
cin >> number 5 ;
cout << " The floating point numbers are " << endl;
cout << " number 1 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 2 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 3 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 4 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 5 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
return 0;
}
The results of the complilation says i have syntax
errors and so i can't get any results.Please Help.
Thanks.
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
|
|
From: Daniel W. <d_w...@ho...> - 2002-03-29 18:50:18
|
Yeah finally something function, the weird header "#include = <conio_mingw.h>" contains a kbhit() function like the one in microsoft = visual C++, it is used for replace getch() like this: while(!kbhit()); Thanx ricardo Daniel Wilches M. dwi...@ma... |
|
From: christiaan s. <ck...@ia...> - 2002-03-29 17:53:32
|
I found a great refrence and i just thought id share it with you. A = system wide hook is a great little thing that allows you to take = controll of all applications in windows! So you can add an extra button = to every window (next to the minimize button for example- there is a = demo of this in one of the links on the page). You can also hack progs = with it! I once downloaded a program that listens for the time event in = minesweeper giving you a perfect score! http://www.cpp.atfreeweb.com/Hooks.html |
|
From: David M. <ci...@ya...> - 2002-03-29 15:06:48
|
First you need to include stdlib.h next you need to call the function srand() to initialize the random number generator If the number you use is the same the same sequence of random numbers is generated, because of this it is normal to use the time function to initialize the generator as the time is constantly changing e.g. srand(time(NULL)); N.B. You need to include time.h to get the time function. next you want to call the rand function to get your random number N.B. the rand function returns a random number between 0 and RAND_MAX usually you wish a number within a certain range the following formula should help you. lower_bound + rand() % (upper_bound - lower_bound + 1) eg. To get a random number between 1 and 10 (inclusive) the following should sufice 1 + rand() % (10 - 1 + 1); |
|
From: Ioannis V. <no...@ho...> - 2002-03-29 12:57:58
|
In C: #include <stdlib.h> #include <time.h> ... int r; srand(time(NULL)); ... /* One random number from 0 to RAND_MAX (which can't be larger than 32767 */ r=rand(); ... /* Another random number */ r=rand(); Using RAND_MAX you can get any range you want in a portable way! Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Daniel G. <sp...@ho...> - 2002-03-29 10:38:53
|
<html><div style='background-color:'><DIV>
<P>Well you could try something like this...</P>
<P>NOTE: These are in C so if anyone has the C++ version let me know!</P>
<P>int rnd(void) // Remember to declare elsewhere by typing int rnd(void);</P>
<P>{</P>
<P>int r;</P>
<P>r = rand();</P>
<P>return(r);<BR></P>
<P>}<BR></P>
<P> </P>
<P>Or you may like to "seed" the randomiser whereby you give it more numbers to base its calculations on and mess things up more (so it's "more" random).</P>
<P>void main() // Or int main()</P>
<P>{</P>
<P> int x;</P>
<P> seedrnd();</P>
<P> for(x=0;x<100;x++)</P>
<P> printf("%i\t", rnd());</P>
<P>}</P>
<P>int rnd(void)</P>
<P>{</P>
<P> int r;</P>
<P> r=rand();</P>
<P> return(r);</P>
<P>}</P>
<P>void seedrnd(void)</P>
<P>{</P>
<P> int seed;</P>
<P> char s[6];</P>
<P> printf("Enter a random number:");</P>
<P> seed=(unsigned)atoi(gets(s));</P>
<P> srand(seed);</P>
<P>}</P>
<P> </P>
<P>There are easier ways of doing it of course, but I'll leave that for others to inform you.</P>
<P> </P>
<P>Daniel</P>
<P> </P>
<P> </P></DIV>
<DIV></DIV>
<DIV></DIV>>From: "chromatonus 712" <CHR...@HO...>
<DIV></DIV>>To: dev...@li...
<DIV></DIV>>Subject: [Dev-C++] How do you get random numbers in devc++?
<DIV></DIV>>Date: Fri, 29 Mar 2002 02:28:50 +0000
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>_________________________________________________________________
<DIV></DIV>>Get your FREE download of MSN Explorer at
<DIV></DIV>>http://explorer.msn.com/intl.asp.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>Dev-cpp-users mailing list
<DIV></DIV>>Dev...@li...
<DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
<DIV></DIV></div><br clear=all><hr>Chat with friends online, try MSN Messenger: <a href='http://g.msn.com/1HM305301/11'>Click Here</a><br></html>
|
|
From: EFE B. <dou...@ya...> - 2002-03-29 06:09:42
|
dou...@ya... __________________________________________________ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ |
|
From: chromatonus 7. <chr...@ho...> - 2002-03-29 02:29:09
|
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. |
|
From: <gi...@li...> - 2002-03-28 17:59:41
|
At 03:26 28/03/02 -0500, Ib...@ao... wrote:
> ...
>hi,
>experts please,i really need ur help on this one,the complier results is that
>i have syntax errors and i have tried everything ,please help.
>omosefe.
the following code works, check it against the lines you posted. If you
have questions, let us know.
#include <iomanip>
// all ANSI C++ programs require a "main" function.
int
main()
{
float number1; // first number
float number2; // second number
std::cout << "Enter 2 floating point numbers" << std::endl;
std::cin >> number1 >> number2; // one instruction reads both
// remember that some settings are active until you change them,
// the precision and the way real numbers are displayed are an
// example.
std::cout << "The floating point numbers are:\n"
<< std::setprecision(2)
<< std::setiosflags(std::ios::fixed | std::ios::showpoint)
<< "number1 is: " << number1 << '\n'
<< "number2 is: " << number2 << '\n';
}
--
gisan
gi...@li...
|
|
From: Ricardo R. <ri...@po...> - 2002-03-28 17:40:06
|
Finally I have found three different ways
to implement the reading of a key without pressing RETURN.
I report them if it can be of help for somebody.
It works finely on my platform, but as it has been discussed
in the last days, it is not sure that it runs well
on other installations of Dev-C++.
Ricardo.
*******************************************
#include <iostream>
#include <conio_mingw.h>
int main()
{
cout << "Enter any key." << endl;
getch(); //reads a char without return and without echo
cout << "Enter another key" << endl;
getche(); // reads a char without return and with echo
cout << "\n End is coming...Press a key" << endl;
while(!kbhit()) ; // waits until you press a key
return(0);
}
********************************************
|
|
From: <lv...@al...> - 2002-03-28 13:28:12
|
unsuscribe ========================= Leonardo Vejar Gasc Ingenieria Civil Informatica Universidad del BioBio Concepcion--CHILE |
|
From: <Ib...@ao...> - 2002-03-28 08:26:33
|
/* file:omosefe.cpp
description:program to input 5 floating point numbers
programmer:Omosefe
Date:27th March 2002
*/
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
float number
{
float number 1, number 2, number 3, number 4, number 5;
cout << "Enter 5 floating point numbers" << endl;
cin >> number 1;
cin >> number 2;
cin >> number 3;
cin >> number 4;
cin >> number 5;
cout << "The floating point numbers are" << endl;
cout << " number 1 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 2 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 3 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 4 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 5 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
return 0;
}
hi,
experts please,i really need ur help on this one,the complier results is that
i have syntax errors and i have tried everything ,please help.
omosefe.
|
|
From: David M. <ci...@ya...> - 2002-03-28 05:09:13
|
I posted a question about using inline assembly in my program Unfortunately I did not get an answer that worked. I searched the internet and I found a tutorial that should help whoever else it was that was asking similar questions it is located here http://www.geocities.com/SiliconValley/Ridge/2544/cprog/rmiyagi-inline-asm.txt |
|
From: Ioannis V. <no...@ho...> - 2002-03-27 11:27:34
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of VIP > Sent: Wednesday, March 27, 2002 12:51 PM > To: dev...@li... > Subject: [Dev-C++] I need help ! > > > Dear experts, > I hope you are well and I hope you are enjoying > yourtime ... > My Q is ... Can I do windows program in Dev-C++ ? and > how ? and if there are any website can I learn how to > do it ... > I'm feeling boring to do program for dos ... I need to > do a program like that what can the guys do it in VB > and VC++ ... > BUT IN DEV-C++ Yes by using the Win32 API which is a library of C functions and comes with Dev-C++. So buy a book for Win32 API. You can also add other external API libraries. Win32 API is supported by all Windows compilers (Visual C++, Borland C++ Builder, e.t.c.). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: VIP <ibn...@ya...> - 2002-03-27 10:51:23
|
Dear experts, I hope you are well and I hope you are enjoying yourtime ... My Q is ... Can I do windows program in Dev-C++ ? and how ? and if there are any website can I learn how to do it ... I'm feeling boring to do program for dos ... I need to do a program like that what can the guys do it in VB and VC++ ... BUT IN DEV-C++ If there is anyone can help me I will be thankful. At last .. I wanna to say I loved Dev-C++ , also my friends .. and I'm talking about it much in UN ... __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ |
|
From: Daniel G. <sp...@ho...> - 2002-03-27 08:03:55
|
Hmmm that sounds bad. Try doing the program again, closing all other applications. what spec is your machine? You have to have an .exe for the program to run. >From: "Peter" <pet...@sp...> >To: <dev...@li...> >Subject: [Dev-C++] failed. >Date: Tue, 26 Mar 2002 17:14:58 -0500 > >I tried the Hello World program in C++ 101. It failed miserably with a >blue screen of death. I used Control F9 and then F9. Should I try to run >it in a Dos window. and how can a cpp extension run? Does it not have to >be exe? > >Peter > > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. |
|
From: Daniel W. <d_w...@ho...> - 2002-03-27 00:06:19
|
Yeah, that program works fine but if you want to change the text color, =
with something like this:
#include <conio.h>
#include <iostream.h>
int main()
{
cout << "Enter any key." << endl;
getche();
textcolor(10);
cout << " whatever you want to happen leave the program call a =
function??" <<endl;
getche();
return(0);
}
then the linker will throw an error. This error is evitable by vreating =
this file into a project and in "Further object files..." in the Project =
options, add the conio.o library.
But then, the getche() will act as if it were reading a string.
Thats the problem: i need to use getche() and textcolor() at the same =
time
Daniel Wilches M.
dwi...@ma...
|
|
From: Daniel W. <d_w...@ho...> - 2002-03-27 00:06:19
|
[Dev-C++] Windows Programing Hi Simo, some weeks ago i had the same problem and the solution i found = wasnt a tutorial, either was read as many examples as you can and learn = the steps to follow in the creation of a window (this is the most = difficult thing ive found to begin learning), you will see that in all = simple examples the steps are: Make tyhe class Fill all the class properties (style, icon, cursor, etc) Register the class Show the window But for learn to do this you may have a good help resource like the = Microsoft's Visual Studio help (MSDN help libraries), cause is almost = imposible know of memory all the properties that takes a class like one = WNDCLASS, it have 11 properties more or less. I have a little small tutorial that i downloaded, if you want i can send = it to you, only drop me a email, my mail is dwi...@ma... Daniel Wilches M. |