Search:

Type: Posts; User: chasingxsuns

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,090

    thanks

    thanks
  2. Replies
    5
    Views
    1,090

    Hmm I used to the example the FAQ gave, ...

    Hmm I used to the example the FAQ gave,


    #include <iostream>

    using namespace std;

    void mypause()
    {
    cout<<"Press [Enter] to continue...";
  3. Replies
    5
    Views
    1,090

    Extremely basic question

    #include <iostream>

    using namespace std;

    int main()
    {
    int age;
    char name[8];

    cout<<"How old are you?";
  4. Replies
    2
    Views
    736

    overloading constructors

    this is my program----------



    #include <iostream>
    #include <cstdlib>

    class rectangle
    {
    public:
  5. Replies
    5
    Views
    870

    eh...that didnt work lol. it just made more parse...

    eh...that didnt work lol. it just made more parse errors and made deposit undeclared.
  6. Replies
    5
    Views
    870

    program wont compile..why?

    i did a code similar to one posted on here not too long ago. i only get 2 errors but i cant figure out how to fix them.
    heres the code--


    #include <iostream>
    #include <cstdlib>
    using namespace...
  7. Replies
    20
    Views
    2,326

    okay so i got this.. #include ...

    okay so i got this..



    #include <stdio.h>
    #include <string.h>

    #define FIRSTNAMES
    #define LASTNAMES
    #define NAMES
  8. Replies
    20
    Views
    2,326

    if ((ptr = strchr(firstname, '\n')) != NULL) ...

    if ((ptr = strchr(firstname, '\n')) != NULL)
    *ptr = '\0';



    can you explain what this does?i cant figure it out lol.
  9. Replies
    20
    Views
    2,326

    2 very noob questions

    #include <stdio.h>
    #include <string.h>

    #define firstnames 15
    #define lastnames 15
    #define names 30

    int main ()
    {
    char firstname[firstnames];
  10. Replies
    11
    Views
    1,182

    oh im sorry i didnt see xeddiex's post. lol sorry...

    oh im sorry i didnt see xeddiex's post. lol sorry for the extra trouble guys.
  11. Replies
    11
    Views
    1,182

    i tried changing the actor inside main to both...

    i tried changing the actor inside main to both 'person' and 'aaa' and changing the actor inside oz to 'uuu' and it did the same thing. know anything else that could be wrong?
  12. Replies
    11
    Views
    1,182

    is oz a type of variable? what can i do to fix...

    is oz a type of variable? what can i do to fix this?
  13. Replies
    11
    Views
    1,182

    struct array trouble

    #include <stdio.h>
    #include <string.h>

    void main()
    {
    struct oz
    {
    char actor[30];
    char character[30];
    int age;
  14. Replies
    9
    Views
    896

    ha...wow. it works now and i feel like an idiot....

    ha...wow. it works now and i feel like an idiot. oh well. thanks for the help!
  15. Replies
    9
    Views
    896

    i use the new version of bloodshed. its free and...

    i use the new version of bloodshed. its free and a lot of source codes from my book dont work with it lol. i use windows so i use void and just start>run>exe my programs. is it possible that its...
  16. Replies
    9
    Views
    896

    #include #include void...

    #include <stdio.h>
    #include <math.h>

    void main()
    {
    char input[20];
    double miles, kilometers;

    printf("Enter a value in miles:\n");
    miles=atof(gets(input));
  17. Replies
    9
    Views
    896

    input reading problem

    i entered this simple code from a book and its not working.



    #include <stdio.h>
    #include <math.h>

    void main()
    {
    char input[20];
  18. Replies
    2
    Views
    1,336

    /sigh for some reason it wont show the sorted...

    /sigh for some reason it wont show the sorted array correctly. the unsorted/random comes up fine...but once i press enter only about 10 numbers come up.



    #include <stdio.h>
    #include <time.h>...
  19. Replies
    2
    Views
    1,336

    code explanation

    #include <stdio.h>
    #include <time.h>
    #include <stdlib.h>

    #define SIZE 200

    void sort(int *array, int size);
    int rnd(int range);
    void seedrnd(void);
  20. Replies
    8
    Views
    1,086

    ummm.. i know question is extremely noob, but...

    ummm.. i know question is extremely noob, but what does strchr do? i looked on the C programming.com tutorials and couldnt find it. and how does the if loop make when the user presses backspace not...
  21. Replies
    8
    Views
    1,086

    lol its from C for dummies volume 2. if its not...

    lol its from C for dummies volume 2. if its not too much trobule, can you explain the if loop? i dont understand it too much :-\
  22. Replies
    8
    Views
    1,086

    whoops...messed up with the }'s on the last few...

    whoops...messed up with the }'s on the last few lines...
    should be like this




    #include <stdio.h>
    #include <conio.h>

    #define CR 0x0d
  23. Replies
    8
    Views
    1,086

    string trouble

    when i run this program, it doesnt do the last printf that says 'darn glad to meet you...' it just CR+LF. ive copied this straight from a book, i dont understand why it wont work.




    #include...
  24. Replies
    11
    Views
    1,563

    ehh....its still doing the same thing : \

    ehh....its still doing the same thing : \
  25. Replies
    11
    Views
    1,563

    they pause the program until i press enter. i try...

    they pause the program until i press enter. i try to use void main with the program and take out the getch()s but then i cant see the program at all, it just comes up for like a second then goes...
Results 1 to 25 of 31
Page 1 of 2 1 2