CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: g.eckert

Page 1 of 3 1 2 3

Search: Search took 0.06 seconds.

  1. Replies
    8
    Views
    775

    Re: a few words i read forums

    Couldnt you relate it to driver/stub functions??



    /* Main is my driver function */
    int main()
    {
    cout<<"Testing the stubs"<<endl;

    stub1();
  2. Replies
    10
    Views
    1,378

    Re: Program help please!

    cout<<"GIMME DA WEIGHT"<<endl;
    cin>> weight;

    cout<<"GIMME DA MILES"<<endl;
    cin>> miles;

    chargedMiles= miles/500;

    /* round "chargedMiles" UP */
  3. Re: ( Plain C ) Am I using everything correctly?

    ****, I need a spellchecker
  4. ( Plain C ) Am I using everything correctly?

    This is ' C ' not C++. If there is a plain C board please redirect me. Thanks.

    My instructions for the program

    Problem 8.11 on page 366 (35 points)

    You will need to include time.h,...
  5. Replies
    3
    Views
    932

    Re: Why not define all functions as inline?

    dont inline functions just get thrown into the code everyplace they are used? That would be like typing the same piece of code 15 times in your program...
  6. Replies
    5
    Views
    1,018

    Re: C pointer explanation

    Yes it is ' C ' that I am using. I could not find the "Plain C" board.

    I was looking for clarification on what I was doing with the pointers and derefrencing. Making sure that I was describing the...
  7. Replies
    3
    Views
    964

    Re: Gravity Simulator Problem

    why are these global???

    double force1;
    int time3;
    double x1, yone, z1;
    double x2, y2, z2;
    double Mass1;
    double Mass2;
    double velocityx1;
    double velocityy1;
  8. Replies
    5
    Views
    1,018

    Re: C pointer explanation

    I swear I used
    scanf("&#37;d", (ptr + i) ); and the compiler complained about something. It is working now though
  9. Replies
    5
    Views
    1,018

    C pointer explanation

    Am I correct in description of the following code


    int array[5]={0};
    int *ptr=array;

    ...

    scanf("&#37;d", &*(ptr + i) );/* Store input at the address of the value at (ptr + i)*/
  10. Replies
    5
    Views
    903

    Re: Not displaying anything

    I just ran your program and this is what printed.


    Enter in path of the file.
    F:/Html/htmlfiles/graphics3.htm /* <-- I entered a file path */
    ...
  11. Replies
    4
    Views
    4,529

    Re: What is this statement doing?

    Hey thanks for clearing that up. Explained very well.

    This program is for a CPS class and should demonstrate our knowledge of pointers. The directions say, 'write a function to sort an array using...
  12. Replies
    4
    Views
    4,529

    What is this statement doing?

    Could someone explain to me in english what this piece of code does.
    Also if you could show equivilant code not using dynamic allocation.



    int *myPtr = new int;

    The above seems to be...
  13. Replies
    5
    Views
    7,669

    Re: Help with Classes/Objects please

    I continued to try the Project method and I eventually got it to work. I was previously still compiling the files individualy within the project. Then i got it to work by building the entire project....
  14. Replies
    5
    Views
    7,669

    Help with Classes/Objects please

    Hi, I am completly new to Classes in C++. I have been trying to create a simple class and have had all sorts of problems. I am following directions from my textbook and the code looks correct, I have...
  15. Replies
    0
    Views
    4,531

    Computer Moves for Tic Tac Toe

    Hi, I am making a TicTacToe game. Right now I am trying to design the computer's moves. I want the computer player to check for possible wins, then check for possible blocks and otherwise just make a...
  16. Replies
    5
    Views
    1,709

    Re: Where to go for Master of Computer Science

    Go to Norway for free, finish the education, then move to where you want to work.
  17. Replies
    1
    Views
    651

    Creating My Own Project

    Hey, I have been looking at internships/jobs in the CPS field, mainly software development and I have noticed that many companies require that you submit some sort of "self started" project. I would...
  18. Replies
    2
    Views
    489

    Re: What should i do next?

    Look for internships that require little or no experience, there are some out there. This will get u enough expierence to move onto something bigger. That is what I will be doing once I finish my...
  19. Replies
    2
    Views
    606

    Re: Windows OS specific questions.

    I once had this virus/problem on my laptop that kept opening my cd tray and no matter what I did i could not stop it. I dont know how it happened or how it was programmed tho.
  20. Replies
    3
    Views
    5,218

    Re: Comments on Design please.

    Well, im not trying to make a game of craps for other people to play nor am i trying to test how well my craps game works. It is a simple simulation of a craps game that keeps statistics on rolls /...
  21. Replies
    3
    Views
    5,218

    Comments on Design please.

    I have this program here that simulates a Craps game and collects statistics about the games. My current design reflects several things i was trying to do.
    1. Keeping the "Gameplay" and "Stat...
  22. Thread: do-while

    by g.eckert
    Replies
    8
    Views
    993

    Re: do-while

    Here is your code with proper indenting.



    int main(void)
    {
    do
    {
    cout << “\nWhat is your age? “;
    cin >> age_user;
  23. Re: Using Global Arrays to keep stats on a game.

    Your right, its not a huge problem i just found it very ugly. Because I would end up passing the arrays through 2 functions.
    From main() --> play() --> shootersPoint();

    I just re-read the...
  24. Re: Using Global Arrays to keep stats on a game.

    Yes i thought about using a struct to group the statistical data but that is basically the same as a class. We could, use classes for this project but we shouldnt. Because the chapter being covered...
  25. Replies
    8
    Views
    739

    Re: 3 fields in one line "homework help"

    Here is an example of how to take multiple input from one line.



    #include <iostream>
    using namespace std;

    int main()
    {
    int number1=0;
Results 1 to 25 of 70
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured