Search:

Type: Posts; User: everready

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    2,843

    You are also declaring x twice, once in the for...

    You are also declaring x twice, once in the for statement and then in the cout. Declare it once, then just refer to x
  2. Replies
    10
    Views
    1,046

    This works well to rmdir /s/q dirName whole...

    This works well to

    rmdir /s/q dirName

    whole dir, all files, any subfolders No Y/N questions
  3. Replies
    8
    Views
    1,377

    Look at Java too

    Look at Java too
  4. Replies
    2
    Views
    1,025

    got me stuffed why u need to hit enter twice, I...

    got me stuffed why u need to hit enter twice, I compiled using Microsoft Visual C++ and didn't have too. Well I made some changes to your code as shown below, found 1 logic prob with your code (or it...
  5. Replies
    63
    Views
    30,474

    Poll: As I already have a degree in Engineering and...

    As I already have a degree in Engineering and work for a specilized software company. After a couple of years I decided that I would like to do a bit of programming. The easiest way for me was to get...
  6. Replies
    2
    Views
    1,332

    Try these ...

    Try these

    http://www.cprogramming.com/tutorial/lesson10.html

    theres heaps here

    http://www.cs.uow.edu.au/people/nabg/ABC/ABC.html

    or go through these
  7. Well, HTML is manly used to display text and pics...

    Well, HTML is manly used to display text and pics on the web (as you know), while C++ is a powerful programming language. This language allows you to write simple programs such as



    #include...
  8. Replies
    3
    Views
    1,053

    I think this is what you are after

    Give this code a go




    #include<iostream.h>

    int main()
    {
    int counter,x;
  9. Replies
    3
    Views
    1,054

    Specify a pointer to the variable that you want...

    Specify a pointer to the variable that you want to change. That should do the trick. :)
  10. Replies
    7
    Views
    6,066

    Put the keyword "const" in front of the array ':)'

    Put the keyword "const" in front of the array ':)'
  11. Replies
    1
    Views
    814

    Save the score into a file, each time the program...

    Save the score into a file, each time the program starts, make it open the file, and then display the Hi score and Players name, as for the fonts and screen color, are you just going to run it from a...
  12. Replies
    7
    Views
    1,957

    Array's by default are passed by reference, this...

    Array's by default are passed by reference, this code essentially passes the address of the elements in the array to the function, and any changes to the array in this function will be stored.
  13. Replies
    4
    Views
    1,185

    The (char*) is used to cast the var. that the...

    The (char*) is used to cast the var. that the data will be read into 1 byte, and the sizeof(buffer) is used to ensure that the correct number of bytes are read into the specified var.

    As for "is...
  14. Replies
    4
    Views
    1,185

    in_stream.read((char*)buffer, sizeof(buffer));

    in_stream.read((char*)buffer, sizeof(buffer));
  15. Replies
    1
    Views
    921

    You only need to use delete if you have defined...

    You only need to use delete if you have defined your string var. as a dynamic pointer.

    eg.




    string *myStringOne;
    string *myStringTwo;
  16. You need to define the two functions that you...

    You need to define the two functions that you want to use, just like you define the variable in your program



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

    long double...
  17. Replies
    3
    Views
    1,091

    I have made a couple of changes to your code, as...

    I have made a couple of changes to your code, as seen below. I can't seem to produce the problem you are having, but give this code a go and see if it now works.

    What have I done to your code?
    ...
Results 1 to 17 of 17