Search:

Type: Posts; User: yahzee

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    4,046

    Thank you all for help. This has been very...

    Thank you all for help. This has been very helpful.
  2. Replies
    15
    Views
    4,046

    You are very right. I just closed my antivirus an...

    You are very right. I just closed my antivirus an it's working. But how did you know it? I have to know after almost 10 hours of searching for solution.
  3. Replies
    15
    Views
    4,046

    I know. Sorry for misunderstanding. When I...

    I know. Sorry for misunderstanding. When I uninstalled CB I also deleted all projects, and now created new project called helo. But the problem is same. I have to mention that I used CB before and I...
  4. Replies
    15
    Views
    4,046

    Set program arguments: 13057 Build Targets:...

    Set program arguments:

    13057

    Build Targets:

    13058

    I am not sure that i told CB to run the wrong file, because i just fresh installed CB and, as part of habit, when created project i...
  5. Replies
    15
    Views
    4,046

    Build log: 13056

    Build log:

    13056
  6. Replies
    15
    Views
    4,046

    I have just tried to make cpp hello world console...

    I have just tried to make cpp hello world console app and it works just fine. So the problem is only with c projects. If this is helpful :confused:
  7. Replies
    15
    Views
    4,046

    I forgot to mention that there is no .exe file in...

    I forgot to mention that there is no .exe file in my project's folder...it's sometimes there but when I double click on it it disappears.
  8. Replies
    15
    Views
    4,046

    Problem with CODEBLOCKS

    I've just fresh installed code blocks 12.11 on my windows 7(x64) OS and tried to launch simple hello world program but no output is produced in console window. I checked compiler path and it looks...
  9. Replies
    1
    Views
    748

    Solution problem

    I have problem with solution for my homework. I have to write program which calculates number of girls that we can get their phone number and how much we need to pay. Input looks like this:

    5 -...
  10. Replies
    4
    Views
    791

    Try reading this: Arrays in C - Cprogramming.com...

    Try reading this: Arrays in C - Cprogramming.com
  11. Replies
    4
    Views
    791

    If you have array of 5 elements for example....

    If you have array of 5 elements for example. First element's index is zero, second element's index is one, third's two and so on. Basically array[n] goes from 0 to n-1. If you want to delete third...
  12. Replies
    27
    Views
    10,476

    If you don't know how to do this things maybe...

    If you don't know how to do this things maybe this program is still to complex for you and you should learn with something easier than this. Also try with pen and pape. Write down your algorithm and...
  13. Replies
    27
    Views
    10,476

    Initialize difference as int difference[4] and...

    Initialize difference as int difference[4] and use it as difference[i] in for loop.

    Then if all elements of array called difference are 1 it's a straight.

    And again you failed to sort both...
  14. Replies
    27
    Views
    10,476

    You didn't sort both arrays! Implement it after...

    You didn't sort both arrays! Implement it after sort. After you implement it, use printf to see if you are getting correct value. I won't reply anymore if you don't post your solution. You should at...
  15. Replies
    27
    Views
    10,476

    You are using int i, j, a and c with for loop....

    You are using int i, j, a and c with for loop. You do not need them all. You only need i and j. So get rid of extra variables, leave just the ones you really need. Try to implement new array by...
  16. Replies
    27
    Views
    10,476

    1 sort arrays 2 use int difference[4] instead...

    1 sort arrays
    2 use int difference[4] instead int difference

    Post your code when you finish this!
  17. Replies
    27
    Views
    10,476

    Yes, you should sort array first. But don't...

    Yes, you should sort array first. But don't forget to sort both arrays!

    If you assume that difference==4 means that user have straight it's wrong. Because 4h 4s 6d 6c 8c will give you diff==4 and...
  18. Replies
    27
    Views
    10,476

    There are multiple reasons. What if user...

    There are multiple reasons.

    What if user inputs: 5h 4s 3d 2c 6h?
    What if user inputs: 5h 6d 7c 7h 9s?

    Try printing result for this inputs.
  19. Replies
    27
    Views
    10,476

    You propably had problems with that because your...

    You propably had problems with that because your scanf function wasn't properly implemented.
  20. Replies
    27
    Views
    10,476

    When you want to calculate difference between all...

    When you want to calculate difference between all elements, you can use this code:



    int i;
    int difference=0;

    for(i=0;i<n-1;i++) {
    difference+=(array[i+1]-array[i]);...
  21. Replies
    27
    Views
    10,476

    You explained well. But it seems that you don't...

    You explained well. But it seems that you don't unerstand me.

    1. You have arrays with 127 elements, and you store only five element, so initialize your array on 5 elements
    2. Scan for user input...
  22. Replies
    27
    Views
    10,476

    Your scanf function is not properly implemented,...

    Your scanf function is not properly implemented, because it doesn't stop on fifth input. Try this:



    for (c = 0; c < n; c++){
    scanf("%c%c", &array1[c], &array[c]);
    ...
  23. Replies
    4
    Views
    11,134

    You will have problem if user enters Manchester...

    You will have problem if user enters Manchester United for team. Then you will have two teams, one called Manchester and other called United, which you probably don't want. It happens because %s...
  24. Replies
    27
    Views
    10,476

    In order to calculate difference try to finish...

    In order to calculate difference try to finish this by yourself:



    int array[5];
    int i;
    int difference=0;

    for(i=0;i<5-1;i++) {
    array[i] //This is 'i' element...
  25. Then you should use if before while if you need...

    Then you should use if before while if you need to printf zero for input 0.

    Also try writing new program from beggining, do it step by step. At beginning do not use tons of variables, insert them...
Results 1 to 25 of 42
Page 1 of 2 1 2