Search:

Type: Posts; User: cplusplusnoob

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. I'm confused. Are you saying I should define a...

    I'm confused. Are you saying I should define a string like


    string example = "This is random";


    than


    Apply_Msg(example);
  2. I will certainly do this. But, is what I'm...

    I will certainly do this.

    But, is what I'm trying to do even possible? Adding a stream of text into a string by using the parameters, such as:


    Speed_Msg("This will output anything typed here...
  3. @MK27 Thank you, that was very helpful!

    @MK27 Thank you, that was very helpful!
  4. I apologize for my writing effiency, it does need...

    I apologize for my writing effiency, it does need a tad refining. Yet, if your unable to read this program, than I suggest you go check out some of the tutorials on the cprogramming website. Alex...
  5. How to make this function work with cout statements?

    I have made a program which utilizes a loop to output a string character by character with a delay of 100 milliseconds inbetween, until, the user presses ENTER which speeds up the process by changing...
  6. Yeah, I did that.

    Yeah, I did that.
  7. Well thank you for commenting, I appreciate the...

    Well thank you for commenting, I appreciate the help. And, it's a pretty laid out question. I stated already I understood how memory is stored in the computer, but what I don't get is how the...
  8. Thanks for taking the time to look for a link...

    Thanks for taking the time to look for a link whiteflags, I really do appreciate it, but that video covers nothing about what I'm asking.
  9. Thanks guys, but again, I already know all that....

    Thanks guys, but again, I already know all that. What I'm asking is WHAT reads the bits/bytes and from there HOW does the computer know what to do. Someone had to preprogram the computer to know what...
  10. Need better explanation of how computers work?

    I understand computers store memory in bits/bytes through the use of circuits and switches, and the computer reads it through machine code a.k.a. "binary". But I still don't understand how the...
  11. Okay sweet... After a little thinking, I...

    Okay sweet... After a little thinking, I remembered I could put in a variable in the curly's of Sleep(). So I declared int x as 100 ( so x would be 100 millisec's), took away the clear system...
  12. I was able to transform my program into this: ...

    I was able to transform my program into this:



    #include <iostream>
    #include <string>
    #include <windows.h>


    using namespace std;
  13. Replies
    3
    Views
    3,566

    That's oogabooga for you haha... but he knows his...

    That's oogabooga for you haha... but he knows his stuff!
  14. How could I make my program switch Sleep() while enter is pressed?

    I was thinking of a small rpg to write for fun, and I stumbled upon a question... Here's the problem:



    #include <iostream>
    #include <string>
    #include <windows.h>

    using namespace std;
  15. Replies
    15
    Views
    26,642

    OH I SEE! Can the programmer himself manually...

    OH I SEE!

    Can the programmer himself manually define how many bits an int can hold (e.g. 6 bits, although that makes no sense and a waste of space, is that possible? Or is 'long' and 'short' the...
  16. Replies
    15
    Views
    26,642

    Well thank you for your help! And ofcourse thank...

    Well thank you for your help! And ofcourse thank you everyone else who helped! All of you are awesome, and very knowledgable, at what you do!

    So before I go let me get everything straight:
    ...
  17. Replies
    15
    Views
    26,642

    Thank you for you clarification, but how would...

    Thank you for you clarification, but how would you know how many bits your integer is?
  18. Replies
    15
    Views
    26,642

    Oh okay! Sorry I guess what I'm not...

    Oh okay!

    Sorry I guess what I'm not understanding is why would 'long int' be more portable than 'int'? Are we going into the bits and bytes?
  19. Replies
    15
    Views
    26,642

    I've heard people say that, but what are you...

    I've heard people say that, but what are you meaning by "portable".. Not the definition ofcourse, but WHAT is portable - the program?- and where would it be going?- Someone else's computer?
  20. Replies
    15
    Views
    26,642

    Difference between 'int' and 'long int'

    Okay so here's the description for 'int' and 'long int':

    They both take up 4 bytes. The signed and unsigned values of 'int' AND 'long int' is:

    int = -2147483648 to 2147483647; and 0 to...
  21. Why can't 'float' variables be assigned to signed or unsigned?

    I know the data types 'char','short','long', and 'int' can be signed or unsigned... but why can't 'float'? I don't see why not? But when I experiment with it on the compilier, an error occurs :frown:
  22. That looks really similiar to if statements....

    That looks really similiar to if statements.
    So.. could one look like this?:



    #include <stdio.h>
    #define EXAMPLE 100

    int main()
    {
  23. What is #if and #elif when using macros??

    I've been reading up on what macros are and how their used, but then I came across #if and #elif and I have no idea what their about and how their used? Can any one explain to me their use and...
  24. Need Help Installing New Library To Code::Blocks

    Hey guys, I need help installing a library called "SDL_draw".

    It can be found at: SDL_draw

    I'm really confused on how to install this. I have already installed "SDL.h", and "SDL_image.h", two...
  25. @whiteflags Haha sorry if my question was a tad...

    @whiteflags Haha sorry if my question was a tad confusing... I do that to people alot. My recent question over the program I posted was asking why it needed:
    "int (argc, char* args[])". And neo1's...
Results 1 to 25 of 67
Page 1 of 3 1 2 3