Search:

Type: Posts; User: rusyoldguy

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    112

    Hi, you're right. I think it would be good to...

    Hi,

    you're right. I think it would be good to clear with a little function
    the keyboard-buffer to prevent that the next call of 'scanf'
    takes the signs who are in the keyboard-buffer after the...
  2. Replies
    7
    Views
    187

    I think he want's to calculate the day of the...

    I think he want's to calculate the day of the week given by a date, or the Date of Easter Sunday given by a year. May be according the formula of Zeller's congruence, Butcher or Gauss. But it looks...
  3. Hi nerx! The second way to do it is: ...

    Hi nerx!

    The second way to do it is:


    #include <stdio.h>

    int fact(int num); // don't forget the right declaration

    int main(int argc, char **argv)
  4. Replies
    14
    Views
    418

    Hi Yoav! I have only a simple Program with...

    Hi Yoav!

    I have only a simple Program with comments in german, but may be it can help you:

    first the file permutieren.h



    #ifndef PERMUTATION_H_INCLUDED
    #define PERMUTATION_H_INCLUDED
  5. Replies
    13
    Views
    882

    With two little changes of the last examples: ...

    With two little changes
    of the last examples:


    #include <stdio.h>
    #include <termios.h>
    #include <unistd.h>
    #include <fcntl.h>

    int kbhit(void)
  6. Replies
    13
    Views
    882

    usein kbhit() in c instead of inkey in qbasic

    Hallo zach!
    May be if you work with Linux, you can use kbhit() from this example:


    #include <stdio.h>
    #include <termios.h>
    #include <unistd.h>
    #include <fcntl.h>

    int kbhit(void)
  7. Hi flp1969, I changed my makefile to CC =...

    Hi flp1969,

    I changed my makefile to


    CC = cc
    LD = g++
    CFLAGS := -g -O0 -Wall -c
    SOURCE := main.cpp Bohrung.cpp Bohrwelle.cpp Getvalwelle.cpp Wellen.cpp
    OBJ := main.o Bohrung.o...
  8. Error by creating a rpm package from soource with rpmbuild

    Hello!

    I am working with SUSE LINUX tumbleweed and want to create a rpm package
    with rpmbuild not as Super User. This is my first time trying to create a rpm.
    I created my programs in the past...
  9. build rpm form a csource rpmbuild returns a error

    Buid rpm -packages from Source

    Hallo,

    heretorfore i created my programs with an IDE like codelite, codeblocks , QT-Creator or Anjuta.
    I starded them from the shell, example:
    ./passungen
    ...
  10. Hi askis! May be this example below can help...

    Hi askis!

    May be this example below can help you:


    /** tallybit.c read in a integer value, as a 4-Byte(32Bit) integer
    * and counts the digits where are set and not set.
    * If you read in...
  11. Replies
    22
    Views
    1,006

    If you don't save the values you've put in, you...

    If you don't save the values you've put in, you can only calculate min, max, average, range, not the standard deviation.
    If you don't need the standard deviation it is enough to us a code like this....
  12. Replies
    22
    Views
    1,006

    Hi kelu! Better you read at first all values...

    Hi kelu!

    Better you read at first all values in, for example diameters of parts made by a lathe-machine.
    Then you search the max value in the array.
    Now set min to max.
    After this you can find...
  13. Replies
    5
    Views
    395

    Hi costycnc! I think you need to parse the...

    Hi costycnc!

    I think you need to parse the string by using the adress (X,Y,Z,I).
    Here a little example with gcc written on Linux with codeblocks:
    first the header "cngnum.h":


    #ifndef...
  14. Replies
    8
    Views
    539

    Hi Lyrockzz! Adrian is right, you need 4...

    Hi Lyrockzz!

    Adrian is right, you need 4 arguments used by 'distance' in line 22.

    erg1 is unused and can receive the return value of 'distance'
    example:


    #include <stdio.h>
    #include...
  15. Replies
    18
    Views
    1,208

    Hallo knik 653! May be you did mean something...

    Hallo knik 653!

    May be you did mean something like this below?


    #include <stdio.h>
    #include <stdlib.h>
    /** running average berechnet waehrend der Eingabe der Werte den Mittelwert
    * und...
  16. Replies
    12
    Views
    747

    Hi Nwb! What is, when you try to use your own...

    Hi Nwb!

    What is, when you try to use your own "getch() like this:


    #include <stdio.h>
    #include <termios.h>
    #include <unistd.h>

    /// reads from keypress, doesn't echo
  17. Replies
    28
    Views
    1,708

    Hi Raismans! First try to give the adress of...

    Hi Raismans!

    First try to give the adress of str[E] to the function input.
    By strings, you don't need "&" like by arrays of int or float etc.
    You can take void for your first steps in c.
    input...
  18. Replies
    6
    Views
    1,073

    Hi! I'am new here. My Nickname should be...

    Hi!
    I'am new here. My Nickname should be rustyoldguy. Sorry my failure. Now to you.
    I think you can use also this here:


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

    int main()
    {
Results 1 to 18 of 18