473,513 Members | 7,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

0day n00b question ;)

I would like to make an exe that parses the given info behind a exe to
a txt anyone who can confirm this don't know why but the thing just
freezes ??

0 errors on compile ?

// start source code <filename sparse.ccp>

// writing on a text file
#include <fstream.h>
#include <iostream.h>

int main () {
// set the parse file
ofstream sparsefile ("service.txt");
if (sparsefile.is_open())
{
int a;
int b;
int c;
int d;
int e;
int f;
cin >> a >> b >> c >> d >> e >> f;
sparsefile << a << "\n";
sparsefile << b << "\n";
sparsefile << c << "\n";
sparsefile << "\n";
sparsefile << d << "\n";
sparsefile << e << "\n";
sparsefile << f << "\n";
sparsefile << "<END>";
sparsefile.close();
}
return 0;
}

// end source code
Nov 13 '05 #1
5 1728
On 9 Aug 2003 03:21:37 -0700
of******@yahoo.com (Ofloo) wrote:
I would like to make an exe that parses the given info behind a exe to
a txt anyone who can confirm this don't know why but the thing just
freezes ??
The standard says nothing about that 'exe' you keep talking about. And I don't
really understand what you mean, try rephrasing before posting it elsewhere.
0 errors on compile ?
What?
// start source code <filename sparse.ccp> <snip c++ source> // end source code


This is a newsgroup about Standard C, Not C++. Try comp.lang.c++.

--
char*x(c,k,s)char*k,*s;{if(!k)return*s-36?x(0,0,s+1):s;if(s)if(*s)c=10+(c?(x(
c,k,0),x(c,k+=*s-c,s+1),*k):(x(*s,k,s+1),0));else c=10;printf(&x(~0,0,k)[c-~-
c+"1"[~c<-c]],c);}main(){x(0,"^[kXc6]dn_eaoh$%c","-34*1'.+(,03#;+,)/'///*");}
Nov 13 '05 #2

"Ofloo" <of******@yahoo.com> wrote in message

cin >> a >> b >> c >> d >> e >> f;

This is a cin in comp.lang.c.

Nov 13 '05 #3

"Ofloo" <of******@yahoo.com> wrote in message
news:f9**************************@posting.google.c om...
I would like to make an exe that parses the given info behind a exe to
a txt anyone who can confirm this don't know why but the thing just
freezes ??

0 errors on compile ?

// start source code <filename sparse.ccp>

// writing on a text file
#include <fstream.h>
#include <iostream.h>

int main () {
// set the parse file
ofstream sparsefile ("service.txt");
if (sparsefile.is_open())
{
int a;
int b;
int c;
int d;
int e;
int f;
cin >> a >> b >> c >> d >> e >> f;
sparsefile << a << "\n";
sparsefile << b << "\n";
sparsefile << c << "\n";
sparsefile << "\n";
sparsefile << d << "\n";
sparsefile << e << "\n";
sparsefile << f << "\n";
sparsefile << "<END>";
sparsefile.close();
}
return 0;
}

// end source code


Ask in C++ group

--
Jeff
Nov 13 '05 #4
of******@yahoo.com (Ofloo) wrote in message news:<f9**************************@posting.google. com>...
I would like to make an exe that parses the given info behind a exe to
a txt anyone who can confirm this don't know why but the thing just
freezes ??

0 errors on compile ?


try asking this in comp.lang.c++
<snipped OT c++ code>

hth

goose,
I'm going to start programming in C++ again Real Soon Now(tm)
Nov 13 '05 #5
of******@yahoo.com (Ofloo) wrote:
# I would like to make an exe that parses the given info behind a exe to
# a txt anyone who can confirm this don't know why but the thing just
# freezes ??

What do you mean by "behind a exe"? Do you mean if you type in
quelque-chose.exe 1 3 4 7 11 18
that you want to get the numbers 1, 3, 4, 7, 11, and 18?
If so, use
int main(int argc, char **argv)
and the command line arguments will be described by argc and argv
in a system specific fashion.

# int main () {

# cin >> a >> b >> c >> d >> e >> f;

This wants to read from stdin. Until it gets an eof or the expected input,
it will wait.

--
Derk Gwen http://derkgwen.250free.com/html/index.html
Don't say anything. Especially you.
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1772
by: Matt | last post by:
I'd like to overwrite just one line of a binary file, based on a position set by seek(). Is there no way to do this? As far as I can tell I need to read the whole file, change the line, and write...
3
1521
by: Anupam Kapoor | last post by:
hi all, a python n00b, so please bear with me. i have a simple question: i generally name python sources as a-simple-python-example.py. when i try to import a module named as above, i...
1
1522
by: newgenre | last post by:
I am using a pre-built package of code for my site, which is called EasyDisc. All it does is it creates an interactive forum on your site, like any forum you see anywhere. I am having a problem...
2
1460
by: ducky | last post by:
Hi all, The only programming experience i have under my belt so far is VB. I'm just starting out on C++ and wonder if anybody suggests and good (free) starting points for me to get going. I'm...
4
10120
by: onefry | last post by:
Hey I have this prog that i'm working on, starting my first c++ class and kind of a n00b to programming here it is #include <iostream> #include <cstdlib> using namespace std;
6
1493
by: Charles | last post by:
I am learning from the Accelerated C++ book. The following example doesn't work and I don't know why: #include <iostream> #include <string> int main () { const std::string exclam = "!"; const...
8
1410
by: HardHackz | last post by:
Hey, I'm trying to learn C++, the problem is, when I do cout << "Hello World!"; it always opens dos and closes it to quickly to see...i know im a total n00b, but any help?
0
1125
by: hockeyjk | last post by:
All, I'm writing a program that creates a histogram of data. IDLE is freezing up after the window opens (doesn't prompt user or graph anything). The window that opens is named "tk" rather than...
2
4207
by: benwah1983 | last post by:
Greetings, Here is my problem: The following code shows a div with two small nested divs (images with a title), then the div is closed. Another one opens and a "random text" is displayed. <div...
0
7254
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.