int input(int * counts, int * words) { int characters; int a; char ch; char before = 'b'; puts("Please enter some text and enter control-z when finished"); ...
5330
Cartman
specialb@...
May 1, 2001 8:07 am
Does anyone know how to read an entire line from a file using something with ifstream in("input.dat")? Thanks Bryan...
5331
Matthews, John
john.matthews@...
May 1, 2001 8:16 am
Right- although you can get the > into your DOS program in if you enclose the arguments in "" eg. mytype file mytype "file > prn" (argv[1] = "file > prn") ...
5332
Matthews, John
john.matthews@...
May 1, 2001 8:16 am
Hi Jocelyn I don't know if this is a typo when sending the mail: void output(int * counts, int words, int characters) { int a; for (a = 0; a<13; a++) ...
5333
Paul Herring
paulh@...
May 1, 2001 8:42 am
From: Rosinaldo Lima [mailto:rosinaldo__lima@...] ... What about typedefs? ;) typedef struct _NODE{ struct _NODE* next; struct _NODE* prev; void* data; ...
5334
Paul Herring
paulh@...
May 1, 2001 8:42 am
From: Santiago Valdarrama [mailto:svpino@...] ... You asked for the common error - I beleive I pointed it out by saying you didn't define main as...
5335
John Matthews
john.matthews@...
May 1, 2001 9:56 am
Somehow this got overtaken by my previous mail; the output() in that supercedes this version. John ... the 'flexibility39; of...
5336
Victor A. Wagner, Jr.
vawjr@...
May 1, 2001 12:09 pm
do you have the docs on getline(char*, int, char) ?? Seems that it ought to do the trick. ... Victor A. Wagner, Jr. PGP RSA fingerprint = 4D20 EBF6 0101 B069...
5337
Duxie D
innercircle3000@...
May 1, 2001 12:47 pm
hi if i am using c under win32 is it possible to gather system information e.g. computers name, i.p. address, user logged on and other general data. i am using...
5338
Bunyan, Toby
tbunyan@...
May 1, 2001 2:23 pm
If you are using a 'real 8bit DOS based' compiler I think its very unlikely. The only real way to do this is through Win32 API (which wont work with a legacy 8...
5339
Bunyan, Toby
tbunyan@...
May 1, 2001 2:23 pm
8-bit? <cough-hack-cough> I meant, of course, 16 bit... <ahem> ... From: Bunyan, Toby Sent: 01 May 2001 13:49 To: 'c-prog@yahoogroups.com' Subject: RE:...
5340
Tara Wright
ImacBabe@...
May 1, 2001 2:51 pm
Hi all, I've created a program that will accept a fraction that comprises of two integer values seperated by a slash and convert it to a decimal value. i.e. ...
5341
Chung, Moon
MChung@...
May 1, 2001 4:11 pm
Michael, You can use gethostname() and gethostbyname() for computer name and ip address. I hope that these two functions are available in your compiler. Moon...
5342
Raphlistes@...
May 1, 2001 4:35 pm
Hello everybody. I'i like to use an array of strings in one of my program but I don't manage ! I declare it: "char * array_strings[5];" Later in my program,...
5343
Shyan Lam
lam@...
May 1, 2001 6:06 pm
You should be able to call any Win32 API regardless whether you're program in C or C++. Here are some of the APIs you could use: GetComputerName() - Retrieve...
5344
Paul Herring
paulh@...
May 1, 2001 6:15 pm
From: Tara Wright [mailto:ImacBabe@...] ... main always returns int :) ... I beleive this would rely on someone entering (e.g.): 1, /, 2 try something...
5345
Shyan Lam
lam@...
May 1, 2001 6:35 pm
Hi, If I understand you correctly, as long as in your program, you send your output to stdout, the shell will redirect all stdout to the specified target. What...
5346
Matthews, John
john.matthews@...
May 1, 2001 6:56 pm
Hi Tara I think the code is OK (although I haven't tried it), apart from: The commas in the scanf() format string- this tells the compiler to look for commas...
5347
Mike Barrett
mikebarrett@...
May 1, 2001 8:31 pm
Does anybody know of any sites that will teach me how to program graphics using Borlands graphics.h? Mike Barrett aka Desecra "By 2002, approximately 19...
5348
Hadi Ariwibowo
hadi_a@...
May 1, 2001 9:51 pm
... From: Raphlistes@... <Raphlistes@...> ... manage ! ... array, ... First, I suggest you to do these steps : array_strings[1] = new char[10]; //...
5349
Daniel Hofmann
hofmanndaniel@...
May 1, 2001 11:28 pm
your problem is: you only declare an array of *pointers* to char, not an array of pointers to *arrays of char*. that means: you do not allocate (reserve)...
5350
americanguy234@...
May 2, 2001 12:16 am
I cant believe no one can answer my Initializer List question, does anyone know anything about initializer lists!!??...
5351
Koldychev
kirina@...
May 2, 2001 12:50 am
At 01:10 AM 30/04/01 -0500, you wrote: Thanks. I'll look around for the gutenberg project website. ... Mike Koldychev (...
5352
Koldychev
kirina@...
May 2, 2001 12:51 am
At 10:59 AM 30/04/01 -0500, you wrote: No problem...
5353
atrejo@...
May 2, 2001 1:22 am
Here we will write an implementation of a Monte Carlo algorithm for calculating pi. The algorithm works based on the formula for the area of a circle. Imagine...
5354
Thomas Scott Powell
scottpow@...
May 2, 2001 1:26 am
Hello, I have been working on a simple calculator for a school project and I have hit a dead end on trying to calculate the square root of a number. My logic...
5355
Koldychev
kirina@...
May 2, 2001 1:56 am
Hello, Can somebody tell me how to generate random numbers that are of certain range (ex. random numbers from 0-100). rand() function is not good because it...
5356
Victor A. Wagner, Jr.
vawjr@...
May 2, 2001 3:42 am
At Tuesday 2001/05/01 01:03, you wrote: [deleted] ... what is "a"?? I can see it's defined as an int, but no value has ever been assigned to it. ... again...
5357
Rocky Dean Pulley
rpulley@...
May 2, 2001 3:57 am
Is it a win32 or a dos application? If it's Win32, you can easily do all of that using windows APIs, to start, look at GetComputerName(), and GetHostName() ......
5358
Thomas J. Hruska
shinelight@...
May 2, 2001 4:04 am
... Have you tried 'stdprn39;? fprintf(stdprn, "Hi!\n"); Thomas J. Hruska -- shinelight@... Shining Light Productions -- "Meeting the needs of fellow...