Search:

Type: Posts; User: rusyoldguy

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    128

    other example: /* getchar example :...

    other example:


    /* getchar example : typewriter */
    #include <stdio.h>

    int main(int argc, char **argv)
    {
    int c;
    puts ("Enter text. Include a dot ('.') in a sentence to exit:");
  2. Replies
    3
    Views
    128

    Hallo bos1234! I hope this code can help you,...

    Hallo bos1234!

    I hope this code can help you, ignore the german comments.


    /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
    /*
    * main.cc
    *
    * chkkeystroke is...
  3. Sorry forgot didi.h: #ifndef LI_H_...

    Sorry forgot didi.h:



    #ifndef LI_H_
    #define LI_H_ 2

    extern struct StudentData
    {
    char name[25];
  4. Hi davic01! Here an example: first student.h:...

    Hi davic01!

    Here an example:
    first student.h:


    #ifndef STUDENT_INC_
    #define STUDENT_INC_

    #include <iostream>
  5. Hallo laserlight! I think with asentence he...

    Hallo laserlight!

    I think with asentence he means something like that:
    "good wine needs no bush"
    or
    "the bread never falls but on its buttered side"

    The first letter into uppercase:
    "GOOD...
  6. Replies
    3
    Views
    263

    Or see this example. /** opnclose.c */...

    Or see this example.



    /** opnclose.c */
    #include <stdio.h> /* printf, fopen, fclose */
    #include <stdlib.h> /* exit */

    #define READ "r"
  7. Replies
    12
    Views
    376

    binary 11 is 3 decimal uint8_T is an integer...

    binary 11 is 3 decimal

    uint8_T is an integer type with 8 bit length. The Data type unsigned char is also 8 bit long If you take int(32bit). for this example i think it doesn't matter anything....
  8. Replies
    12
    Views
    376

    Hallo Brian_Teir! I think it would be better...

    Hallo Brian_Teir!

    I think it would be better to know from what for a side you want do start to split the whole sentense "rxbuffer" into 8-byte-strings.
    In your example you have 4 times with 50...
  9. Thank You! Now it works! I think i had...

    Thank You!

    Now it works!

    I think i had Tomatoes on the eyes!
    He who makes no mistakes makes nothing.
  10. Here a call with given argument: 1608216082

    Here a call with given argument:
    1608216082
  11. sorry, my fault.# In the original code i used ...

    sorry, my fault.#

    In the original code i used

    int argc

    What i don't understand is, when i call the programm without any argument it crashes in FreeDOS.
    The same EXE works fine if i call it...
  12. Programm in Freedos and djgpp chashes when using commandline paramters

    Hallo guys!

    I have tried just for fun to work with FreeDOS 1.2 and djgpp to write some
    programs in c.
    But when i try to access arguments argv[] from (example)



    int main(it argc, char...
  13. Replies
    9
    Views
    860

    By your first example you need to include...

    By your first example you need to include
    #include <string.h>
    After this change i've got 1 as return value of strcmp too.

    jimblumberg's exampe returns 49 of strncmp. That's the ASCII-Value of...
  14. May be this example can help you: #include...

    May be this example can help you:


    #include <iostream>
    #include <math.h>

    struct tbl
    {
    std::string cmdtxt;
    double (*funki)(double a);
  15. Replies
    8
    Views
    670

    Take a look to: YouTube...

    Take a look to:
    YouTube
  16. Replies
    3
    Views
    539

    Hallo muhammetekurt! Salem is right, this code...

    Hallo muhammetekurt!

    Salem is right, this code is terrible.
    The only way to delete goto is to swap out some code to functions:
    Like to change your example to this:

    first hungarian.h:

    ...
  17. Replies
    6
    Views
    718

    May be this source could be useful: ...

    May be this source could be useful:



    #include <stdio.h>
    #include <stdlib.h>
    #include <limits.h>
    #include <float.h>
    int main(int argc, char** argv) {
  18. Replies
    8
    Views
    312

    Hallo Bryan_Teir° I think you should read...

    Hallo Bryan_Teir°

    I think you should read something about the header limits.h and float.h:
    C Library - <limits.h> - Tutorialspoint
  19. Replies
    5
    Views
    545

    Second example. Tells you when the digits before...

    Second example. Tells you when the digits before decimal points are not equal:


    int compdouble(double da, double db, int stellen)
    {
    int rewer = -1, nachint_a = 0, nachint_b = 0, i, faktor =...
  20. Replies
    5
    Views
    545

    Hallo gawiellus I think it may be better you...

    Hallo gawiellus

    I think it may be better you compare the two double values with given number of decimals where the values are compared.
    example:


    #include <stdio.h>
    #include <math.h>
  21. Replies
    10
    Views
    532

    Hallo shaswat! This way was one of the elder...

    Hallo shaswat!

    This way was one of the elder standards of c


    // Forward declaration of a function
    #include <stdio.h>

    void tom(void)
    {
  22. Example to encrypt and decrypt files with permutated numbers

    Here is a program were i wrote by my own with Qt for linux to encrypt and decrypt files.
    It based on transposition of bits. It splits a file into blocks of a length you can
    select between 64, 128,...
  23. Simple way to store a 64 bit unsigned long into four unsigned short with union

    Hi guys!

    Here is a simple program what shows how to store a 8 byte long unsigned long into 4 unsigned short:
    first the header lintunion.h:


    #ifndef LONGINTUNION_H_INCLUDED
    #define...
  24. Replies
    15
    Views
    952

    Hi Foxel! The normal characters of a string...

    Hi Foxel!

    The normal characters of a string are between 32(space) and 127.
    It is possible that some systems have an other length for different characters. See UTF8 by Wikipedia



    //converts...
  25. Example to show possible combinations of numbers

    Hallo san12345!

    May be there is an example for you. IO wrote it by my own.
    But the program is in german language.
    But i hope some parts of the program can help cou.
    There are three parts:

    1....
Results 1 to 25 of 57
Page 1 of 3 1 2 3