Click here to Skip to main content
16,004,927 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionWhich one is faster a fstream or FILE Pin
Member 52815520-Oct-05 20:22
Member 52815520-Oct-05 20:22 
AnswerRe: Which one is faster a fstream or FILE Pin
toxcct20-Oct-05 21:49
toxcct20-Oct-05 21:49 
GeneralRe: Which one is faster a fstream or FILE Pin
Member 52815520-Oct-05 22:36
Member 52815520-Oct-05 22:36 
AnswerRe: Which one is faster a fstream or FILE Pin
Nemanja Trifunovic22-Oct-05 5:26
Nemanja Trifunovic22-Oct-05 5:26 
AnswerRe: Which one is faster a fstream or FILE Pin
Christian Graus23-Oct-05 12:57
protectorChristian Graus23-Oct-05 12:57 
Questioncomparing directory contents Pin
mcmahoncm20-Oct-05 14:36
mcmahoncm20-Oct-05 14:36 
QuestionWhy Error??? Pin
ashok12320-Oct-05 10:05
ashok12320-Oct-05 10:05 
AnswerRe: Why Error??? Pin
Christian Graus20-Oct-05 10:15
protectorChristian Graus20-Oct-05 10:15 
ashok123 wrote:
char* in;


This sets aside the memory to store an address, but it does not actually create a block of memory to store your string to. You have a pointer, but it's not pointing to anything.

ashok123 wrote:
while(*in != ' ') //it crashes here


This code is wrong on a number of levels. First of all, it requires that the string have a space in it. Secondly, because you step by three further down, it assumes that the string will be either a space, or characters in a multiple of three, and then a space. The easiest way to solve all of this is to use std::string instead of a char *, and then use std::string's functions to check the contents of the string.



Christian Graus - Microsoft MVP - C++
GeneralRe: Why Error??? Pin
ashok12321-Oct-05 3:30
ashok12321-Oct-05 3:30 
QuestionCopy File Pin
ferhattt8420-Oct-05 9:02
ferhattt8420-Oct-05 9:02 
AnswerRe: Copy File Pin
Christian Graus20-Oct-05 10:12
protectorChristian Graus20-Oct-05 10:12 
QuestionRemoveAt() is growing a queue Pin
CaCaPe20-Oct-05 8:50
CaCaPe20-Oct-05 8:50 
AnswerRe: RemoveAt() is growing a queue Pin
Christian Graus20-Oct-05 10:22
protectorChristian Graus20-Oct-05 10:22 
QuestionPlease Help Me for HDD serial no read Pin
ferhattt8420-Oct-05 8:46
ferhattt8420-Oct-05 8:46 
QuestionScreen Resolution calculus Pin
Alex Cutovoi20-Oct-05 8:38
Alex Cutovoi20-Oct-05 8:38 
AnswerRe: Screen Resolution calculus Pin
Christian Graus20-Oct-05 10:24
protectorChristian Graus20-Oct-05 10:24 
GeneralRe: Screen Resolution calculus Pin
Alex Cutovoi21-Oct-05 1:59
Alex Cutovoi21-Oct-05 1:59 
GeneralRe: Screen Resolution calculus Pin
ben0909022-Oct-05 4:57
ben0909022-Oct-05 4:57 
GeneralRe: Screen Resolution calculus Pin
Alex Cutovoi23-Oct-05 11:01
Alex Cutovoi23-Oct-05 11:01 
Questionsorting arrrays Pin
gunwinder20-Oct-05 2:45
sussgunwinder20-Oct-05 2:45 
AnswerRe: sorting arrrays Pin
toxcct20-Oct-05 3:57
toxcct20-Oct-05 3:57 
QuestionDetection of the keyboard ? Pin
P.Pronk20-Oct-05 0:16
P.Pronk20-Oct-05 0:16 
Questioninitializer for arrays Pin
Nishad S19-Oct-05 19:23
Nishad S19-Oct-05 19:23 
AnswerRe: initializer for arrays Pin
Johann Gerell19-Oct-05 20:17
Johann Gerell19-Oct-05 20:17 
AnswerRe: initializer for arrays Pin
prasad_som19-Oct-05 20:26
prasad_som19-Oct-05 20:26 

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.