Click here to Skip to main content
15,916,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnKeyDown Call Dialog Pin
JennK24-Jan-07 3:50
JennK24-Jan-07 3:50 
QuestionHow to get refernce count on file handle Pin
pavan_sw24-Jan-07 1:00
pavan_sw24-Jan-07 1:00 
AnswerRe: How to get refernce count on file handle Pin
KarstenK24-Jan-07 2:28
mveKarstenK24-Jan-07 2:28 
AnswerRe: How to get refernce count on file handle Pin
Mark Salsbery24-Jan-07 6:09
Mark Salsbery24-Jan-07 6:09 
Questionneed help in computer graphics.. Pin
makaveli_0724-Jan-07 0:54
makaveli_0724-Jan-07 0:54 
AnswerRe: need help in computer graphics.. Pin
El Corazon24-Jan-07 1:51
El Corazon24-Jan-07 1:51 
QuestionDrawing unicode text in a dialog window Pin
Jogeboy24-Jan-07 0:41
Jogeboy24-Jan-07 0:41 
Questioncstring Pin
zoobiskuit24-Jan-07 0:35
zoobiskuit24-Jan-07 0:35 
i have an assignent to read txt from a file and then remove the extra spaces in the txt. so far i can open the file and display the text. i can't come up with a way of removing the spaces. i have been advised so far to either use strcmp, which i am not sure where that is going to get me, and to 'assign' the individual text to an array and then rejoin the array without the spaces. i firstly don't know how to assign the text to an array. when i try i get an error when compiling saying that i can't convert from 'string' to 'const char*'. can someone please help. i am new so please be gentle.
my code so far:
#include <iostream>
#include <fstream>
#include <string>

using std::cout;
using std::endl;
using std::string;
using std::getline;

int main ()
{
string myStringErrors;

std::ifstream file("Lab1.txt"); //name of orignal file

if (!file)
{
std::cerr<<"Can't open file"<
AnswerRe: cstring Pin
toxcct24-Jan-07 0:39
toxcct24-Jan-07 0:39 
GeneralRe: cstring Pin
zoobiskuit24-Jan-07 1:15
zoobiskuit24-Jan-07 1:15 
GeneralRe: cstring Pin
toxcct24-Jan-07 1:36
toxcct24-Jan-07 1:36 
GeneralRe: cstring Pin
zoobiskuit24-Jan-07 2:10
zoobiskuit24-Jan-07 2:10 
AnswerRe: cstring [modified] Pin
jhwurmbach24-Jan-07 1:16
jhwurmbach24-Jan-07 1:16 
GeneralRe: cstring Pin
S Douglas24-Jan-07 1:31
professionalS Douglas24-Jan-07 1:31 
QuestionHow do i compile a cpp program using cl.exe ? Pin
Sakthiu24-Jan-07 0:27
Sakthiu24-Jan-07 0:27 
AnswerRe: How do i compile a cpp program using cl.exe ? Pin
toxcct24-Jan-07 0:34
toxcct24-Jan-07 0:34 
GeneralRe: How do i compile a cpp program using cl.exe ? Pin
Sakthiu24-Jan-07 0:42
Sakthiu24-Jan-07 0:42 
GeneralRe: How do i compile a cpp program using cl.exe ? Pin
toxcct24-Jan-07 0:43
toxcct24-Jan-07 0:43 
GeneralRe: How do i compile a cpp program using cl.exe ? Pin
Sakthiu24-Jan-07 1:03
Sakthiu24-Jan-07 1:03 
GeneralRe: How do i compile a cpp program using cl.exe ? Pin
toxcct24-Jan-07 1:37
toxcct24-Jan-07 1:37 
AnswerRe: How do i compile a cpp program using cl.exe ? Pin
David Crow24-Jan-07 4:27
David Crow24-Jan-07 4:27 
Questionhelp in win32 for communication between child dialogs [modified] Pin
amitmistry_petlad 24-Jan-07 0:05
amitmistry_petlad 24-Jan-07 0:05 
Question[GDI] x-offset when using Graphics::DrawString(...) [modified] Pin
_NielsB24-Jan-07 0:01
_NielsB24-Jan-07 0:01 
QuestionRe: [GDI] x-offset when using Graphics::DrawString(...) Pin
Mark Salsbery24-Jan-07 6:24
Mark Salsbery24-Jan-07 6:24 
AnswerRe: [GDI] x-offset when using Graphics::DrawString(...) Pin
_NielsB25-Jan-07 0:58
_NielsB25-Jan-07 0:58 

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.