Search:

Type: Posts; User: Rider

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,688

    Yes I am, for further reference, here is what my...

    Yes I am, for further reference, here is what my compiling batchfile says:

    gcc -c SDLTest.cpp
    g++ -o SDLTest SDLTest.o -I SDL/include -L SDL/lib -lmingw32 -lSDLmain -lSDL -mwindows
  2. Replies
    3
    Views
    2,688

    Problems compiling this SDL app

    (from a thread that got nuked)

    I've just gotten SDL to work properly for a change, and was able to compile a basic SDL app with it.

    Now I'm trying to get the hang of SDL itself, but this latest...
  3. Replies
    5
    Views
    1,191

    Dividing Character string

    I'm currently working on a simple encryption program. The basic principles work and I've already implemented one method of encryption, and I want to add another.

    The only problem is, for this, I...
  4. Replies
    26
    Views
    3,562

    Yes well, I already accomplished that earlyer....

    Yes well, I already accomplished that earlyer. The only problem is that my method of encryption (by recalculating the ASCII value of the read character) requires the character to be moved through...
  5. Replies
    26
    Views
    3,562

    *Bump* I'd really like some help on this...

    *Bump*

    I'd really like some help on this issue... my current Encryption program looks like this:


    #include <iostream>
    #include <fstream>
    #include <string>

    using namespace std;
  6. Replies
    26
    Views
    3,562

    Regarding 1, I'm not quite sure what the right...

    Regarding 1, I'm not quite sure what the right way would be to go about that, just removing it b0rks the code :)

    on 3, I made the program output the size of every character read, and already it's...
  7. Replies
    26
    Views
    3,562

    They're defined above that, I didn't think it'd...

    They're defined above that, I didn't think it'd be that important, but regardless, this is where they are defined:


    ifstream Fileop;
    ofstream DestFil;
    char Filenam[32];
    char OutFile[32];...
  8. Replies
    26
    Views
    3,562

    Allright, after a bit of messing around with the...

    Allright, after a bit of messing around with the code (and your second link, vart) I've come to create the following:


    while (Fileop.good()) // As long as there's no Error or End of File
    {
    ...
  9. Replies
    26
    Views
    3,562

    Ah! Excellent! That solves everything! Now I...

    Ah! Excellent! That solves everything!

    Now I have another question:

    In my original program I converted the char read to an integer (it's ASCII value), did some math with that integer and put it...
  10. Replies
    26
    Views
    3,562

    Allright! That got rid of the thing... there's...

    Allright! That got rid of the thing... there's only 1 thing wrong now... at the end of a text file, it appends the last character twice.

    I'm sorry to be such a bother, I'm not quite "at home" in...
  11. Replies
    26
    Views
    3,562

    I'm not sure I"m following... does this mean I...

    I'm not sure I"m following...

    does this mean I should declare the char pointer as an unsigned char? Or should I declare the integer m (as the example states) as unsigned?

    And in the case of the...
  12. Replies
    26
    Views
    3,562

    Thanks for the help so far! I really appreciate...

    Thanks for the help so far! I really appreciate it!

    Just to try out your code bit, I made a small program that simply opens a file, and copies it to another file, character by character.

    It...
  13. Replies
    26
    Views
    3,562

    I'm not quite sure what you're proposing here......

    I'm not quite sure what you're proposing here... I'm still quite new at C++

    The read loop is what confuses me the most... could you elaborate?



    Whoops, my bad.
  14. Replies
    26
    Views
    3,562

    File reading/writing question

    After a disasterous last attempt at programming, I tried my hand at something a little easyer! Namely... Encryption! I'm quite pleased with my current handy-work... but there's something that I don't...
  15. Replies
    4
    Views
    1,736

    Variable object names

    I'm trying to create a bit of code that can read information from a file, and based off this information, create a number of objects. However... I want every object created to be called U001 where...
  16. Replies
    5
    Views
    1,095

    Thanks a lot! Works like a charm :)

    Thanks a lot! Works like a charm :)
  17. Replies
    5
    Views
    1,095

    Const Char and Char?

    Hi, I'm rather new at C++ but I decided to go on and write 'a' program to see how far I could get. I got quite a while until I tried to do this:


    class PlayerObject // The Object Representing the...
  18. Replies
    3
    Views
    1,041

    *bump* I'd just like to get started on making...

    *bump*

    I'd just like to get started on making games.

    If anyone can help, please do, and if the question is stupid, please tell me.
    I'm just here to learn :)
  19. Replies
    3
    Views
    1,041

    Surely, here's the code, as ripped from the link...

    Surely, here's the code, as ripped from the link provided in my first post.


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

    #include <SDL/SDL.h>

    void Slock(SDL_Surface *screen)
    {
  20. Replies
    3
    Views
    1,041

    Trying to get SDL to work

    Not sure how much of this is relevant but hey...

    I'm running Win2000, and I'm using Dev-c++ with the Mingw32 compiler.

    I've copied the libraries from the SDL installation into their respective...
  21. Replies
    19
    Views
    2,537

    Well I found out something stupid and fixed it, I...

    Well I found out something stupid and fixed it, I forgot to add the library directories to the "directories" tab in my project...

    that fixed most of my anguish, but now I'm getting a Makefile...
  22. Replies
    19
    Views
    2,537

    I have now tried to point to the .a and .lib...

    I have now tried to point to the .a and .lib files manually in parameters, but then I get a whole bunch of errors before even the first line of code.



    ...
  23. Replies
    19
    Views
    2,537

    I have set it up exactly as posted before (a...

    I have set it up exactly as posted before (a couple of times) and added the stuff to my project's parameters tab, but it still tells me that it can't find lSDLmain

    all the lib files in the...
  24. Replies
    19
    Views
    2,537

    It's kind of difficult to get the right bits of...

    It's kind of difficult to get the right bits of information, especially when several sites tell me varying things about how to get SDL to work.

    I run Windows 2000.

    My Dev-C++ is installed in:...
  25. Replies
    19
    Views
    2,537

    Derail to SDL

    It looks allright, but I can't seem to figure out how to get the package running in Dev-C++ once I downloaded it.

    It seems like I have all the files, I just don't know what to do with 'em...
Results 1 to 25 of 29
Page 1 of 2 1 2