Search:

Type: Posts; User: te5la

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    2,639

    cheers mat

    cheers mat
  2. Replies
    3
    Views
    2,639

    #pragma pack(push,bitmap_data,1) ?

    I have a bitmap loader with...




    #pragma pack(push,bitmap_data,1)


    *a few structures relating to the bitmap header files and rgbquad*
  3. Thread: Beginner Error

    by te5la
    Replies
    10
    Views
    1,362

    You have not included the standard library ...

    You have not included the standard library


    #include <iostream>
    #include <string>

    using namespace std;

    void main ()
    {
  4. Replies
    10
    Views
    3,275

    const char* getSampleArray() const { return...

    const char* getSampleArray() const { return sampleArray; }

    worked for me thank you very much for your replies.
  5. Thread: saving

    by te5la
    Replies
    7
    Views
    1,445

    not that experienced with c++ so i recommend you...

    not that experienced with c++ so i recommend you look up fstream but if you want a cheap way of doing it try reading and saving the file content first so something like.



    #include <fstream> ...
  6. Replies
    10
    Views
    3,275

    Sorry im not that experience with c++ here is my...

    Sorry im not that experience with c++ here is my code that im trying to get working.



    class charArray
    {
    public:
    charArray()
    {
    memset(...
  7. Replies
    10
    Views
    3,275

    function returning char array help

    the problem here is that i have an array of chars


    char exampleArray[50];

    and i want to create a function that returns this array so something like


    char getCharArray() { return...
  8. Replies
    3
    Views
    1,675

    thanks for reply has helped but im getting a...

    thanks for reply has helped but im getting a weird error with the line


    void setSampleArray(char[] x){ strcpy( sampleArray, x ); }

    the compiler says missing ')' before identifier 'x' any ideas?
  9. Thread: saving

    by te5la
    Replies
    7
    Views
    1,445

    Something like this will save an entered number...

    Something like this will save an entered number into a text file named file in the directory of the cpp file


    #include <fstream> //include file stream
    #include <iostream>

    int main()
    {
    ...
  10. Replies
    3
    Views
    1,675

    How to initialise char array?

    How do I initialise a char array in a class definition?



    class charArray
    {
    public:
    charArray()
    {
    charArray[30] = {0};
  11. Replies
    5
    Views
    1,312

    sorted it thanks, forgot to send a pointer to...

    sorted it thanks, forgot to send a pointer to function.
  12. Replies
    5
    Views
    1,312

    thanks for the replies but neither addresses the...

    thanks for the replies but neither addresses the problem. It still crashes when trying to add a second dvd to the list. No compilation warning is given only when ran a windows warning screen appears...
  13. Replies
    5
    Views
    1,312

    Simple issue please help

    Ive set up a simple program that is going to (eventually) store information about dvd's etc and write them all to file. The problem is that it crashed when i try to enter a 2nd dvd to the list...
  14. Replies
    2
    Views
    1,175

    I do? as it adds it to the list the first time...

    I do? as it adds it to the list the first time round as well as the second but it is when it exits this function for the second time that the problem occurs.



    void addToDatabase(ofstream...
  15. Replies
    2
    Views
    1,175

    simple crash problem (exiting func)

    Ive set up a simple program that is going to (eventually) store information about dvd's etc and write them all to file. The problem is that it crashed when i try to enter a 2nd dvd to the list...
  16. Replies
    6
    Views
    2,857

    I get..... ...

    I get.....



    C:\Users\J\Desktop\openGL\OpenGame1\Main.cpp(452) : error C2065: 'KeyDown' : undeclared identifier
    C:\Users\J\Desktop\openGL\OpenGame1\Main.cpp(452) : error C2065: 'VK_W' :...
  17. Replies
    6
    Views
    2,857

    register 2 simultaneous keypress'

    I have written a program in opengl using c++ and i want to be able to fly along my scene by using the keyboard so far i have managed to do this using various functions however i would like to be able...
  18. Replies
    2
    Views
    1,754

    vector of classes

    Am getting an error message while trying to create a vector of class objects.



    std::vector<cannon> cballs;
    cballs.insert(cballs.begin(), new cannon(5*ballNo,90,5));
  19. Replies
    1
    Views
    1,252

    loop problem in code

    Basically ive made a class that stores functions for a ball and then a main class that stores my world objects. From the main i create an instance of the ball using its constructor and an array (for...
  20. Replies
    25
    Views
    3,092

    ouch MacGyver delivers the final blow

    ouch MacGyver delivers the final blow
  21. Replies
    4
    Views
    1,501

    Thanks guys.

    Thanks guys.
  22. Replies
    4
    Views
    1,501

    Array of class objects

    How'd i make an array of class type objects here is my current call to create an instance.....



    cannon * cball = new cannon(45,90,5);


    This create an instance of cannon but i want multiple...
  23. Replies
    2
    Views
    1,701

    got it working now thanks.

    got it working now thanks.
  24. Replies
    2
    Views
    1,701

    class header confusion

    Im having problems understanding headers, my background is in java programming so im not used to having to create header files and i dont really understand their use. Here are two classes ive put...
  25. Replies
    6
    Views
    34,025

    Thanks for your help again

    Thanks for your help again
Results 1 to 25 of 34
Page 1 of 2 1 2