Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Calibration in ATM machines Pin
celllllllll4-Aug-05 12:13
celllllllll4-Aug-05 12:13 
GeneralRe: Calibration in ATM machines Pin
celllllllll5-Aug-05 5:58
celllllllll5-Aug-05 5:58 
GeneralRe: Calibration in ATM machines Pin
GKarRacer5-Aug-05 10:11
GKarRacer5-Aug-05 10:11 
GeneralRe: Calibration in ATM machines Pin
celllllllll5-Aug-05 11:53
celllllllll5-Aug-05 11:53 
Generalproblem in CFtpConnection::OpenFile() Pin
Aditya Rao3-Aug-05 7:47
Aditya Rao3-Aug-05 7:47 
GeneralRe: problem in CFtpConnection::OpenFile() Pin
Anonymous3-Aug-05 12:13
Anonymous3-Aug-05 12:13 
Generalremoving spaces in string Pin
Anonymous3-Aug-05 7:39
Anonymous3-Aug-05 7:39 
GeneralRe: removing spaces in string Pin
David Crow3-Aug-05 7:52
David Crow3-Aug-05 7:52 
Sure. Several ways exist. One way looks like:

// shift every character to the left that is not a space
char str[] = "This string has spaces";
int x, y;
 
for (x = 0, y = 0; str[x] != '\0'; x++)
{
    if (' ' != str[x])
    {
        str[y] = str[x];
        y++;
    }
}
 
str[y] = '\0';



"One must learn from the bite of the fire to leave it alone." - Native American Proverb


GeneralRe: removing spaces in string Pin
Anonymous3-Aug-05 12:15
Anonymous3-Aug-05 12:15 
GeneralRe: removing spaces in string Pin
Jose Lamas Rios3-Aug-05 19:06
Jose Lamas Rios3-Aug-05 19:06 
GeneralRe: removing spaces in string Pin
David Crow7-Aug-05 8:15
David Crow7-Aug-05 8:15 
General,remove spaces in a string Pin
Anonymous3-Aug-05 7:38
Anonymous3-Aug-05 7:38 
GeneralRe: ,remove spaces in a string Pin
Chris Meech3-Aug-05 8:16
Chris Meech3-Aug-05 8:16 
GeneralSoapToolkit Pin
Ed K3-Aug-05 7:37
Ed K3-Aug-05 7:37 
GeneralRe: SoapToolkit Pin
basementman3-Aug-05 8:06
basementman3-Aug-05 8:06 
GeneralCCombo :( Pin
Smith#3-Aug-05 7:17
Smith#3-Aug-05 7:17 
GeneralRe: CCombo :( Pin
Marc Soleda3-Aug-05 7:30
Marc Soleda3-Aug-05 7:30 
QuestionHow can i send a command to cmd.exe? Pin
Lagwagon563-Aug-05 7:04
Lagwagon563-Aug-05 7:04 
AnswerRe: How can i send a command to cmd.exe? Pin
David Crow3-Aug-05 7:46
David Crow3-Aug-05 7:46 
AnswerRe: How can i send a command to cmd.exe? Pin
Gurra_Koo3-Aug-05 9:48
Gurra_Koo3-Aug-05 9:48 
GeneralRe: How can i send a command to cmd.exe? Pin
Lagwagon563-Aug-05 10:18
Lagwagon563-Aug-05 10:18 
GeneralRe: How can i send a command to cmd.exe? Pin
Gurra_Koo3-Aug-05 10:22
Gurra_Koo3-Aug-05 10:22 
GeneralRe: How can i send a command to cmd.exe? Pin
Lagwagon563-Aug-05 11:48
Lagwagon563-Aug-05 11:48 
GeneralRe: How can i send a command to cmd.exe? Pin
Gurra_Koo3-Aug-05 11:52
Gurra_Koo3-Aug-05 11:52 
GeneralRe: How can i send a command to cmd.exe? Pin
Lagwagon564-Aug-05 10:05
Lagwagon564-Aug-05 10:05 

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.