Thanks, I ended up moving my getline before and after the loop. It works good now.
Type: Posts; User: ProLin
Thanks, I ended up moving my getline before and after the loop. It works good now.
You the Man!
Here is the complete test file. Thanks in advance.
#include <fstream> // For file i/o
#include <iomanip> // For cout manipulation
#include <iostream> // For cout
#include <stdlib.h> // For...
Can you tell me why it won't print my array to the screen? Compared to examples in my book, it should work. I don't get it.
if ((Prefix == "AA") && (Description == "MC"))
{...
Can someone look at my code and give me any idea why I'm getting abnormal program termination after the output is on the screen? It's just a simple program to open a file and then compare some...
Thanks, my prof said the same thing. It worked perfect.
error C2664: 'atoi' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *'
No user-defined-conversion...
Yes, I have tried numerous times to use these getline/substr commands. I will try your method and let you know the results. I appreciate your help.:p
Can anyone give me an example on the getline/subst commands?
Example:
123UM1BRIAN
123UH2BRIAN
124ZZ1MOSES
124UM2MOSES
125BH1ISHMAEL