Search:

Type: Posts; User: Jst

Search: Search took 0.01 seconds.

  1. Thread: Case: Problem...

    by Jst
    Replies
    7
    Views
    1,780

    Although you did help me with improving my C...

    Although you did help me with improving my C program, it still has the original problem with inputting letters at the scanf("%d", &choice); part..

    Jst.
  2. Thread: Case: Problem...

    by Jst
    Replies
    7
    Views
    1,780

    It's not completely working. The choice = menu();...

    It's not completely working. The choice = menu(); part and the yesno = quit(); part aren't working. It says: "void value not ignored as it ought to be"

    Jst.
  3. Thread: Case: Problem...

    by Jst
    Replies
    7
    Views
    1,780

    Case: Problem...

    #include <stdio.h>

    void menu();
    void add();
    void substract();
    void multiply();
    void devide();
    void quit();

    int main(void)
  4. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    K, tnx.. Well I sure have allot to learn about...

    K, tnx.. Well I sure have allot to learn about pointers, although I do know allot more about it before I started this topic.

    Jst.
  5. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    How would you create it? Tnx Jst.

    How would you create it?

    Tnx
    Jst.
  6. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    I did some testing with the codes that I had and...

    I did some testing with the codes that I had and found out that it works untill I input to many characters, everything below eight chars and it will work fine everything else and it will stop working...
  7. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    Well, the last piece of code I posted did...

    Well, the last piece of code I posted did actually print my whole name or any other text I used for input.


    I don't know allot about these pointers yet, but when I declare the "%s" at a printf...
  8. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    I've never worked with the maloc function before,...

    I've never worked with the maloc function before, but I guess it's time that I should...

    Jst.
  9. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    While I was reading this.. I figured because I'm...

    While I was reading this.. I figured because I'm not allocating any memory on it, I don't have to put a pointer on it. So without the pointer it also works :).

    My code:

    #include <stdio.h>
    ...
  10. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    #include int main(void) { ...

    #include <stdio.h>

    int main(void)
    {
    char *str;
    printf("Name: ");
    scanf("%s", &str);
    printf("Hello %s\n", &str);
    system("pause");
    return 0;
  11. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    #include main() { char *str;...

    #include <stdio.h>

    main()
    {
    char *str;
    printf("Name: ");
    scanf("%s", str);
    printf("Hello %s", str);
    system("pause");
    return 0;
  12. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    Next time I will post the line wich gives the...

    Next time I will post the line wich gives the error :).

    This is my code now:

    #include <stdio.h>

    main()
    {
    char *txt="Hello World\n";
    printf("%s", txt);
  13. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    I read a few tutorials about pointers, I think I...

    I read a few tutorials about pointers, I think I understand a few things about it now. I'm now able to print one letter, it's the correct one, but it needs to print the whole string and I'm not sure...
  14. Thread: Printing a char.

    by Jst
    Replies
    29
    Views
    4,484

    Printing a char.

    Hi,
    I made this program that is supposed to print a char variable, but it's not working. It wont print the variable str, instead it sais:
    This is my code:

    #include <stdio.h>

    main()
    {
    ...
  15. Thread: Windows in C

    by Jst
    Replies
    5
    Views
    1,040

    Tnx, you just gave me some ideas :) Jst.

    Tnx, you just gave me some ideas :)

    Jst.
  16. Thread: Windows in C

    by Jst
    Replies
    5
    Views
    1,040

    K, tnx for the reply's. To bad that its hard to...

    K, tnx for the reply's. To bad that its hard to learn... I'm not even able to write a "useful" C program.

    Jst.
  17. Thread: Windows in C

    by Jst
    Replies
    5
    Views
    1,040

    Windows in C

    Hi,
    I just started using C, and I was wondering if it is possible to create window-based programs instead of only text-based programs. I'm sorry if this is a really dumb question, but I just needed...
Results 1 to 17 of 17