Search:

Type: Posts; User: NIM

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,017

    try #include "glut.h"

    try

    #include "glut.h"
  2. Replies
    7
    Views
    1,416

    Axon - I think I am beginning to understand what...

    Axon - I think I am beginning to understand what a pointer does. I originally tried to declare string1=*ptr; but later revamped the code because I thought I coded that wrong in the declaration...
  3. Replies
    7
    Views
    1,416

    you guys are AWESOME- perfect output and the...

    you guys are AWESOME- perfect output and the desired results.

    this site rocks :D
  4. Replies
    7
    Views
    1,416

    I am supposed to initialize a character string to...

    I am supposed to initialize a character string to a text phrase and then write a function to traverse the contents of the string, using pointer-offset notation and then print each character seperated...
  5. Replies
    7
    Views
    1,416

    Need some help with arrays and pointers

    Can anyone help me with this code?

    My desired output is:

    String 1 = String1Text
    *PointerStr1 = s + t + r + i + n + g + 1 + t + e + x + t

    I appreciate any and all of your help! Thankyou...
  6. Thread: Advice

    by NIM
    Replies
    18
    Views
    2,734

    One thing that I like to do is to keep the...

    One thing that I like to do is to keep the integers together (for local variables) under
    int main ()
    {
    int year;
    int age;
    etc

    But that I suppose is entirely up to you when you are designing...
  7. Thread: your best

    by NIM
    Replies
    14
    Views
    2,684

    Diablo 2 was written in C++ As well as several...

    Diablo 2 was written in C++

    As well as several other games..

    I'm pretty sure that Blizzard made several games in C++

    If you want to look at non-professioanl games - then I could show you...
  8. Replies
    3
    Views
    1,051

    -sorry for grave digging old posts- these four...

    -sorry for grave digging old posts-

    these four lines can be chopped into one

    cout << "Farenheit value is:";
    cout << Farenheit;
    cout << "\n";
    cout << "\n";

    into
  9. Replies
    8
    Views
    1,647

    #include #include using...

    #include <iostream>
    #include <iomanip>

    using std::cout;
    using std::cin;
    using std::setw;
    using std::endl;

    int main ()
    {
  10. Replies
    8
    Views
    1,647

    is there any way to have a for input loop to...

    is there any way to have a for input loop to print on the same line?

    I.e

    Enter number: 1 2 3

    Number 1 is 1
    Number 2 is 2
    Number 3 is 3
  11. Replies
    8
    Views
    1,647

    #include #include using...

    #include <iostream>
    #include <iomanip>

    using std::cout;
    using std::endl;
    using std::setw;
    using std::cin;

    int main ()
  12. Replies
    8
    Views
    1,647

    Function Prototype problem

    I have a very generalized, very basic idea of how function prototypes work, but I am stuck on setting them up to work for my program.

    Can anyone help??
  13. Thread: Functions Help

    by NIM
    Replies
    6
    Views
    1,098

    Look into downloading these powerpoint slides. ...

    Look into downloading these powerpoint slides. (link at bottom)

    Once you have done that open chapter 2 and scroll and find slide number 56. That shows a great example of using setw and...
  14. Replies
    14
    Views
    2,832

    Wow - My school was giving away Visual Studio 6...

    Wow - My school was giving away Visual Studio 6 and I recently found out they are giving away the .Net package. I'm surprised that your schools are not allowing students to use the software.

    When...
  15. Thread: homework help

    by NIM
    Replies
    13
    Views
    2,260

    You are probably gone, but nonetheless I wanted...

    You are probably gone, but nonetheless I wanted to post this for others to future reference. When you are writing in C++, use the updated headers. The C headers may work, but they are outdated.

    ...
  16. Thread: Functions Help

    by NIM
    Replies
    6
    Views
    1,098

    Ok, I downloaded your .cpp file from your other...

    Ok, I downloaded your .cpp file from your other post on the same topic.

    A couple pointers that I have for your program:

    1) Use set width, this will eliminate readbility issues when others look...
  17. Thread: compiler errors

    by NIM
    Replies
    3
    Views
    1,331

    It would also be wise to use the updated C++...

    It would also be wise to use the updated C++ standard library header files.

    change


    #include <stdio.h>

    to
  18. Thread: linux gcc

    by NIM
    Replies
    11
    Views
    1,509

    yes emacs and pico are the programs that you...

    yes

    emacs and pico are the programs that you write the code in.. and gcc/g++ are the compilers
  19. Thread: linux gcc

    by NIM
    Replies
    11
    Views
    1,509

    my code was basic and simplistic and it allowed...

    my code was basic and simplistic and it allowed for the user to enter in what value they wanted for K.. But if you are not allowing for a user to define their own value - then make sure that you have...
  20. Replies
    9
    Views
    7,635

    yea your right - forgot about that one.. these...

    yea your right - forgot about that one..

    these are the C++ standard library header files

    cassert
    cctype
    cfloat
    climits
    cmath
    cstdlib
  21. Thread: help with compiler

    by NIM
    Replies
    11
    Views
    1,239

    sometimes you don't even need the system to...

    sometimes you don't even need the system to pause.. If you are returning a 0 ie. return 0; then the system will say "press any key to continue."

    After you hit the key the window will close. This...
  22. Replies
    9
    Views
    7,635

    instead of using these headers ...

    instead of using these headers



    #include<iostream.h>
    #include<iomanip.h>
    #include<stdlib.h>
    #include<time.h>
    #include<fstream.h>
    #include<math.h>
  23. Thread: linux gcc

    by NIM
    Replies
    11
    Views
    1,509

    #include using namespace std; ...

    #include <iostream>

    using namespace std;

    main(){
    int k;
    cin >> k;
    cout << k;
    return 0;
    }
  24. Nothing too fancy - the C++ headers don't require...

    Nothing too fancy - the C++ headers don't require the .h at the end.



    #include <iostream>

    using std::namespace;

    int main() //Most important part of the program!
    {
Results 1 to 24 of 24