puts() Function | C Programming Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

i'm editing this comment so you don't have someone accusing you of something you didn't do under one of your posts. i'm truly sorry for doing so. thanks for your gracious reply and awesome videos~

aragorn
Автор

hi, one doubt:
A program in the language c, that does the following:
of a file A and a file B.
From file A it will read each row and each value in the row will assign it to a variable, except the first one which will assign it to an array. The first row will contain from 1 to n values, separated by the tab and that will be an array which will be a counter to do the following:
The entire contents of file B will be read and assigned to a variable, for example: variable Bfile .
For each element of the matrix, a text will be replaced inside the Bfile variable, and a file will be created for each element of the matrix.
example:
file A:
dataone \t datatwo \t datathree
value2
value3
value4
value5
B-file
foo foo foo Datartoreplace1 foo foo foo Datarepalce2 foo foo foo Datarepalce3 foo foo Datarepalce4 foo foo Datareplace5
Process
step one .- Read all the contents of file B and assign it to a variable, called Bfile.
step two.- read file A, create an array with the data from row 1 with the name arrayElements (in the example it is an array of three elements).
step three.- Assign the value of the second row of file A to the variable ReplaceValue1.
step three.- Assign the value of the third row of file A to the variable ReplaceValue2.
step three.- Assign the value of the fourth row of file A to the variable ReplaceValue3.
step three.- Assign the value of the fifth row of file A to the variable ReplaceValue4.
step four.- for each element of the arrayElements array, replace the first element of the array inside the Bfile variable with the text Datartoreplace1; replace the text Datarepalce2 with the variable ReplaceValue1; replace the text Datarepalce3 with the variable ReplaceValue2; replace the text Datarepalce4 with the variable ReplaceValue3; replace the text Datarepalce5 with the variable ReplaceValue4;
and at the end of the loop, save a text file with the name of the array element, in this case dataone . Do the same for the other elements.

robertocruz
Автор

It is very annoying to put a \n in the printf function when it is just a string literal

MarcoAurelio-svtk
Автор

I notice your on Mac, what app Is this?

navidnafeie
visit shbcf.ru