Search:

Type: Posts; User: ulti-killer

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. how to set image resource path for D3DXCreateTextureFromFileEx method?

    I try to merge all the image resources to a folder called resource. So, set image path as "resource/" but my directX framework only works if I compile at VS 2010. If I run from the debug folder it...
  2. Replies
    1
    Views
    5,084

    Binary file - delete record issue

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


    typedef struct{
    char code[6];
    int year;
    char country[26];
    } product;
  3. Replies
    5
    Views
    988

    Why Line 82, ' ; ' can make it display only last...

    Why Line 82, ' ; ' can make it display only last record?
  4. Replies
    5
    Views
    988

    Binary file - display issue

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


    typedef struct{
    char code[6];
    int year;
    char country[26];
    } product;
  5. Replies
    18
    Views
    2,762

    I just compile the code of AndiPersti...

    I just compile the code of AndiPersti
  6. Replies
    18
    Views
    2,762

    12253 bug. :p

    12253

    bug. :p
  7. Replies
    18
    Views
    2,762

    #include #include int...

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


    int main()
    {
    int stop, ch, valid = 0;


    do
  8. Replies
    18
    Views
    2,762

    Validation design

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


    int main()
    {
    int stop, ch, valid = 0;


    do
  9. Thread: Validation

    by ulti-killer
    Replies
    5
    Views
    2,056

    2) isdigit is not working as scanf("%d") only...

    2) isdigit is not working as scanf("%d") only read the digit and skips the char/string.
  10. Thread: Validation

    by ulti-killer
    Replies
    5
    Views
    2,056

    1) You mean after getchar() get the newline, it...

    1) You mean after getchar() get the newline, it will continue to enter non-stop? So, how many getchar() u put is still the same result.



    do
    {
    // display title
    printf("Individual...
  11. Thread: Validation

    by ulti-killer
    Replies
    5
    Views
    2,056

    Validation

    do
    {
    // display title
    printf("Individual Salesman Commission\n");
    printf("==============================\n");


    // show tip for first input
    if (*tip == 1)
    {
  12. Replies
    2
    Views
    1,504

    I forget to put break(); :tongue:

    I forget to put break(); :tongue:
  13. Replies
    2
    Views
    1,504

    Jump to another function

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


    // number of salesman
    #define SIZE 100
    // salesman_type structure definition
    typedef struct{
    //int ID; // salesman id
  14. Replies
    8
    Views
    1,969

    1) Why getchar() needs to call twice if preceding...

    1) Why getchar() needs to call twice if preceding code uses scanf()?
    2) How to design to achieve Press any key to continue...?
  15. Replies
    8
    Views
    1,969

    #include int main() {...

    #include <stdio.h>

    int main()
    {
    printf("Press any key to continue...");
    getchar();
    return 0;
    }
  16. Replies
    8
    Views
    1,969

    system("pause")

    Is there any way to replace system("pause")? :confused:
  17. Thread: Validation

    by ulti-killer
    Replies
    8
    Views
    2,124

    Is \n also moves to ch too?

    Is \n also moves to ch too?
  18. Thread: Validation

    by ulti-killer
    Replies
    8
    Views
    2,124

    Anybody can help me?:biggrin:

    Anybody can help me?:biggrin:
  19. Thread: Validation

    by ulti-killer
    Replies
    8
    Views
    2,124

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?a...

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044873249&id=1043284392
    So, is it means keeping moving the input buffer to ch and reset it just like no input before? Is \n also loved to ch?...
  20. Thread: Validation

    by ulti-killer
    Replies
    8
    Views
    2,124

    FAQ > Why fflush(stdin) is wrong -...

    FAQ > Why fflush(stdin) is wrong - Cprogramming.com
    Does it matter if behaviour is undefined?

    FAQ > Flush the input buffer - Cprogramming.com
    I can't understand how it works. :confused:
  21. Thread: Validation

    by ulti-killer
    Replies
    8
    Views
    2,124

    Validation

    do
    {
    // prompt and read salesman id
    printf("Salesman ID (NO.): ");
    scanf("%d",&stop);
    if (stop == NULL)
    ...
  22. How to initialize screen size and screen buffer size?

    12208

    How can I initialize the screen size and screen buffer size each time I run the program?
  23. Replies
    15
    Views
    2,144

    12201 I mean wat is the side effect if...

    12201

    I mean wat is the side effect if overhead of making a copy of the object?
  24. Replies
    1
    Views
    842

    Display a message in one second

    #include <stdio.h>


    int main()
    {
    // display message
    printf("Record deleted.\n");


    return 0;
  25. Replies
    15
    Views
    2,144

    Is this overhead of passing the object by value...

    Is this overhead of passing the object by value will consume more memory?
Results 1 to 25 of 127
Page 1 of 6 1 2 3 4