Search:

Type: Posts; User: Odexios; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    236

    Re: segmentation fault

    There is a clear text username with password in there, I suggest you to remove them

    EDIT: And change the password, if at all possible.
  2. Replies
    5
    Views
    449

    Re: pass argument to event listener?

    Wouldn't a closure do what you need? Something like


    (function() {
    var next = 0;
    document.getElementById("button").addEventListener("click", function() {
    ...
  3. Re: C language error on Ubuntu,but Ok with DOS according to book

    If the line

    scanf("%s",&me);
    is actually written like that in the book, and it's not a copy error, I'd heartily recommend you to look for another book to learn from. If you're learning C from...
  4. Replies
    7
    Views
    805

    Re: Python on Windows

    Just a suggestion; instead of using os.system, which relies on the shell underneath, use the functions from shutil, which are platform independent.

    Also, instead of escaping the backslash, you can...
  5. Re: Comparison of three languages, which one is the best for beginners?

    As far as I can see, the original poster is an engineering student making a survey for a project, not asking for what language would be best for him to learn. Your points might still be valid, but he...
  6. Replies
    10
    Views
    770

    Re: Turned to the dark side...

    Both, if I love music and not just playing a specific instrument.

    Especially if I'm a guitar player, learning the theremin will teach me a new way to approach music, and learning a new way to...
  7. Replies
    7
    Views
    439

    C list element swapping

    Hello everyone!

    I'm following a basic programming class and one of the assignments I had to solve was to write a C procedure which orders a linked list using Insertion Sort.

    The actual sorting...
  8. Replies
    32
    Views
    1,199

    Re: use of header files

    Thanks for the explanation.

    I guess that until the day I learn a little bit of assembly and of how C code is compiled and executed I won't be able to really grasp how C works.
  9. Replies
    32
    Views
    1,199

    Re: use of header files

    The fact that passing an argument to main, for example, changes the value returned by abs, or the way it is interpreted, or whatever happens.

    I understand that when a behaviour is undefined...
  10. Replies
    32
    Views
    1,199

    Re: use of header files

    Nice example. Could you please explain why does that happen, or tell me what should I look for to understand it?

    I mean, I see what's wrong, but why does test behave in that particular way?
  11. Replies
    33
    Views
    5,003

    Re: Beginners programming challenge #28

    Perfect. Thanks!
  12. Replies
    33
    Views
    5,003

    Re: Beginners programming challenge #28

    I have a question about the Ethernet Frame. It's the first time I look at this kind of subjects, so it might be a dumb question.

    As far as I can understand, the endiannes is the way a binary...
  13. Replies
    33
    Views
    5,003

    Re: Beginners programming challenge #28

    I'm not having a lot of free time, but the challenge is really interesting and seems pretty doable. I'll surely try it if I can; I'm trying to learn Caml these days, might give it a shot with that.
    ...
  14. Replies
    4
    Views
    410

    Re: [C] Malloc returning NULL

    Yep, I guess it probably is; I'm not familiar with error handling in C yet, it's only been a few months since I started to seriously study programming, but I wanted to try to write a project a little...
  15. Replies
    4
    Views
    410

    Re: [C] Malloc returning NULL

    Yep; the matrix[i] is a copy-paste error, it's right in the source code. Correcting it in the op right now.


    int set_error(int code); is a function I wrote for a really primitive way to handle...
  16. Replies
    4
    Views
    410

    [C] Malloc returning NULL

    Hello everyone!

    I'm having a weird issue with malloc.

    I am using this code to allocate a matrix:


    static int grid_maze_create_matrix(void)
    {
    int dim;
  17. Replies
    9
    Views
    11,519

    Re: Getting starting with gui programming in C

    I've been trying to get started with GUI programming in C for a long time, but I'm always stopping before getting to a point where I can be even just a little productive.

    I've been trying to get...
  18. [SOLVED] Re: Need help with a method for converting a double to an int in C# !

    What should be the output of Program.ToPercentage(0.731)? Should it print 731, 73, or the non integer number 73.1? The name of the function would suggest that what you need is to multiply the number...
  19. Replies
    4
    Views
    571

    Re: Algorithm that simplifies a notation

    What's the scope of your project?

    While it can be simple (though still not trivial) if you stick with only sums and products of polynomials in only one variable, the difficulty can easily escalate...
  20. Replies
    6
    Views
    563

    Re: Slooks Programming Challen

    It should work fine, then, as long as EXTRA_CHECK is defined.

    Thanks. My greatest issue right now is that I'm not really sure the way I code is the usual or recommended way; I'm completely...
  21. Re: Neec help with syntax error within g++ compiler

    You can use the [php] or
    tags to post code and preserve indentation.

    Don't know about the rest, this is the only line I read, but (assuming functions work the same way in C and C++) that
    ...
  22. Replies
    6
    Views
    563

    Re: Slooks Programming Challen

    I was kind of bored...


    prog_name input_file output_file
    (input_file and output_file can be the same)

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
  23. Replies
    8
    Views
    436

    Re: Questionable Seg Fault behaviour

    May I write you a short program which does what I think you're trying to do?

    I'm sure it'll be easier to understand what's wrong by confrontation.


    #include <stdio.h>
    #include <string.h>...
  24. Replies
    8
    Views
    436

    Re: Questionable Seg Fault behaviour

    This code doesn't segfault to me:


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

    #define STRING_BEGIN "SELECT name FROM statistic WHERE name = '"
    #define STRING_END "'"
  25. Replies
    3
    Views
    1,135

    Re: Notify-send through C program

    system might not be the best function to use, but you can do it easily; something like this:




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

    #define SNOTIFY "notify-send"
Results 1 to 25 of 96
Page 1 of 4 1 2 3 4