Thank you!!!! I owe you a beer.
Type: Posts; User: linuxgeek
Thank you!!!! I owe you a beer.
When you use the ANSI string class you can do a 'string stringname="text"'
Using that string you can do things like "stringname.insert(foo)" and "stringname.erase(foo)". Of course foo isn't...
The replace function was used just as an example. I guess I'm not explaining it clear enough.
You know how you can do a
string somestring = "Hello there";
somestring.replace(4, 2, "xx");
I want to know how they are able to do that.
How do you create a class where the base object can be assigned a value?
I'd like to do something like:
class number{
public:
blah blah blah
Try mounting with the "noatime" option. Even though you aren't writing anything to the disk, the system may be writing the access times for any files you use.
Linux doesn't commit it's filesystem changes right away. This is very obvious when using removable media. You could try issuing the command "update" from a shell to force a filesystem flush. You...
Nope, %4 will give 0,1,2,3. Modulus is the remainder of the fraction.
1/4 = 0 with 1 as the modulus
2/4 = 0 with 2 as the modulus
3/4 = 0 with 3 as the modulus
4/4 = 1 with 0 as the...
You need to to handle zero results ('A' xor 'A' = 0). These zeros will mess up your string length.
Ahh, my mistake. The setting you want is "shiftwidth". Same syntax.
Send me your /etc/XF86Config-4 file and I will take a look at it. If that file doesn't exist, send the /etc/XF86Config file.
In your vimrc file, "set tabstop=n" where n is the width you want.
Or while editing, ":set tabstop=n"
--> In VB6, it's ~20k
Don't forget the VB runtimes! The VC program is actually an executable whereas the VB program is heavilly linked to the runtimes.
I've had good luck with toothpaste and a cotton ball. If the back of the CD is scratched, you're SOL.
How about:
bool isPrime(int prime) {
if (prime == 2) return true; // We know 2 is a prime
if (prime % 2 ==0) return false; //Since we're starting at 3 int the loop
for(int i = 3; i...
It only changes the capitalization to match way you declared them.
I can't believe I'm defending an M$ product . . .
Try flushing the stdout buffer with a << endl; in your output.
Whenever I have to develop for Windows (gasp) I prefer the Borland products. The only thing I've seen with Visual Studio that I wish Borland would implement is the auto-capitalization of variables...