Hey all,
Thanks for everyone's help.
I finally got the thing working:
it reads and appends the list fine.
Thanks again!
Type: Posts; User: deleeuw
Hey all,
Thanks for everyone's help.
I finally got the thing working:
it reads and appends the list fine.
Thanks again!
OK--Stupid Question:
what is a "c_string"?
BTW--Thanks for the code:
the ios::app worked!
yes,
I'm trying to compare x to sob.
Thx`
Hey all,
I'm stumped! How do I convert
char X to std::string sob (see below)?
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
Hey all,
How does one append a new line to an existing text file?
The text file is basically a list
that gets items added to it on a regaular basis
Thanx all!
the itoa ([int], [char], 10) worked!
Hammer, is the file "out.txt" an ASCII file that one can read, or is it a binary?
The file that I need must be ascii, like an ini file.
THX
bennyandthejets is right. The integer (created by a random number generator) is "50", to be written to a text file as
"50"--in readable form.
char uq= int (u);
char eq= int (e);
char sq= int (s);
Ok, my amateurness is showing through:
I thought that is how one can type cast from int to char.
FILE *ci;
ci=fopen("c:\\vgastrat\\TESTcws.ini", "w");
int cc=rand()%40;
char ccq;
ccq= int (cc);
int u=rand()%500;
FILE *ci;
ci=fopen("c:\\vgastrat\\TESTcws.ini", "w");
int cc=rand()%40;
char ccq;
ccq= int (cc);
int u=rand()%500;
oops, forgot to add it:
FILE *ci;
ci=fopen("c:\\vgastrat\\TESTcws.ini", "w");
int cc=rand()%40;
char ccq;
ccq= int (cc);
int u=rand()%500;
int e=rand()%4;
int s=rand()%9;
hey all,
trying to do the following:
Write a string that has a row of characters, but these characters are supposed to from integers (but must be written as characters), and I get the following...
Ashesh, just curious, what other includes do you have besides
<iostream>?
Very cool! No bells and whistles, just a neat game. One question:
where's the README?
forgot to add:
The idea is that one can enter any html file to be searched, and that the links within may be of any number, and thus may not be known by the person doing the searching (hence, the...
Sorry for the lack of examples.
Suppose I have an html file that has two links:
<img src="vacation.jpg">
<a href="introduction.html">
I need to be able to seach through that file to find both...
waant ik niet goed hollandse kan:
mijn ouders kwam naar Amerika bevor ik was gebooren.
Ik heb duits op universitijt, maar mien ouders praoten hollandse (op drentse dialekt) t'huus.
hartelijke bedankt mijnheer
(Ik hope dat dat richtig geschrieven is!)
deleeuw
(van Drenthe)
new-b question:
what is the version of putw that is used for double
(it seems that putw is only for int)
Thx
Unregistered, thanks for the info.
777
hey all,
how do one convert an integer that a user has entered into a location is an existing 2-d array?
For example:
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
OK, got that.
But, it gets a little more complicated.
The array represents basically a game board. The comptuer "moves" 1 up, or 1 down, or 1 diagonally, etc. Obviously, the movement is based on...
hey all,
how do one convert an integer that a user has entered into a location is an existing 2-d array?
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>