Search:

Type: Posts; User: Dakshin

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,112

    Hm. Never struck me. Thanks!

    Hm.
    Never struck me. Thanks!
  2. Replies
    8
    Views
    34,405

    Sticky: Microsoft has published it's own tutorial :Learn...

    Microsoft has published it's own tutorial :Learn to Program for Windows in C++ (Windows)
  3. Replies
    3
    Views
    1,112

    Doubt on WM_CLOSE

    Hi, a while ago I started learning Windows Programming from a tutorial on the Microsoft website, and I learnt that you can call a message box from WM_CLOSE asking whether you want to close it or not....
  4. Thread: Console C++

    by Dakshin
    Replies
    5
    Views
    910

    Thanks a lot! You have no idea how big a weight...

    Thanks a lot! You have no idea how big a weight has been lifted from my shoulders and all that sort of thing.:biggrin:
  5. Thread: Console C++

    by Dakshin
    Replies
    5
    Views
    910

    Console C++

    Hi, a month ago I completed a C++ class. Everything they taught was on the console screen, that is, the text only interface.
    And then, I find out that C++ programs these days are all GUI and we...
  6. Thread: please help!

    by Dakshin
    Replies
    9
    Views
    763

    Try creating individual strings for each word....

    Try creating individual strings for each word. Use a for loop to search the string for '\0' . It represents a space so it separates words.
  7. Replies
    4
    Views
    702

    The compiler isn't going to recognize : as...

    The compiler isn't going to recognize : as something to separate strings. If you're going to do that, you will have to use just one %s
  8. Replies
    5
    Views
    629

    the syntax is: char xyz[50];...

    the syntax is:


    char xyz[50];
    fgets(xyz,50,stdin);

    Put your string's name in the first parameter.
    The second one specifies the size of the string. You can type it in or use the sizeof...
  9. Replies
    3
    Views
    845

    No, I don't think so... unless you manually type...

    No, I don't think so... unless you manually type everything you see.
  10. I don`t see why... the 0 is in quotes, isn`t it?...

    I don`t see why... the 0 is in quotes, isn`t it? The program is checking a character, not integer
  11. Or you could just replace the EOF with ...

    Or you could just replace the EOF with


    while ((c = getchar()) != '0')

    and the program should stop with the loop.
  12. You could take the declarations of...

    You could take the declarations of Grade1,Grade2,etc. out of the main function and put them outside the declarations of all the functions. This will make it global and the program should work.
    ...
  13. Replies
    9
    Views
    608

    In answer to Salem's question, yes, TurboC does...

    In answer to Salem's question, yes, TurboC does support %p .... I've tried it out!!
  14. Thread: C programs

    by Dakshin
    Replies
    7
    Views
    889

    It's really good, thanks for sharing it!!!

    It's really good, thanks for sharing it!!!
  15. Replies
    9
    Views
    608

    s[0] will give you the value of the element at...

    s[0] will give you the value of the element at the first place in the array s ... unless s is a pointer
  16. Replies
    2
    Views
    682

    Thanks! open() is good!!

    Thanks! open() is good!!
  17. Replies
    2
    Views
    682

    open files without fopen()

    Hi,
    I was just wondering, is there a way to open files withot using fopen() ??

    If there is, please tell me it's syntax and if it has any opening modes like a,r,w,a+,r+, etc...

    Thanks in...
  18. Suppose a is an integer and you put it in an if...

    Suppose a is an integer and you put it in an if statement like this:



    int a;
    for(a=1;a>0;a++)
    {
    if(a%10==0)
    {
    continue;
  19. Thread: error

    by Dakshin
    Replies
    5
    Views
    659

    Please give more information. What does the...

    Please give more information. What does the program do?
  20. Thread: Using Loops

    by Dakshin
    Replies
    7
    Views
    1,173

    You could try using a do while loop to get the...

    You could try using a do while loop to get the number from the user and to display the error message if the number is incorrect
    Then use a for loop to print the number.



    do
    {
    ...
  21. You could create an integer and put it in a...

    You could create an integer and put it in a never-ending for loop.
    Inside the loop,check the modulus of 10
  22. Replies
    7
    Views
    763

    I think the problem is because you're using EOF...

    I think the problem is because you're using EOF to check a character, try


    while((ch=getchar())!='0')

    instead of


    while((ch=getchar())!=EOF)
Results 1 to 22 of 22