Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionplaying with strings Pin
Yustme18-Sep-06 7:01
Yustme18-Sep-06 7:01 
AnswerRe: playing with strings Pin
Mohammad A Gdeisat18-Sep-06 7:22
Mohammad A Gdeisat18-Sep-06 7:22 
GeneralRe: playing with strings Pin
Yustme18-Sep-06 7:24
Yustme18-Sep-06 7:24 
GeneralRe: playing with strings Pin
Mohammad A Gdeisat18-Sep-06 7:35
Mohammad A Gdeisat18-Sep-06 7:35 
AnswerRe: playing with strings Pin
toxcct18-Sep-06 7:25
toxcct18-Sep-06 7:25 
AnswerRe: playing with strings Pin
Zac Howland18-Sep-06 7:27
Zac Howland18-Sep-06 7:27 
GeneralRe: playing with strings Pin
Yustme18-Sep-06 7:28
Yustme18-Sep-06 7:28 
GeneralRe: playing with strings Pin
Zac Howland18-Sep-06 7:40
Zac Howland18-Sep-06 7:40 
Yustme wrote:
Isnt this possible to do this with 2/3 for loops?


Possible? Yes. You can actually do it in 1 loop. I hardcoded the string for simplicity, but you can have that generated as well as print it to the screen all in 1 loop. However, there is no need to do so when you can use STL's built in algorithms to do it for you. Why write 15+ lines of code when 1 will suffice?

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: playing with strings Pin
Yustme18-Sep-06 7:54
Yustme18-Sep-06 7:54 
GeneralRe: playing with strings Pin
Zac Howland18-Sep-06 8:03
Zac Howland18-Sep-06 8:03 
AnswerRe: playing with strings Pin
David Crow18-Sep-06 7:37
David Crow18-Sep-06 7:37 
GeneralRe: playing with strings Pin
Yustme18-Sep-06 7:44
Yustme18-Sep-06 7:44 
GeneralRe: playing with strings Pin
David Crow18-Sep-06 8:19
David Crow18-Sep-06 8:19 
QuestionRGB Image capturing from a RGB Video Pin
bhargavbhalani18-Sep-06 6:45
bhargavbhalani18-Sep-06 6:45 
AnswerRe: RGB Image capturing from a RGB Video Pin
normanS18-Sep-06 19:50
normanS18-Sep-06 19:50 
QuestionWhy does the program crash when it enters a function? Pin
KaKa'18-Sep-06 6:35
KaKa'18-Sep-06 6:35 
QuestionRe: Why does the program crash when it enters a function? Pin
David Crow18-Sep-06 6:56
David Crow18-Sep-06 6:56 
AnswerRe: Why does the program crash when it enters a function? Pin
Nynaeve18-Sep-06 7:54
Nynaeve18-Sep-06 7:54 
AnswerRe: Why does the program crash when it enters a function? Pin
BlitzPackage18-Sep-06 9:14
BlitzPackage18-Sep-06 9:14 
AnswerRe: Why does the program crash when it enters a function? Pin
ThatsAlok18-Sep-06 18:53
ThatsAlok18-Sep-06 18:53 
AnswerRe: Why does the program crash when it enters a function? Pin
Hamid_RT18-Sep-06 19:43
Hamid_RT18-Sep-06 19:43 
AnswerRe: Why does the program crash when it enters a function? Pin
KaKa'20-Sep-06 6:43
KaKa'20-Sep-06 6:43 
QuestionHelp in conversion from C++ to VB6 Pin
Tomazas7718-Sep-06 6:33
Tomazas7718-Sep-06 6:33 
AnswerRe: Help in conversion from C++ to VB6 Pin
David Crow18-Sep-06 6:55
David Crow18-Sep-06 6:55 
GeneralRe: Help in conversion from C++ to VB6 Pin
Tomazas7719-Sep-06 6:45
Tomazas7719-Sep-06 6:45 

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.