Re: If Statement / Loopwhile advice Programming Software Development by Nick Evan To check is a char is a letter of the alphabet, you could use i[URL="http://www.cppreference.com/stdstring/isalpha.html"]salpha()[/URL] [URL="http://www.cppreference.com/stdstring/isdigit.html"]isdigit() [/URL]does the same for numbers Re: string to double Programming Software Development by WolfPack … error checking better use [URL="http://www.cppreference.com/stdstring/strtod.html"]strtod[/URL]. Just checking the value of… Re: using strtok() to populate and array Programming Software Development by WolfPack What have you tried so far? Why don't you modify the example shown [URL="http://www.cppreference.com/stdstring/strtok.html"]here[/URL]? Re: Type Conversion of User Input: Programming Software Development by WolfPack … to int is the [URL="http://www.cppreference.com/stdstring/strtol.html"]strtol [/URL]function. From the documentation you… Re: Validating data Programming Software Development by iamthwee …;exit")[b]==0[/b]) [url]http://www.cppreference.com/stdstring/strcmp.html[/url] Re: Swapping chars within an array Programming Software Development by iamthwee And you need strcmp. Use it like follows: [url]http://www.cppreference.com/stdstring/strcmp.html[/url] Re: Open Files with GetOpenFileName Programming Software Development by WolfPack Use the [strrchr function](http://www.cppreference.com/stdstring/strrchr.html) to search for the last occurrance of the … Re: Problem in sorting by name Programming Software Development by ~s.o.s~ … actual specification of the [URL="http://www.cppreference.com/stdstring/strcmp.html"]strcmp[/URL] function. Making your own functions… Re: Help needed asap Programming Software Development by ~s.o.s~ You are better off dumping [URL="http://www.gidnetwork.com/b-57.html"]gets[/URL] which will save you a lot of trouble in the future. Look into functions like [URL="http://www.cppreference.com/stdstring/strstr.html"]strstr[/URL] to ease your task. Oh, and btw, main returns in int. Re: Help needed asap Programming Software Development by IwalkAlone …. Look into functions like [URL="http://www.cppreference.com/stdstring/strstr.html"]strstr[/URL] to ease your task. Oh… Re: Help with indenting infile -> outfile paragraph... Programming Software Development by ~s.o.s~ … am talking about is [URL="http://www.cppreference.com/stdstring/isspace.html"]isspace().[/URL] [code=cplusplus] for(int i… Re: Finding matchin characers in strings Programming Software Development by Aia This link will guide you in many functions that deal with characters and string in C [URL]http://www.cppreference.com/stdstring/index.html[/URL] Re: a program for strstr Programming Software Development by ~s.o.s~ He didn't really mean it. As far as program is concerned, read [URL="http://www.cplusplus.com/reference/clibrary/cstring/strtok.html"]this[/URL], [URL="http://www.phim.unibe.ch/comp_doc/c_manual/C/EXAMPLES/strtok.c"]this[/URL] and[URL="http://www.cppreference.com/stdstring/strtok.html"] this.[/URL] Re: a program for strstr Programming Software Development by rati …"]this[/URL] and[URL="http://www.cppreference.com/stdstring/strtok.html"] this.[/URL][/quote] thanks :) Re: Alphabetizing Programming Software Development by Duoas …. You can use the [URL="http://www.cppreference.com/stdstring/strcmp.html"]strcmp()[/URL] function to compare strings instead… Re: C++ Programming Software Development by Lerner [url]http://www.cppreference.com/stdstring/strstr.html[/url] You could look at this site to see if it's an example of what you are trying to do. There is a convenient conversion from string to C style string if there isn't a similar method built into the string class. Re: strtoul() function use Programming Software Development by Duoas …. You forgot to use [URL="http://www.cppreference.com/stdstring/strtoul.html"]strtoul()[/URL]... You seem to have a… Re: Count characters of a string. Programming Software Development by WolfPack Use [URL="http://www.cppreference.com/stdstring/isspace.html"]isspace[/URL] for a check like this. [code=cpp] for(int i = 0; i < iLength; i++) { if(!isspace(strTemp.at(i))) { iSpace++; } } [/code] Re: Dynamically Reading Plaintext files into strings (or arrays, or whatever) Programming Software Development by Comrade Ogilvy I think that [url=http://www.cppreference.com/stdstring/strtok.html]strtok[/url] may be what you're after; [url=http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1061423302&id=1044780608]here's an example of its use[/url] that you may find useful. Re: Sorting 2d Array Programming Software Development by Duoas Use [URL="http://www.cppreference.com/stdstring/strcmp.html"]strcmp()[/URL] to compare the two strings. [… Re: Question about string manipulation Programming Software Development by Aia [URL="http://www.cppreference.com/stdstring/strstr.html"]strstr()[/URL] will help you to achieve that. Re: Please Help! Programming Software Development by Nick Evan assuming the number is inputted by the user: [code] get user input loop trough each character and look if it's a digit replace the character with * [/code] Have a look at the [URL="http://www.cppreference.com/stdstring/isdigit.html"]isdigit()[/URL] function Re: MSVC++ Express 8 error C2228 Programming Software Development by Ancient Dragon … -- Microsoft has declared many of the standard C functions from stdstring.h decpreciated (obsolete). The c and c++ standards say otherwise… Re: A C Program to sort two strings Programming Software Development by John A … identical to the original [URL="http://www.cppreference.com/stdstring/strcmp.html"]strcmp[/URL] funcition. Secondly, your getJunk() function… Re: Getting deeper into trouble! Programming Software Development by jonsca …://stackoverflow.com/questions/4205050/inheriting-and-overriding-functions-of-a-stdstring[/url] std::string is a typedef for a template class… Re: string conversion from mamaged to unmanaged code Programming Software Development by deceptikon [url]http://stackoverflow.com/questions/1300718/c-net-convert-systemstring-to-stdstring[/url] Re: C++ File Loop Problems Programming Software Development by nullptr … thread](http://www.daniweb.com/software-development/cpp/threads/442092/stdstring-as-argument-to-ifstream.open-). and is possible, though I… Re: Remove whitespace from file Programming Software Development by Dani … StackOverflow question](https://stackoverflow.com/questions/83439/remove-spaces-from-stdstring-in-c) the solution is `str.erase(remove_if(str.begin…