Search:

Type: Posts; User: Munkey01

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,430

    What is the purpose of including cmath?

    What is the purpose of including cmath?
  2. Replies
    6
    Views
    1,620

    No, acually my problem was that I wasn't thinking...

    No, acually my problem was that I wasn't thinking of size() or length() has member functions. I was using them like-


    for (int i=0; i<size(sentence); i++)
    //and
    for (int j=0;...
  3. Replies
    6
    Views
    1,620

    I ment a string (the kind declared in...

    I ment a string (the kind declared in string...not a character array). So I just guessed you could figure it out.
  4. Replies
    6
    Views
    1,620

    Length of a string

    I am working on a challenge, and I need to find out how many characters are in a string. I have tried size() and length() but they both give me an error (undeclared identifier). But aren't those two...
  5. Thread: PassMak3r v2

    by Munkey01
    Replies
    8
    Views
    1,486

    I see what you are saying. Yep, that was a big...

    I see what you are saying. Yep, that was a big problem I didn't see. Thanks. I am just not good at error checking and debuging.
  6. Thread: PassMak3r v2

    by Munkey01
    Replies
    8
    Views
    1,486

    Thank you so much for your help. I added some...

    Thank you so much for your help. I added some code to make every array element null before getting the phrase and producing the acronym, so that fixed the acronym problem you pointed out. And the cin...
  7. Thread: PassMak3r v2

    by Munkey01
    Replies
    8
    Views
    1,486

    Thanks alot, that fixed that problem. Next one is...

    Thanks alot, that fixed that problem. Next one is that if the character enters 40 characters the program crashes, I added a cin.ignore after I call getline to make sure no extra characters carry...
  8. Thread: PassMak3r v2

    by Munkey01
    Replies
    8
    Views
    1,486

    PassMak3r v2

    In my second version of my program that will help create a secure password for the user I am attempting to have it create an acronym from a phrase that the user types in. One problem that I am having...
  9. Replies
    3
    Views
    1,021

    I don't know if you know any VB or not. But this...

    I don't know if you know any VB or not. But this might be of help. ;)
  10. Replies
    6
    Views
    3,129

    What don't you use using namespace std; ...

    What don't you use


    using namespace std;

    instead? But doing it your way would be better for learning since you will learn what namespace things belong to.
  11. Replies
    10
    Views
    1,580

    A nice reference is http://www.cppreference.com/ ...

    A nice reference is http://www.cppreference.com/


    The specific page for strstr() is here, http://www.cppreference.com/com/stdstring_details.html#strstr
  12. Replies
    10
    Views
    1,580

    if (com[0] == 'm' || (com[1] == 'n' && com[2] ==...

    if (com[0] == 'm' || (com[1] == 'n' && com[2] == 'o'))

    If com[0] equals 'm' or if com[1] equals 'n' and com[2] equals 'o,' then do what ever.
  13. Replies
    7
    Views
    1,962

    C++ introduced new and delete to replace malloc()...

    C++ introduced new and delete to replace malloc() and free(). So when using C++ just use new and delete, but in C these two are not avilable, so just use malloc() and free() when creating a C program.
  14. You don't even need to seed, but it is always a...

    You don't even need to seed, but it is always a good idea.



    #include <iostream>
    #include <cstdlib>

    int main()
    {
    for (int i=0; i < 10; i++)
  15. Replies
    8
    Views
    4,890

    I am not sure what POSIX is, I guess it is just...

    I am not sure what POSIX is, I guess it is just another standard? Anyways here are my plans for learning the C++ language-
    [list=1]
    Finish learning most of the language, basics, intermediate...
  16. Replies
    8
    Views
    4,890

    I will check out that book. You speak very highly...

    I will check out that book. You speak very highly of it. ;) I will also take a look at the other book mentioned.
  17. Replies
    8
    Views
    4,890

    Linux Socket Programming by Example

    Has anyone read this book? If so what did you think about it? Was it worth buying or is there a better book on the topic?
  18. Replies
    2
    Views
    1,341

    Inializing variables by commands

    How could you, for example, set the inode of a file to a variable?



    //something like this?
    a = system("ls -i text.txt");


    And also, since this is a Linux forum. How do you change your...
  19. Thread: goto

    by Munkey01
    Replies
    6
    Views
    1,828

    Usually goto statements can be replaced by some...

    Usually goto statements can be replaced by some type of loop (for, while, do..while).
  20. Thread: Password

    by Munkey01
    Replies
    15
    Views
    2,881

    gustavosserra, try something like- #include...

    gustavosserra, try something like-


    #include <iostream>
    #include <string>
    using namespace std;

    int main()
    {
    string hello="hello";
  21. Replies
    18
    Views
    3,929

    Look into isdigit(). Or you could look into...

    Look into isdigit(). Or you could look into isalpha().
  22. Replies
    12
    Views
    2,496

    Enter BIOS at start-up and look through it to see...

    Enter BIOS at start-up and look through it to see if it supports passwords.

    But creating the program for user verifacation qouldn't be hard but the only problem is that you would need to find a...
  23. Replies
    3
    Views
    1,249

    >Much easier then playing with vi. Hahaha, I...

    >Much easier then playing with vi.


    Hahaha, I hate Emacs, I don't really care for vi either, thats why I choose vim!!!
  24. CodeMonkey, I too am 14.

    CodeMonkey, I too am 14.
  25. Thread: tutorials

    by Munkey01
    Replies
    15
    Views
    2,359

    I think it would be a good thing, but not sure.

    I think it would be a good thing, but not sure.
Results 1 to 25 of 282
Page 1 of 12 1 2 3 4