Search:

Type: Posts; User: kovitch

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,277

    void carrega_tabela(const char * ficheiro, int...

    void carrega_tabela(const char * ficheiro, int deficiente, int dependentes){

    int i, j, marcador = 0;
    float aux;
    float taxa_irs;

    float tabela[37][6];

    FILE *f;
  2. Replies
    5
    Views
    2,277

    Char * to Float

    Hi,

    I'm programming C in visual studio 2008.

    What is the best way to convert/cast from a char* to a float value. atof does not seem to be working. :/

    Regards.
  3. Replies
    2
    Views
    1,488

    Save struct with pointer

    Hi,

    I have the following 2 structs:



    typedef struct _date
    {
    int day;
    int month;
  4. Replies
    2
    Views
    1,425

    You're right. I could have used the other one,...

    You're right. I could have used the other one, sorry mate.
  5. Replies
    2
    Views
    1,425

    CreateProcess() - send to process

    Hi,

    I'm using CreateProcess() to start a new process that is going to record the sound from the sound card, using the following code:



    if(CreateProcess("WaveRecorder.exe", // Application...
  6. Thread: Pipe handling

    by kovitch
    Replies
    2
    Views
    1,017

    Accualy that is not the problem, already tried...

    Accualy that is not the problem, already tried with "w". The application pauses when the _pclose function is called. I have to hit a key to continue the execution of the main application.
  7. Thread: Pipe handling

    by kovitch
    Replies
    2
    Views
    1,017

    Pipe handling

    Hi,

    I am running an application through a pipe. This applcation starts to record sound from the soundcard until I hit Enter.

    To start the application I am using the following line:

    ...
  8. Replies
    1
    Views
    919

    Running app with system()

    Hi,

    I am using Visual Studio 2008 to develop in c++.

    The app that I'm developing should use a .exe file to record sound from the sound card, using the function system("WaveRecorder.exe ")....
  9. Thread: ctrl+c handler

    by kovitch
    Replies
    3
    Views
    1,940

    fedora 6.0, linux basically..

    fedora 6.0, linux basically..
  10. Thread: ctrl+c handler

    by kovitch
    Replies
    3
    Views
    1,940

    ctrl+c handler

    Hi!

    I'm making a code that needs to run some functions after a ctrl-c. How can I do that? I can't remember. It's someting to do with signals, right?

    Regards
  11. Replies
    2
    Views
    11,112

    Using "\r" with printf?

    Hi!

    I'm trying to print 4 lines with dinamic values without using "\n". Everyting works just fine when I use only one line. And the code is:



    while (1){
    num1=rand()%100;
    num2=rand()%100;...
  12. Replies
    5
    Views
    1,844

    It seems that you're right. Thanks for the tip ;)

    It seems that you're right. Thanks for the tip ;)
  13. Replies
    5
    Views
    1,844

    yes, you were right! Now there are no scanfs. It...

    yes, you were right! Now there are no scanfs. It works for the first 4 times, so using:



    //Insert Name
    add_text("Name",&r,r->name,sizeof(r->name));

    //Insert e-mail...
  14. Replies
    5
    Views
    1,844

    Reading input with fgets

    Dear programmers,

    I have this problem in getting a user's input. I'll try to explain may problem as good as i can:

    - I'm using the struct to store some data:


    typedef struct restaurant {...
Results 1 to 14 of 14