Search:

Type: Posts; User: linuxgeek

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,688

    Thank you!!!! I owe you a beer.

    Thank you!!!! I owe you a beer.
  2. Replies
    9
    Views
    1,688

    When you use the ANSI string class you can do a...

    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...
  3. Replies
    9
    Views
    1,688

    The replace function was used just as an example....

    The replace function was used just as an example. I guess I'm not explaining it clear enough.
  4. Replies
    9
    Views
    1,688

    Further clarification

    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.
  5. Replies
    9
    Views
    1,688

    Silly Class Question

    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
  6. Replies
    29
    Views
    2,990

    Try mounting with the "noatime" option. Even...

    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.
  7. Replies
    4
    Views
    1,220

    Linux doesn't commit it's filesystem changes...

    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...
  8. Replies
    10
    Views
    1,191

    Nope, %4 will give 0,1,2,3. Modulus is the...

    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...
  9. Thread: Xor Problem

    by linuxgeek
    Replies
    5
    Views
    1,244

    You need to to handle zero results ('A' xor 'A' =...

    You need to to handle zero results ('A' xor 'A' = 0). These zeros will mess up your string length.
  10. Thread: vim

    by linuxgeek
    Replies
    4
    Views
    1,352

    Ahh, my mistake. The setting you want is...

    Ahh, my mistake. The setting you want is "shiftwidth". Same syntax.
  11. Replies
    11
    Views
    2,341

    Send me your /etc/XF86Config-4 file and I will...

    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.
  12. Thread: vim

    by linuxgeek
    Replies
    4
    Views
    1,352

    In your vimrc file, "set tabstop=n" where n is...

    In your vimrc file, "set tabstop=n" where n is the width you want.

    Or while editing, ":set tabstop=n"
  13. Replies
    14
    Views
    2,893

    --> In VB6, it's ~20k Don't forget the VB...

    --> 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.
  14. Replies
    17
    Views
    4,421

    I've had good luck with toothpaste and a cotton...

    I've had good luck with toothpaste and a cotton ball. If the back of the CD is scratched, you're SOL.
  15. Replies
    12
    Views
    3,589

    How about: bool isPrime(int prime) { if...

    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...
  16. Replies
    8
    Views
    1,285

    It only changes the capitalization to match way...

    It only changes the capitalization to match way you declared them.

    I can't believe I'm defending an M$ product . . .
  17. Replies
    7
    Views
    1,576

    Try flushing the stdout buffer with a

    Try flushing the stdout buffer with a << endl; in your output.
  18. Replies
    8
    Views
    1,285

    Whenever I have to develop for Windows (gasp) I...

    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...
Results 1 to 18 of 18