Search:

Type: Posts; User: PutoAmo

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: 8 Queens

    by PutoAmo
    Replies
    2
    Views
    7,606

    Hmm, I am not sure whether I have understood your...

    Hmm, I am not sure whether I have understood your answer. My progam is supposed to check square by square the whole board (from 0,0 till 7,7). After a new queen is checked, if the result is that that...
  2. Thread: 8 Queens

    by PutoAmo
    Replies
    2
    Views
    7,606

    8 Queens

    Hello.

    I have attempted to implement a program that solves the 8 Queens problem. For those of you who have not heard of it before: The program is to find all possible combinations of 8 queens on...
  3. Thread: mmap()

    by PutoAmo
    Replies
    2
    Views
    1,290

    Thank you, vVv. Good example :)

    Thank you, vVv. Good example :)
  4. Thread: mmap()

    by PutoAmo
    Replies
    2
    Views
    1,290

    mmap()

    Hi,

    What does mapping mean? Does the mmap() function just copy the contents of a file into the calling processīs address space?

    This is just a language problem. I donīt know what mapping mean....
  5. Replies
    7
    Views
    9,037

    In order to count vowels use something like: ...

    In order to count vowels use something like:


    char vowels[] = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}

    for ( i = 0; i < 10; i++)
    if ( ch == vowels[i] )
    ch_is_a_vowel = 1;
  6. Replies
    4
    Views
    5,349

    Thanks alot,Sargnagel. I deduce from your...

    Thanks alot,Sargnagel.

    I deduce from your explanation that the kind of buffering used on I/O is dependent on the stream and not on the function. So fputc() might sometimes do an unbuffered output,...
  7. Thread: Vim tabs

    by PutoAmo
    Replies
    2
    Views
    1,885

    Vim tabs

    Hello all.

    How could I edit my vim config file so that tabs (when c programming) take just 4 spaces?
  8. Replies
    4
    Views
    5,349

    Buffered vs Unbuffered

    Hello all !

    I am reading chapter 5 of Steven's APUE. He mentions that "The standard I/O library does not buffer the characters". But he also gives the standard fputc function as an example of line...
  9. Thread: Dinamic Link

    by PutoAmo
    Replies
    9
    Views
    1,321

    That's what I also wonder about. I want mylib.c...

    That's what I also wonder about. I want mylib.c to become a dynamically linked library so I can use it with any program just loading those functions needed, when needed.Instead of linking the whole...
  10. Thread: Dinamic Link

    by PutoAmo
    Replies
    9
    Views
    1,321

    Would that make mylib.c a dynamic library? Will...

    Would that make mylib.c a dynamic library?
    Will my main program and any other program using that library just load those functions needed?
  11. Thread: Dinamic Link

    by PutoAmo
    Replies
    9
    Views
    1,321

    Thank you, xlord. Could you, please, use the...

    Thank you, xlord.

    Could you, please, use the filenames I have given as examples instead of blah-files?
  12. Thread: Dinamic Link

    by PutoAmo
    Replies
    9
    Views
    1,321

    Dynamic Link

    Hello all.

    I just have a simple question. How do I compile a function library to be accessed dinamically?

    Let's say I have these 3 files:

    main.c


    #include "mylib.h"
  13. Replies
    4
    Views
    2,441

    Thx

    Thank you Hammer and quzah.

    I was using a wrong port. Port 13 is reserved to Daytime service. I changed to a higher port number (2501). It worked fine.

    I also did some error checking, as you...
  14. Replies
    4
    Views
    2,441

    client / server

    I am new to network programming. So far I am just analyzing programs written by others. I have just one computer so I have to use address 127.0.0.1 when running these programs.

    When I attempt to...
  15. Thread: bind() error

    by PutoAmo
    Replies
    5
    Views
    4,420

    Thx

    Removing file "/tmp/mysocket" really helped.
    Thank you, Hammer.
  16. Thread: bind() error

    by PutoAmo
    Replies
    5
    Views
    4,420

    Port? I thought AF_UNIX domain didn't use any...

    Port? I thought AF_UNIX domain didn't use any ports.

    Error from perror: "Address is already in use". As if there was another socket using that address. (??)
  17. Thread: bind() error

    by PutoAmo
    Replies
    5
    Views
    4,420

    bind() error

    Why do I keep getting bind() error when attempting to execute this server?
    By the way, it's meant to get to integers, calculate sum and return sum to client.
    Any help appreciated !



    #include...
  18. Thread: Brain Tickler

    by PutoAmo
    Replies
    18
    Views
    2,482

    Prelude, Quzah, I have seen you posting...

    Prelude, Quzah,

    I have seen you posting replies to posts that I am sure are just homework. The fact that an assignment is difficult to resolve doesn't mean it is not homework. I am sure you answer...
  19. Replies
    3
    Views
    1,461

    It took me 3 minutes before I realized you used a...

    It took me 3 minutes before I realized you used a recursive function.

    My teacher will love it :D
  20. Replies
    3
    Views
    1,461

    Run Quzah Run !!

    I see you're close to hit 1K posts Q !!

    These are my 2p :

    I have some homework to be done til tomorrow. Yes, homework.

    My homework is: I have to write a program that prints all integer...
  21. Thread: vim

    by PutoAmo
    Replies
    4
    Views
    1,352

    Thank you, guys. Actually what I meant was...

    Thank you, guys. Actually what I meant was indentation (not tab). I would like smaller indentations when writing code.
  22. Thread: instant output

    by PutoAmo
    Replies
    2
    Views
    972

    instant output

    I have two questions regarding program below.
    1) Since ch is just an integer, where do all characters I enter after first one get saved? Let's say I enter abcdefg. 'a' will be stored at ch location....
  23. Thread: vim

    by PutoAmo
    Replies
    4
    Views
    1,352

    vim

    Hi

    How can I resize tabulations in vim?
  24. You have defined function CheChar to return a...

    You have defined function CheChar to return a char. When you call CheChar from main the value returned by CheChar is discarded. You probably want to save that value in c.input.
  25. Replies
    12
    Views
    1,829

    I am not sure whether this is what you need ... ...

    I am not sure whether this is what you need ...



    #include <stdio.h>

    int main (void)
    {
    char *str = "123456789";
    int num;
Results 1 to 25 of 72
Page 1 of 3 1 2 3