Search:

Type: Posts; User: Calavera

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,610

    But i dont want to give a size to the array. I...

    But i dont want to give a size to the array.
    I want to use it like the ArraList in java.
    How can i do this?

    Thanks
  2. Replies
    4
    Views
    1,610

    Segmentation fault

    Hi, I have a problem with the segmentation fault.
    This method adds letters to a string(name), but I dont know if i'm doing the wright way, I suposse it´s wrong, because the output is not the same of...
  3. Thread: sorting array

    by Calavera
    Replies
    5
    Views
    1,187

    my objective is to sort the string, but the...

    my objective is to sort the string, but the letters can't be duplicated

    eeiiuuooaa is an example

    programming -> agimnopr
  4. Thread: sorting array

    by Calavera
    Replies
    5
    Views
    1,187

    sorting array

    Hello!



    main() {

    char nome[] = "iiooeeuuaa";

    int i;
  5. Thread: Chdir()

    by Calavera
    Replies
    1
    Views
    2,460

    Chdir()

    Hello!

    I start to give an example:

    I'am running the program in the directorie("/home/big/work2")

    Then in the middle of the program i change the directorie:
    I've used chdir("FINE");
    And...
  6. Thread: numbers

    by Calavera
    Replies
    5
    Views
    1,240

    This function is retrieving in seconds: ...

    This function is retrieving in seconds:



    int time(void) {

    int InicialTime, FinalTime, TotalTime;
    struct timeval inicio, fim;

    TempoInicio = (inicio.tv_sec + inicio.tv_usec*1.e-6);
  7. Thread: numbers

    by Calavera
    Replies
    5
    Views
    1,240

    yes, that's what i used. But how can i get the...

    yes, that's what i used.
    But how can i get the centesimals only with the microseconds?
    I think that a second haves 1000000 microseconds?
  8. Thread: numbers

    by Calavera
    Replies
    5
    Views
    1,240

    numbers

    hi!

    I have used gettimeofday() to calculate the difference between a random character that appears in the screen, and a character pressed by a user.
    And i retrieve it in seconds.

    I want to...
  9. Thread: File

    by Calavera
    Replies
    4
    Views
    1,038

    The file is dates.txt or can be something else.

    The file is dates.txt or can be something else.
  10. Thread: File

    by Calavera
    Replies
    4
    Views
    1,038

    File

    Hi!

    How can i put a file into a paste and then read it again from that paste.

    // mkdir("PASTE");

    char string[] = "MONKEY";
    File *fp;
    fp = fopen("dates.dat", "w");
    fprintf(fp, "%s\n",...
  11. Thread: Date and Time

    by Calavera
    Replies
    3
    Views
    1,986

    Retrieve the date of all inputted characters. ...

    Retrieve the date of all inputted characters.

    Example: a
    26-11-2004:11:50:10 // WIll not appear, it only appears at the end
    ...
  12. Thread: Date and Time

    by Calavera
    Replies
    3
    Views
    1,986

    Date and Time

    I have a function that returns a date and hour with a specified format.




    int c = 0;
    char stringdate[] = {'\0'};

    int date(void) {
  13. Replies
    6
    Views
    987

    scanf("%f", &a);

    scanf("%f", &a);
  14. Replies
    6
    Views
    2,052

    está armado em palhaço! o gajo é mesmo parvo. ...

    está armado em palhaço!
    o gajo é mesmo parvo.

    I want to do a scanf without pressing the enter key in the end of the input.
  15. Replies
    6
    Views
    2,052

    reading a character

    HI

    How can i read a character without pressing the enter key?
  16. Replies
    8
    Views
    1,627

    I have read the FAQ, and i have already...

    I have read the FAQ, and i have already understand it.
    Thanks aniway.
  17. Replies
    8
    Views
    1,627

    My operating system is Linux. The gnu compiler....

    My operating system is Linux.
    The gnu compiler.


    #include <stdio.h>

    /**************************************
    function generateChar()
    returns a lower case character...
  18. Replies
    8
    Views
    1,627

    hide Character

    HI.

    Does somebody know how to put a char # in every character we type.
    I think that it is with Systems Calls.

    Example: The program gives me a random character.
    Then i have to...
  19. Thread: argc

    by Calavera
    Replies
    16
    Views
    3,001

    You wrigth! My mistake.

    You wrigth!
    My mistake.
  20. Thread: argc

    by Calavera
    Replies
    16
    Views
    3,001

    Argv[1] will be the program Argv[2] will be the...

    Argv[1] will be the program
    Argv[2] will be the number of tests

    Ex: character(name of the program) 5(Number of times of the test)
  21. Thread: argc

    by Calavera
    Replies
    16
    Views
    3,001

    argc

    Hi!

    I did a program that generates a random character and the user have to type the same character on the keyboard.
    What i want to do is to use ARGC to define the number of characters that the...
  22. Replies
    12
    Views
    1,393

    But in the last time the special character always...

    But in the last time the special character always appeared at the front of the vowel.
    Now i will try to do my code lokking sometimes to your code!

    Thanks very much.
  23. Replies
    12
    Views
    1,393

    I have changed the if statement to give the...

    I have changed the if statement to give the lower case sequence that begin with a lower case vowels:

    char vowels[] = "aeiou";
    /*I do a cycle to verify vowels*/
    if(islower(input[i]) &&...
  24. Replies
    12
    Views
    1,393

    #include #include main()...

    #include <stdio.h>
    #include <ctype.h>

    main() {

    char input[50];
    char new[50];
    int i = 0;
    int j = 0;
  25. Replies
    12
    Views
    1,393

    Like this: COMputER Output :??...

    Like this:
    COMputER
    Output :?? put???n @
Results 1 to 25 of 29
Page 1 of 2 1 2