Click here to Skip to main content
15,909,437 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: erase contents of a progressbar Pin
prasad_som10-Mar-07 17:58
prasad_som10-Mar-07 17:58 
AnswerRe: erase contents of a progressbar Pin
Mark Salsbery9-Mar-07 11:59
Mark Salsbery9-Mar-07 11:59 
QuestionHow to move the IME window? Pin
Super Lloyd8-Mar-07 14:18
Super Lloyd8-Mar-07 14:18 
QuestionlistView Pin
abbd8-Mar-07 9:54
abbd8-Mar-07 9:54 
AnswerRe: listView Pin
Mark Salsbery8-Mar-07 10:22
Mark Salsbery8-Mar-07 10:22 
GeneralRe: listView Pin
George L. Jackson8-Mar-07 13:03
George L. Jackson8-Mar-07 13:03 
GeneralRe: listView Pin
Mark Salsbery8-Mar-07 15:12
Mark Salsbery8-Mar-07 15:12 
QuestionComparing values Pin
Herboren7-Mar-07 22:14
Herboren7-Mar-07 22:14 
Hey guys, it has been a while /cry. I seem to be having some issues with comparing values in a file, such as finding the highest value in a file in mixed order and outputting to a file in correct order. I have a file created with the following text 4,3,1,2, my object is to find the highest value then output to a file in correct orsder to 1,2,3,4. This is all I have and I am a little rusty cause it has been a while:

// iofilecomp.cpp : Defines the entry point for the console application.
// iofilecomp.cpp : Explains how to copy the contents from one file to another.
//

#include "stdafx.h"
#include <conio.h>
#include <string>
#include <fstream>

using namespace std;


int _tmain(int argc, _TCHAR* argv[])
{
ifstream ins; //reads from file
ofstream ous; //writes to file
ins.open("in.dat");
ous.open("ou.dat");
string line;

if( ins.is_open )
{
while ( ! ins.eof() )
{
getline(ins, line);
cout << line << endl;
}
ins.close();
}

else cout << "Unable to open file.";

ous.close();
_getch();
return 0;
}

The above will only output in the order read from the file. Possibly could I get some assistance or pointed in the right direction please. Thank you. Smile | :)
AnswerRe: Comparing values Pin
prasad_som7-Mar-07 22:31
prasad_som7-Mar-07 22:31 
GeneralRe: Comparing values Pin
Herboren8-Mar-07 9:27
Herboren8-Mar-07 9:27 
GeneralRe: Comparing values Pin
George L. Jackson8-Mar-07 13:16
George L. Jackson8-Mar-07 13:16 
QuestionCeate an executable [modified] Pin
abbd7-Mar-07 11:06
abbd7-Mar-07 11:06 
AnswerRe: Ceate an executable Pin
George L. Jackson7-Mar-07 12:53
George L. Jackson7-Mar-07 12:53 
QuestionHow to execute another application Pin
abbd7-Mar-07 5:03
abbd7-Mar-07 5:03 
AnswerRe: How to execute another application Pin
Nish Nishant7-Mar-07 5:16
sitebuilderNish Nishant7-Mar-07 5:16 
AnswerRe: How to execute another application Pin
led mike7-Mar-07 5:18
led mike7-Mar-07 5:18 
AnswerRe: How to execute another application [modified] Pin
darkcloud.42o9-Mar-07 23:12
darkcloud.42o9-Mar-07 23:12 
QuestionRequested registry access is not allowed. Pin
abbd7-Mar-07 4:31
abbd7-Mar-07 4:31 
AnswerRe: Requested registry access is not allowed. Pin
Nish Nishant7-Mar-07 5:17
sitebuilderNish Nishant7-Mar-07 5:17 
GeneralRe: Requested registry access is not allowed. Pin
abbd7-Mar-07 5:52
abbd7-Mar-07 5:52 
GeneralRe: Requested registry access is not allowed. Pin
Nish Nishant7-Mar-07 5:56
sitebuilderNish Nishant7-Mar-07 5:56 
GeneralRe: Requested registry access is not allowed. Pin
abbd7-Mar-07 6:24
abbd7-Mar-07 6:24 
GeneralRe: Requested registry access is not allowed. Pin
abbd8-Mar-07 3:54
abbd8-Mar-07 3:54 
Questiongood refrence for c++ Pin
faradgi6-Mar-07 10:59
faradgi6-Mar-07 10:59 
AnswerRe: good refrence for c++ Pin
George L. Jackson6-Mar-07 16:46
George L. Jackson6-Mar-07 16:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.