Summary: Hello. I'm having some trouble with this string, well path. When the user of this program that I'm creating has entered a path to a picture, using an ...
Summary: Do you mean a particular string? Or whatever the last string happens to be? Big difference. ===================================== If at first you d...
Summary: hi guys.. This function does not work..I get some wierd messages. string getFirstName(vector set, int first, int last) { string max; if(first=...
Summary: Hi, I'd like to now how could you re-make a program that was using structs with Classes instead. The program read from a text file, which contains stu...
Summary: If you don't want to worry about string sizes, use STL. You'd have to use another variable: string is a type. #include #include string str; string...
Summary: ok the following is an assignment that im having problems with, i cant seem to know how to put more than one student, and overall im stuck! I'll appre...
Summary: Hi I need to find out how to query the last character in a string: Im querying if there is characters A or B or C as last char within string. scenario...
Summary: How do I strip the last 4 characters of a string? I've been trying to use substr, though since the length of what I want returned is variable, I don...
Summary: Simple, simple first you need a file stream #include <fstream> //if 6.0 use fstream.h using namespace std; int main() //i'm assuming this isn't a G...
Summary: Yea, I can probably do that if i knew the size of the string. But the user can enter a string of any size, and all I need to do is delete the last ele...
Summary: Hello- gurjit...Try reading the question again. What he really means is that he wants to find out the length of any substring of repeated characters ...
Summary: Well, here is the explanation : @a = split(/"/); ---------------- we split each line using the " as a delimiter, and save the result in the @a array; ...
Summary: Hey guys i have a project due in for my C++ class on monday and im almost finished and i just need some help on two issues. I am building an enigma ma...
Summary: Well, with sort /r i "reverse" the txt file so the last line will be on top, and output this to tmp.txt Then i just take the 1'st line in tmp.txt(whi...
Summary: Programming tip #1 - use meaningful variable names. Variable names like a, b, c, rrr went out of style 15 years ago. I see two problems. 1 - you ar...
Summary: Hehe.. It was late ye.. Well, i dont want a big txt file to be read. max 3lines would do just fine. I would then like to search for a string inside ...
Summary: Hey- there is a post almost exacly like this except its in VB, i need the answer for java. I have a textfield in my program that prompts the user to i...
Summary: hi, i want to know the how to write a c program to reverse a string without using string.h and its function. I knew that program as i did it in colleg...
Summary: All you need to do is use the header files without the .h extension, and to use the std namespace. The reason for leaving off the .h extenstion is be...
Summary: I have a list of computer serial numbers and their corresponding asset tags (taglist.txt). The list can be arranged any way to make this task easier (...
Summary: My fault. Third line in last reply should've been written: d_ptr = malloc(strlen(s_str) + 1); ,ensuring that extra space is granted for the ASCII nul...
Summary: So you know what i have upto now: a passwords.txt file with userids followed by a space then the passwords in the following format: user0001 password0...