Search:

Type: Posts; User: Sotiris Kaniras

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    626

    Oups.. Thanks!

    Oups.. Thanks!
  2. Replies
    2
    Views
    626

    structs

    Am I somewhere wrong?



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


    struct contacts
    {
  3. Thread: SOS

    by Sotiris Kaniras
    Replies
    6
    Views
    973

    Thankfully, the exercise got an overtime! What...

    Thankfully, the exercise got an overtime!
    What do you mean: "you need to at least classify the issue (problem) into the correct category."?
  4. Thread: SOS

    by Sotiris Kaniras
    Replies
    6
    Views
    973

    Firstly, I'm sorry about the title, but it really...

    Firstly, I'm sorry about the title, but it really was an SOS! (i had to send it by 5:00)
    Secondly, the code wasn't mine.. I had just to add & change some things..
    And thirdly, I wrote the code in...
  5. Thread: SOS

    by Sotiris Kaniras
    Replies
    6
    Views
    973

    SOS

    SOS: What is this?
    Screenshot by Lightshot
  6. Replies
    17
    Views
    1,517

    How do I do that?

    How do I do that?
  7. Replies
    17
    Views
    1,517

    #include int func(int a) { ...

    #include <stdio.h>


    int func(int a)
    {
    if (a == 5)
    return (a = 2);
    else
    return a;
    }
  8. Replies
    17
    Views
    1,517

    Nothing happened.. then I printed out "a" and it...

    Nothing happened.. then I printed out "a" and it printed what I gave to it.. When I gave to the input 5, shouldn't it print 2?
  9. Replies
    17
    Views
    1,517

    Ok.. But can we use "return", in order to store...

    Ok.. But can we use "return", in order to store data to a variable? For example, something like:



    int func(int a)
    {
    if (a == 5)
    return (a = 2);
    else
    return a;
  10. Replies
    17
    Views
    1,517

    So, we use it for typical reasons?

    So, we use it for typical reasons?
  11. Replies
    17
    Views
    1,517

    Ok, but return is not visible like printf() or...

    Ok, but return is not visible like printf() or usable, right?
  12. Replies
    17
    Views
    1,517

    what is return?

    Hello everyone.. I know it's a very stupid question, but I can't understand what exactly is the purpose of "return"?
  13. Replies
    38
    Views
    6,093

    What's exactly the lldb problem?

    What's exactly the lldb problem?
  14. Replies
    38
    Views
    6,093

    Why this program doesn't convert the character to...

    Why this program doesn't convert the character to number?

    http://prntscr.com/vo2v4
  15. Replies
    38
    Views
    6,093

    Because the user, among other commands, he has to...

    Because the user, among other commands, he has to write play E4 not just E...
  16. Replies
    38
    Views
    6,093

    I realised that the problem is caused because of...

    I realised that the problem is caused because of the "space" character.. Why?
  17. Replies
    38
    Views
    6,093

    Or you could just ask me nicely, instead of being...

    Or you could just ask me nicely, instead of being ironic..
    anyway.. ignore the command line arguments.. the input must be for example "play E4"... So, the program has to save the 4 to variable y and...
  18. Replies
    38
    Views
    6,093

    Well? :D

    Well? :D
  19. Replies
    38
    Views
    6,093

    #include #include #include...

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include "hfiles.h"


    int main(int argc, char *argv[])
    {
    int k, j, x = -1, size, player;
  20. Replies
    38
    Views
    6,093

    Hi again.. I have this code: for (k = 0; k...

    Hi again.. I have this code:



    for (k = 0; k < 4; k++)
    if ((comp4 = strcmp(&command[k], "play")) == 0) {
    comp5 = 2;
    }
    if (comp5 == 2) {
    for (k = 0; k <...
  21. Replies
    38
    Views
    6,093

    Thanks man! :biggrin:

    Thanks man! :biggrin:
  22. Replies
    38
    Views
    6,093

    I suppose you didn't understand what I want to...

    I suppose you didn't understand what I want to do..
    I want to get a letter from the keyboard and convert it into its equal number.. A to 1, B to 2 ... Z to 26..
    (Without using getchar() )
  23. Replies
    38
    Views
    6,093

    So? :D

    So? :D
  24. Replies
    38
    Views
    6,093

    Ok, but is possible to compare the char type...

    Ok, but is possible to compare the char type variable with the enum at once? I mean, can I treat the enumerator as an array?
    For example:


    enum converter {A = 65, B, C, D, E, F, G, H, I, J, K,...
  25. Replies
    38
    Views
    6,093

    What I want to do, is to get a char type variable...

    What I want to do, is to get a char type variable from the keyboard and compare it with the enum? Is that possible?
Results 1 to 25 of 54
Page 1 of 3 1 2 3