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
Type: Posts; User: Calavera
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
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...
my objective is to sort the string, but the letters can't be duplicated
eeiiuuooaa is an example
programming -> agimnopr
Hello!
main() {
char nome[] = "iiooeeuuaa";
int i;
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...
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);
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?
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...
The file is dates.txt or can be something else.
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",...
Retrieve the date of all inputted characters.
Example: a
26-11-2004:11:50:10 // WIll not appear, it only appears at the end
...
I have a function that returns a date and hour with a specified format.
int c = 0;
char stringdate[] = {'\0'};
int date(void) {
scanf("%f", &a);
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.
HI
How can i read a character without pressing the enter key?
I have read the FAQ, and i have already understand it.
Thanks aniway.
My operating system is Linux.
The gnu compiler.
#include <stdio.h>
/**************************************
function generateChar()
returns a lower case 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...
You wrigth!
My mistake.
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)
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...
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.
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]) &&...
#include <stdio.h>
#include <ctype.h>
main() {
char input[50];
char new[50];
int i = 0;
int j = 0;
Like this:
COMputER
Output :?? put???n @