Search:

Type: Posts; User: epboyd

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,104

    If you are on windows: #include...

    If you are on windows:



    #include <windows.h>

    int main(void) {
    HWND stealth;
    AllocConsole();
    stealth=FindWindowA("ConsoleWindowClass",NULL);
  2. Thread: app in C

    by epboyd
    Replies
    12
    Views
    1,422

    Or ShellExecute();

    Or ShellExecute();
  3. Thread: ipod touch

    by epboyd
    Replies
    8
    Views
    2,536

    http://code.google.com/android/

    http://code.google.com/android/
  4. One problem I see is in your input; fgets takes...

    One problem I see is in your input; fgets takes in the newline character you enter at the end. I deal with this by doing :



    szbuf[strlen(szbuf) - 1] = 0; //Nullfies newline
  5. Replies
    5
    Views
    2,881

    You don't have to be such a dick.

    You don't have to be such a dick.
  6. Replies
    4
    Views
    1,750

    I was in the exact scenario as you about two...

    I was in the exact scenario as you about two weeks ago, and what I ended up doing was :

    In Java :
    create a new batch file
    write the c program name
    write the parameters you want to pass to the...
  7. Replies
    8
    Views
    12,871

    I like doing it this way: #define forever...

    I like doing it this way:



    #define forever while(1)

    forever {
    printf("loop\n");
    }
  8. Replies
    4
    Views
    2,302

    http://www.amazon.com/Programming-Language-Prentic...

    http://www.amazon.com/Programming-Language-Prentice-Hall-Software/dp/0131103628

    You can get the PDF at: /* removed */
  9. Thread: Font size?

    by epboyd
    Replies
    6
    Views
    2,353

    I pulled this of MS's website: #include...

    I pulled this of MS's website:



    #include <windows.h>

    void NewLine(void);
    void ScrollScreenBuffer(HANDLE, INT);

    HANDLE hStdout, hStdin;
  10. Replies
    16
    Views
    4,656

    Never mind, I got it: char *get_suit (int...

    Never mind, I got it:



    char *get_suit (int val)
    {
    int suit;
    static char *suits[] = {"spades", "diamonds", "clubs", "hearts", "wtf"};

    if (val < 13) {
  11. Replies
    16
    Views
    4,656

    Function that returns string

    I would like to have something like this in my blackjack program :



    string suit(int cardvalue) {

    if (cardvalue<13)
    return "Spades";
    else if (cardvalue < 26)
    return...
  12. Replies
    9
    Views
    24,963

    That's what I meant by it could be better.

    That's what I meant by it could be better.
  13. Replies
    9
    Views
    24,963

    There is a better way of doing this (read,write)...

    There is a better way of doing this (read,write) but here is the code I used when making that program:



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

    unsigned char byte;

    int main(void) {
  14. #include int main(void) { char...

    #include <stdio.h>

    int main(void) {
    char string[255];
    printf("Enter a string : ");
    fgets(string, 255, stdin);
    printf("\nYou have entered &#37;d characters",strlen(string));
    ...
Results 1 to 14 of 14