dev-cpp-users Mailing List for Dev-C++ (Page 190)
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: Riumin A. <sp...@ap...> - 2004-08-18 13:24:54
|
Good day, I have a question about function 'main'. Since this function is declared as int main(int argc, char *argv[]) , how can I pass to this function an unicode arguments? Thank you in advance, Riumin Alexei. |
|
From: Scott S. <age...@co...> - 2004-08-18 11:48:07
|
Here are some links: http://www.acm.uiuc.edu/webmonkeys/book/c_guide/ http://www.eskimo.com/~scs/cclass/notes/top.html http://people.cs.uchicago.edu/~iancooke/osstuff/ccc.html w0rldd0m wrote: >This looks like a great solution. ><Humble> >Is there a way translate this into a 'Comp. Sci 1' solution? >I just finished the class and Im not familiar fgets(), sscanf() and >String sanitizing yet, although Im a swashbuckler with making a new string >variables. >My classmates will be impressed when I drop a "buffer overflow attack" >problem on them. ></Humble> > >Thank you in advance for any help you can offer. > > >-----Original Message----- >From: dev...@li... >[mailto:dev...@li...] On Behalf Of Scott >Simontis >Sent: Tuesday, August 17, 2004 5:06 PM >To: Per Westermark >Cc: Matt Valerio; wor...@so...; dev...@li... >Subject: Re: [Dev-C++] newbie string parsing question > >This is probably the smartest solution. I was going to suggest C functions. >Also, you can include <cstdio> instead of stdio.h. That will include all of >the C headers in namespace std. >Per Westermark wrote: > > > >>Note 1: fscanf will not allocate any memory. first_name and last_name >>must already point to large enough memory buffers. >> >>Note 2: that scanf functions are a common road of buffer overflow attacks. >>If one of the names in the string is very long, it will overwrite >>unallocated memory. Whenever strings are loaded, a maximum field width >>should be specified in the formatting string! >> >>One other common method of loading text lines using C, i.e. without use >>of the string data type, is to load each text line with >> fgets(buf,sizeof(buf),file) >>and then use sscanf() on a sanitized string, or use strchr(), strtok() >>or similar to find the separator character(s) between the tokens. >> >>/Per W >> >>On Tue, 17 Aug 2004, Matt Valerio wrote: >> >> >> >> >> >>>Look up the fscanf() function. >>> >>>pseudo-code: >>>#include <stdio.h> >>> >>>char* first_name; >>>char* last_name; >>>int age; >>>FILE* in_file; >>>infile = fopen("data.txt","r"); >>>while ( !eof(infile) ) { >>> fscanf( infile, "%s\t%s\t%d\r", first_name, last_name, &age); >>> // do something with the first_name, last_name, and age variables >>> >>> >here. > > >>>} >>>close(infile); >>> >>> >>>I think that's right -- might want to double check all of the pointers >>>and stuff (the * and & operators). I'm just typing this off the top >>>of my head so double check the syntax. >>> >>>-Matt >>> >>> >>> >>> >>>wor...@so... wrote: >>> >>> >>> >>> >>> >>>>Hi all, >>>> >>>>Thank you in advance for any help that you can offer. >>>> >>>>I have a text file that has records like this: >>>> >>>>Firstname Lastname age //seperated by the \t character. >>>> >>>>I want to run a while loop and parse the record to populate a struct >>>> >>>> >array. > > >>>>I have looked into the getline(string, max, delimiter) function but it >>>> >>>> >needs char[]'s. > > >>>>Since I don't know the length of the string that I need can someone >>>>recommend an existing different class function or something? >>>> >>>>Best regards, >>>> >>>>Dane >>>> >>>> >>>>------------------------------------------------------- >>>>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank >>>>Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only >>>>$33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >>>>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >>>>_______________________________________________ >>>>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 >>>> >>>> >>>> >>>> >>>> >>>------------------------------------------------------- >>>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >>>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save >>>50% off Retail on Ink & Toner - Free Shipping and Free Gift. >>>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >>>_______________________________________________ >>>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 >>> >>> >>> >>> >>> >> >>------------------------------------------------------- >>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save >>50% off Retail on Ink & Toner - Free Shipping and Free Gift. >>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >>_______________________________________________ >>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 >> >> >> >> >> > > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk >Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off >Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >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: Per W. <pw...@ia...> - 2004-08-18 10:15:49
|
Using C for string manipulation isn't dangerous unless you don't know what to do. Same thing with using a hammer. Don't forget that the majority of all operating systems in existence uses C with great success. file >> first_name still gives you the possibility of loading a multi-megabyte text string, possibly exhausting the available memory. In reality, easy code is good when everything is already controlled, or you don't care about error behaviour. Production quality code normally need extra tests and protection. /Per W On Wed, 18 Aug 2004, [ISO-8859-15] OROSZI Bal=E1zs wrote: > Pascal wrote: > > Why not using the fully std c++ function like <cin> to manipulate > > string input in file? > > Indeed, that would be the simplest. Using C for string manipulation is ve= ry dangerous, and > awkward. Use the >> operator, like this: > > file >> first_name; > file >> last_name; > ... > > where "file" is an "ifstream" and "xxx_name" is a "string". > > -- > Greetings, > Bal=E1zs > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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: <or...@vp...> - 2004-08-18 09:07:25
|
Pascal wrote: > Why not using the fully std c++ function like <cin> to manipulate =20 > string input in file? Indeed, that would be the simplest. Using C for string manipulation is ve= ry dangerous, and=20 awkward. Use the >> operator, like this: file >> first_name; file >> last_name; ... where "file" is an "ifstream" and "xxx_name" is a "string". -- Greetings, Bal=E1zs |
|
From: Pascal <p.t...@ti...> - 2004-08-18 06:05:35
|
Why not using the fully std c++ function like <cin> to manipulate string input in file? |
|
From: <sud...@ya...> - 2004-08-18 04:22:58
|
Please unsundcribe me from this list. S.Dayal ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony |
|
From: Scott S. <age...@co...> - 2004-08-18 00:06:04
|
This is probably the smartest solution. I was going to suggest C
functions. Also, you can include <cstdio> instead of stdio.h. That will
include all of the C headers in namespace std.
Per Westermark wrote:
>Note 1: fscanf will not allocate any memory. first_name and last_name must
>already point to large enough memory buffers.
>
>Note 2: that scanf functions are a common road of buffer overflow attacks.
>If one of the names in the string is very long, it will overwrite
>unallocated memory. Whenever strings are loaded, a maximum field width
>should be specified in the formatting string!
>
>One other common method of loading text lines using C, i.e. without use of
>the string data type, is to load each text line with
> fgets(buf,sizeof(buf),file)
>and then use sscanf() on a sanitized string, or use strchr(), strtok() or
>similar to find the separator character(s) between the tokens.
>
>/Per W
>
>On Tue, 17 Aug 2004, Matt Valerio wrote:
>
>
>
>>Look up the fscanf() function.
>>
>>pseudo-code:
>>#include <stdio.h>
>>
>>char* first_name;
>>char* last_name;
>>int age;
>>FILE* in_file;
>>infile = fopen("data.txt","r");
>>while ( !eof(infile) ) {
>> fscanf( infile, "%s\t%s\t%d\r", first_name, last_name, &age);
>> // do something with the first_name, last_name, and age variables here.
>>}
>>close(infile);
>>
>>
>>I think that's right -- might want to double check all of the pointers
>>and stuff (the * and & operators). I'm just typing this off the top of
>>my head so double check the syntax.
>>
>>-Matt
>>
>>
>>
>>
>>wor...@so... wrote:
>>
>>
>>
>>>Hi all,
>>>
>>>Thank you in advance for any help that you can offer.
>>>
>>>I have a text file that has records like this:
>>>
>>>Firstname Lastname age //seperated by the \t character.
>>>
>>>I want to run a while loop and parse the record to populate a struct array.
>>>I have looked into the getline(string, max, delimiter) function but it needs char[]'s.
>>>Since I don't know the length of the string that I need can someone recommend
>>>an existing different class function or something?
>>>
>>>Best regards,
>>>
>>>Dane
>>>
>>>
>>>-------------------------------------------------------
>>>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
>>>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
>>>Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
>>>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
>>>_______________________________________________
>>>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
>>>
>>>
>>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
>>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
>>Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
>>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
>>_______________________________________________
>>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
>>
>>
>>
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
>Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
>_______________________________________________
>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: Per W. <pw...@ia...> - 2004-08-17 23:53:28
|
Note 1: fscanf will not allocate any memory. first_name and last_name must
already point to large enough memory buffers.
Note 2: that scanf functions are a common road of buffer overflow attacks.
If one of the names in the string is very long, it will overwrite
unallocated memory. Whenever strings are loaded, a maximum field width
should be specified in the formatting string!
One other common method of loading text lines using C, i.e. without use of
the string data type, is to load each text line with
fgets(buf,sizeof(buf),file)
and then use sscanf() on a sanitized string, or use strchr(), strtok() or
similar to find the separator character(s) between the tokens.
/Per W
On Tue, 17 Aug 2004, Matt Valerio wrote:
> Look up the fscanf() function.
>
> pseudo-code:
> #include <stdio.h>
>
> char* first_name;
> char* last_name;
> int age;
> FILE* in_file;
> infile = fopen("data.txt","r");
> while ( !eof(infile) ) {
> fscanf( infile, "%s\t%s\t%d\r", first_name, last_name, &age);
> // do something with the first_name, last_name, and age variables here.
> }
> close(infile);
>
>
> I think that's right -- might want to double check all of the pointers
> and stuff (the * and & operators). I'm just typing this off the top of
> my head so double check the syntax.
>
> -Matt
>
>
>
>
> wor...@so... wrote:
>
> > Hi all,
> >
> > Thank you in advance for any help that you can offer.
> >
> > I have a text file that has records like this:
> >
> > Firstname Lastname age //seperated by the \t character.
> >
> > I want to run a while loop and parse the record to populate a struct array.
> > I have looked into the getline(string, max, delimiter) function but it needs char[]'s.
> > Since I don't know the length of the string that I need can someone recommend
> > an existing different class function or something?
> >
> > Best regards,
> >
> > Dane
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> > _______________________________________________
> > 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
> >
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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: Per W. <pw...@ia...> - 2004-08-17 23:28:43
|
Short question. When changing to another CVS user, have you checked out the code again? Each directory of source code checked out from a CVS server has a subdirectory "CVS". In that directory, there is a file "Root" that specifies how to access the repository. That file remembers the name of the user checking out code, since CVS is built on the assumption that each user has his own working directory for making changes - the C in CVS stands for Concurrent. /Per W On Tue, 17 Aug 2004, Geoff Baker wrote: > On a colleagues computer I configured Dev-Cpp to use my username during a > commit of code. This worked correctly, however since that point in time we > have added some other users to the cvs server. Because of this I switched > Dev-cpp to use a new users name but it only uses it for the commit not for > the update, log.. etc. Is there a global setting to remove the old username > and replace it with a new one? > > > Thanks > > > > Geoff Baker > > Engineering Technologist > > VCom Inc. > > 150 Cardinal Place, Saskatoon Sask. Canada S7L 6H7 > > Phone: (306) 955-7075 Ext 489 Fax: (306) 955-9919 > > Web Page: <http://www.vcom.com/> > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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 V. <m-v...@on...> - 2004-08-17 23:15:48
|
Look up the fscanf() function.
pseudo-code:
#include <stdio.h>
char* first_name;
char* last_name;
int age;
FILE* in_file;
infile = fopen("data.txt","r");
while ( !eof(infile) ) {
fscanf( infile, "%s\t%s\t%d\r", first_name, last_name, &age);
// do something with the first_name, last_name, and age variables here.
}
close(infile);
I think that's right -- might want to double check all of the pointers
and stuff (the * and & operators). I'm just typing this off the top of
my head so double check the syntax.
-Matt
wor...@so... wrote:
> Hi all,
>
> Thank you in advance for any help that you can offer.
>
> I have a text file that has records like this:
>
> Firstname Lastname age //seperated by the \t character.
>
> I want to run a while loop and parse the record to populate a struct array.
> I have looked into the getline(string, max, delimiter) function but it needs char[]'s.
> Since I don't know the length of the string that I need can someone recommend
> an existing different class function or something?
>
> Best regards,
>
> Dane
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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: Reid T. <Rei...@at...> - 2004-08-17 23:01:18
|
Smitha V. Babu wrote: > hi, > Can anyone can tell me where i will get good shell scripting > tutorials regds smitha > ********************************************************************* > Disclaimer: The information in this e-mail and any=20 > attachments is confidential / privileged. It is intended > solely for the addressee or addressees. If you are not the > addressee indicated in this message, you may not copy or > deliver this message to anyone. In such case, you should > destroy this message and kindly notify the sender by reply > email. Please advise immediately if you or your employer does > not consent to Internet email for messages of this kind. > ********************************************************************* >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on > Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic > DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping > and Free Gift. http://www.shop4tech.com/z/Inkjet_Ca> > rtridges/9_108_r285=20 >=20 >=20 > _______________________________________________ > 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 google on shelldorado reid |
|
From: Per W. <pw...@ia...> - 2004-08-17 22:48:20
|
#pragma is a way to implement compiler-specific extensions to inform the
compiler about different things, such as activate/deactvate different
warnings etc. One problem with #pragma is that there are no standard for
supported parameters.
It is common practice for compilers to warn whenever they see a #pragma
that they don't support, to inform the developer that either the #pragma
isn't needed, needs to be changed to something else or specifies something
that the currently used compiler can not solve, i.e. maybe the actual code
must be rewritten.
You really should try to keep down on use of #pragma statements since they
may make your code non-portable. If you use a #pragma to suppress warnings
about unused parameters, most other compilers will not understand that
#pragma and will emit warnings about the unused parameters and possibly an
extra warning about the unknown #pragma.
Rewrite the function header as:
int main(int,char* argv[]) {
...
}
in case you really don't want to use argc but still want to avoid the
warning.
/Per W
On Tue, 17 Aug 2004, Marie Boulet wrote:
> Why does it ignore the pragma?
>
> C:/Documents and Settings/Jean Pierre/Bureau/No.c:9: warning: ignoring
> #pragma argc
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <dir.h>
>
> #pragma argc
> int main (int argc, char *argv[]){
>
> if(mkdir(argv[1]) == -1)
> printf("%s erreur.\n");
> else
> printf("%s ok.\n", argv[1]);
>
> return 0;
> }
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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: Geoff B. <Geo...@Vc...> - 2004-08-17 21:57:05
|
tsk tsk <insert sheepish grin> thanks for the information, that clears it up for me -----Original Message----- From: Per Westermark [mailto:pw...@ia...] Sent: August 17, 2004 3:29 PM To: Geoff Baker Cc: dev...@li... Subject: Re: [Dev-C++] CVS Username Short question. When changing to another CVS user, have you checked out the code again? Each directory of source code checked out from a CVS server has a subdirectory "CVS". In that directory, there is a file "Root" that specifies how to access the repository. That file remembers the name of the user checking out code, since CVS is built on the assumption that each user has his own working directory for making changes - the C in CVS stands for Concurrent. /Per W On Tue, 17 Aug 2004, Geoff Baker wrote: > On a colleagues computer I configured Dev-Cpp to use my username during a > commit of code. This worked correctly, however since that point in time we > have added some other users to the cvs server. Because of this I switched > Dev-cpp to use a new users name but it only uses it for the commit not for > the update, log.. etc. Is there a global setting to remove the old username > and replace it with a new one? > > > Thanks > > > > Geoff Baker > > Engineering Technologist > > VCom Inc. > > 150 Cardinal Place, Saskatoon Sask. Canada S7L 6H7 > > Phone: (306) 955-7075 Ext 489 Fax: (306) 955-9919 > > Web Page: <http://www.vcom.com/> > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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: Geoff B. <Geo...@Vc...> - 2004-08-17 20:03:44
|
On a colleagues computer I configured Dev-Cpp to use my username during a commit of code. This worked correctly, however since that point in time we have added some other users to the cvs server. Because of this I switched Dev-cpp to use a new users name but it only uses it for the commit not for the update, log.. etc. Is there a global setting to remove the old username and replace it with a new one? > Thanks > > Geoff Baker > Engineering Technologist > VCom Inc. > 150 Cardinal Place, Saskatoon Sask. Canada S7L 6H7 > Phone: (306) 955-7075 Ext 489 Fax: (306) 955-9919 > Web Page: <http://www.vcom.com/> > |
|
From: <wor...@so...> - 2004-08-17 19:30:40
|
Hi all, Thank you in advance for any help that you can offer. I have a text file that has records like this: Firstname Lastname age //seperated by the \t character. I want to run a while loop and parse the record to populate a struct array. I have looked into the getline(string, max, delimiter) function but it needs char[]'s. Since I don't know the length of the string that I need can someone recommend an existing different class function or something? Best regards, Dane |
|
From: Marie B. <ma...@vi...> - 2004-08-17 15:56:58
|
Why does it ignore the pragma?
C:/Documents and Settings/Jean Pierre/Bureau/No.c:9: warning: ignoring
#pragma argc
#include <stdio.h>
#include <stdlib.h>
#include <dir.h>
#pragma argc
int main (int argc, char *argv[]){
if(mkdir(argv[1]) == -1)
printf("%s erreur.\n");
else
printf("%s ok.\n", argv[1]);
return 0;
}
|
|
From: Smitha V. B. <smi...@so...> - 2004-08-17 12:13:11
|
hi, Can anyone can tell me where i will get good shell scripting tutorials regds smitha ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
|
From: xavier <x.p...@fr...> - 2004-08-16 21:17:57
|
Hi, I would like to SET variables to the windows system into my program : like "set tmp=c:\temp" under DOS I often use the getenv() function , but is there a "setenv()" equivalent. I noticed that win2k save is environment variables into registry. How canI simply "write" to the registry ? is there a function for ? xavier |
|
From: P.D. v. Z. <pd...@xs...> - 2004-08-16 20:47:40
|
It's not for C either. C has no such thing as an "iostream.h". The .h
versions of C++ standard headers are from the pre-standard days (and
from before namespaces). The standard versions of those headers have no
extensions, and in some cases have a slightly different name ("sstream"
instead of "strstream.h" for example). There are several reasons for the
header filename changes, one of which is to avoid confusion between the
C standard header "string.h" and the C++ one, "string" (the former
providing string manipulation functions, the latter providing the C++
std::string class).
Regards,
Paul
Alvin Thompson wrote:
> that header is only for c (not c++). use this instead for c++ code:
> #include <iostream>
>
> for c++, the standard header names are the same, minus the '.h' extension.
|
|
From: Daniel K. O. <dan...@ya...> - 2004-08-16 20:00:43
|
Abhijeet S wrote:
> #include <iostream.h>
The standard headers don't have .h.
> class string
> {
> private:
> char *str;
> public:
> void getstr()
> {
> cout<<"Enter the string : ";
std::cout
> cin>>str;
Two errors here.
1) Use std::cin.
2) str is a wild pointer; try alocating some memory first.
Daniel K. O.
|
|
From: Alvin T. <alv...@th...> - 2004-08-16 19:35:43
|
Abhijeet S wrote: > #include <iostream.h> that header is only for c (not c++). use this instead for c++ code: #include <iostream> for c++, the standard header names are the same, minus the '.h' extension. hth, alvin |
|
From: Reid T. <Rei...@at...> - 2004-08-16 18:06:11
|
Per Westermark wrote: > This might be a winner in the category: "Shortest problem description" >=20 > /Per W >=20 <joke> Dear Abhijeet S, see http://www.amazon.com/exec/obidos/tg/detail/-/0764501313/104-5423146-406 3115?v=3Dglance </joke> reid |
|
From: <kor...@in...> - 2004-08-16 17:36:53
|
saludos mas de alguno de la lista que tambien hable español or the list is only in english languaje ___________ José de Paz Escuintla, Guatemala tel. 502 - 4016859 |
|
From: Abhijeet S <abh...@ms...> - 2004-08-16 16:58:00
|
Hey Sorry about that earlier mail.. clicked on 'send' by mistake. _________________________________________________________________ Sports, sports and more sports! Keep up with all the action! http://www.msn.co.in/sports/ Stay connected with MSN Sports! |
|
From: Per W. <pw...@ia...> - 2004-08-16 16:53:05
|
This might be a winner in the category: "Shortest problem description" /Per W On Mon, 16 Aug 2004, Abhijeet S wrote: > > > _________________________________________________________________ > Sell what you don=92t Need. We help you Ship it out. > http://go.msnserver.com/IN/54179.asp Click Here! > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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 > |