✳️ خواندن و نوشتن از فایل در C
—------------------------------------------------
#include <stdio.h>
void main() {
FILE *fp;
char buff[255];
// %%%%%%%%%%%%% Write
fp = fopen("g:/test.txt", "w+");
fprintf(fp, "This is testing for fprintf...\n");
fputs("This is testing for fputs...\n", fp);
fclose(fp);
// %%%%%%%%%%%%% Read
fp = fopen("g:/test.txt", "r");
fscanf(fp, "%s", buff);
printf("1 : %s\n", buff );
fgets(buff, 255, (FILE*)fp);
printf("2: %s\n", buff );
fgets(buff, 255, (FILE*)fp);
printf("3: %s\n", buff );
fclose(fp);
}
—----------------------
🆔 @computeriha
—------------------------------------------------
#include <stdio.h>
void main() {
FILE *fp;
char buff[255];
// %%%%%%%%%%%%% Write
fp = fopen("g:/test.txt", "w+");
fprintf(fp, "This is testing for fprintf...\n");
fputs("This is testing for fputs...\n", fp);
fclose(fp);
// %%%%%%%%%%%%% Read
fp = fopen("g:/test.txt", "r");
fscanf(fp, "%s", buff);
printf("1 : %s\n", buff );
fgets(buff, 255, (FILE*)fp);
printf("2: %s\n", buff );
fgets(buff, 255, (FILE*)fp);
printf("3: %s\n", buff );
fclose(fp);
}
—----------------------
🆔 @computeriha
Forwarded from دستیار زیر نویس و هایپر لینک
✳️ کتاب GUI Design for Android Apps
🌎 لینک دانلود:
🌎 http://uploadboy.me/ve41zwfrau61/@computeriha-GUI%20design%20for%20android%20apps.pdf.html
🆔 @computeriha
🌎 لینک دانلود:
🌎 http://uploadboy.me/ve41zwfrau61/@computeriha-GUI%20design%20for%20android%20apps.pdf.html
🆔 @computeriha
Forwarded from دستیار زیر نویس و هایپر لینک
This media is not supported in your browser
VIEW IN TELEGRAM
✳️ تلگرام همچنان می تازد 😄
🆔 @itfarsi
🆔 @itfarsi
Forwarded from دستیار زیر نویس و هایپر لینک
✳️ میدانیم که استفاده از دستور if در متلب باعث کاهش سرعت برنامه می شود. یه راه حل ساده برای محدود کردن اعداد یک آرایه بین دو باند رو ببینید.
🆔 @computeriha
🆔 @computeriha
✳️ نوشتن تابع بازگشتی در C (فاکتوریل)
—------------------—
#include <stdio.h>
int factorial(unsigned int i) {
if(i <= 1) {
return 1;
}
return i * factorial(i - 1);
}
int main() {
int i = 15;
printf("Factorial of %d is %d\n", i, factorial(i));
return 0;
}
—----------------------------
🆔 @computeriha
—------------------—
#include <stdio.h>
int factorial(unsigned int i) {
if(i <= 1) {
return 1;
}
return i * factorial(i - 1);
}
int main() {
int i = 15;
printf("Factorial of %d is %d\n", i, factorial(i));
return 0;
}
—----------------------------
🆔 @computeriha
Forwarded from دستیار زیر نویس و هایپر لینک
✳️ کتاب در مورد ساختمان داده و برنامه نویسی
✳️ Notes on Data Structures and Programming Techniques
🌎 لینک دانلود:
🌎 http://uploadboy.me/mnrmptat5eur/@computeriha-notes_data.pdf.html
🆔 @booksharing
🆔 @computeriha
✳️ Notes on Data Structures and Programming Techniques
🌎 لینک دانلود:
🌎 http://uploadboy.me/mnrmptat5eur/@computeriha-notes_data.pdf.html
🆔 @booksharing
🆔 @computeriha
Forwarded from دستیار زیر نویس و هایپر لینک
Forwarded from دستیار زیر نویس و هایپر لینک
✳️ برنامه نویسی c#
🌎 لینک دانلود:
🌎 http://uploadboy.me/n0keu32fr73d/@computeriha-csharp_tutorial.pdf.html
🆔 @booksharing
🆔 @computeriha
🌎 لینک دانلود:
🌎 http://uploadboy.me/n0keu32fr73d/@computeriha-csharp_tutorial.pdf.html
🆔 @booksharing
🆔 @computeriha
Forwarded from Deleted Account
📔📕📗
به مناسبت نمايشگاه كتاب
فروش كتاب "امنيت اطلاعات"
با ٢٠٪ تخفيف و ارسال رايگان به سراسر كشور
👇👇👇
http://goo.gl/rtLLbO
به مناسبت نمايشگاه كتاب
فروش كتاب "امنيت اطلاعات"
با ٢٠٪ تخفيف و ارسال رايگان به سراسر كشور
👇👇👇
http://goo.gl/rtLLbO
✳️ اولین برنامه cpp
#include <iostream>
using namespace std;
// tozih dar ayande
int main()
{
// cout bejaye printf dar c
cout « "Salam @computeriha"«endl;
return 0;
}
🆔 @computeriha
#include <iostream>
using namespace std;
// tozih dar ayande
int main()
{
// cout bejaye printf dar c
cout « "Salam @computeriha"«endl;
return 0;
}
🆔 @computeriha
✳️ تفاوت وجود using namespace std و عدم وجودشو ببینید (cpp)
#include <iostream>
int main()
{
std::cout « "Hello World";
system("pause");
return 0;
}
—---------------------------------------------
#include <iostream>
using namespace std;
int main()
{
cout « "Hello World";
system("pause");
return 0;
}
—---------------------------------—
🆔 @computeriha
#include <iostream>
int main()
{
std::cout « "Hello World";
system("pause");
return 0;
}
—---------------------------------------------
#include <iostream>
using namespace std;
int main()
{
cout « "Hello World";
system("pause");
return 0;
}
—---------------------------------—
🆔 @computeriha
Forwarded from دستیار زیر نویس و هایپر لینک
Forwarded from دستیار زیر نویس و هایپر لینک
✳️ آموزش قدم به قدم برنامه نویسی وب با PHP (جلسه اول: #php1)
🌎 دانلود از لینک زیر:
🌎 http://uploadboy.me/2g8yg1wfspm4/PHP1.pdf.html
🆔 @itfarsi
🌎 دانلود از لینک زیر:
🌎 http://uploadboy.me/2g8yg1wfspm4/PHP1.pdf.html
🆔 @itfarsi
✳️ Function declaration, definition and call in c++
—---------------------—
// function declaration
int func();
int main()
{
// function call
int i = func();
}
// function definition
int func()
{
return 0;
}
—-------------
🆔 @computeriha
—---------------------—
// function declaration
int func();
int main()
{
// function call
int i = func();
}
// function definition
int func()
{
return 0;
}
—-------------
🆔 @computeriha
Forwarded from دستیار زیر نویس و هایپر لینک
✳️ آموزش قدم به قدم برنامه نویسی وب با PHP (جلسه دوم: #php2)
🌎 دانلود از لینک زیر:
🌎 http://uploadboy.me/mbqji9g4sjl1/php2.pdf.html
🆔 @itfarsi
🌎 دانلود از لینک زیر:
🌎 http://uploadboy.me/mbqji9g4sjl1/php2.pdf.html
🆔 @itfarsi