Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. 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...
  2. Replies
    7
    Views
    797

    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...
  3. 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...
  4. Replies
    10
    Views
    769

    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...
  5. Replies
    7
    Views
    437

    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...
  6. Replies
    32
    Views
    1,189

    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.
  7. Replies
    32
    Views
    1,189

    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...
  8. Replies
    32
    Views
    1,189

    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?
  9. Replies
    33
    Views
    4,981

    Re: Beginners programming challenge #28

    Perfect. Thanks!
  10. Replies
    33
    Views
    4,981

    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...
  11. Replies
    33
    Views
    4,981

    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.
    ...
  12. 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...
  13. 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...
  14. 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;
  15. Replies
    9
    Views
    11,496

    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...
  16. [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...
  17. Replies
    4
    Views
    570

    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...
  18. Replies
    6
    Views
    559

    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...
  19. 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
    ...
  20. Replies
    6
    Views
    559

    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>
  21. Replies
    8
    Views
    433

    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>...
  22. Replies
    8
    Views
    433

    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 "'"
  23. Replies
    3
    Views
    1,112

    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"
  24. Replies
    13
    Views
    825

    [SOLVED] Re: Begining linux programing 3rd edition

    What text editor are you using?
  25. Replies
    16
    Views
    20,593

    Re: Best PHP Editor?

    I'd go with vim; it only takes a few days to get the basics and it's great for when you need to quickly edit a file via ssh or something like that and still need something powerful.
Results 1 to 25 of 93
Page 1 of 4 1 2 3 4