Forwarded from کامپیوتری ها
#یادگیری_ماشین #ارشد و #دکتری #هوش_مصنوعی
#machine_learning
Introduction to Machine Learning
Ethem Alpaydin
#machine_learning
Introduction to Machine Learning
Ethem Alpaydin
کامپیوتری ها
✳️ C++ Exception Handling —------------------------ #include <iostream> using namespace std; double division(int a, int b) { if( b == 0 ) { throw "Division by zero condition!"; } return (a/b); } int main () { int x = 50; int y =…
1⃣0⃣ Define New Exceptions in c++
—-------------------
#include <iostream>
#include <exception>
using namespace std;
struct MyException : public exception
{
const char * what () const throw ()
{
return "C++ Exception";
}
};
int main()
{
try
{
throw MyException();
}
catch(MyException& e)
{
std::cout « "MyException caught" « std::endl;
std::cout « e.what() « std::endl;
}
catch(std::exception& e)
{
//Other errors
}
}
—------------------
0⃣1⃣ @computeriha
—-------------------
#include <iostream>
#include <exception>
using namespace std;
struct MyException : public exception
{
const char * what () const throw ()
{
return "C++ Exception";
}
};
int main()
{
try
{
throw MyException();
}
catch(MyException& e)
{
std::cout « "MyException caught" « std::endl;
std::cout « e.what() « std::endl;
}
catch(std::exception& e)
{
//Other errors
}
}
—------------------
0⃣1⃣ @computeriha
Forwarded from IT (تکنولوژی اطلاعات)
✳️آخرین آپدیت جدید اینستاگرام
Inestgram 8.5.0
🌎 دانلود مستقیم 👇👇👇
🆔 https://telegram.me/joinchat/BMWizTugT5Qvr54A8-PPXA
Inestgram 8.5.0
🌎 دانلود مستقیم 👇👇👇
🆔 https://telegram.me/joinchat/BMWizTugT5Qvr54A8-PPXA
✳️20 ترفند جستجوگر گوگل که دانستن آنها به شما کمک خواهد کرد!
🌎 http://digiro.ir/google-20-and-best-tips/
➖➖➖➖➖
🆔 @ITfarsi
🌎 http://digiro.ir/google-20-and-best-tips/
➖➖➖➖➖
🆔 @ITfarsi
Forwarded from دستیار زیر نویس و هایپر لینک
1⃣0⃣ تابع نشان دادن زمان در پایتون و بدست آوردن ثانیه، دقیقه و ساعت
ShowCurrentTime.py
—----------------------------
import time
currentTime = time.time() # Get current time
# Obtain the total seconds since midnight, Jan 1, 1970
totalSeconds = int(currentTime)
# Get the current second
currentSecond = totalSeconds % 60
# Obtain the total minutes
totalMinutes = totalSeconds // 60
# Compute the current minute in the hour
currentMinute = totalMinutes % 60
# Obtain the total hours
totalHours = totalMinutes // 60
# Compute the current hour
currentHour = totalHours % 24
# Display results
print("Current time is", currentHour, ":", currentMinute, ":", currentSecond, "GMT")
—------------------—
0⃣1⃣ @computeriha
ShowCurrentTime.py
—----------------------------
import time
currentTime = time.time() # Get current time
# Obtain the total seconds since midnight, Jan 1, 1970
totalSeconds = int(currentTime)
# Get the current second
currentSecond = totalSeconds % 60
# Obtain the total minutes
totalMinutes = totalSeconds // 60
# Compute the current minute in the hour
currentMinute = totalMinutes % 60
# Obtain the total hours
totalHours = totalMinutes // 60
# Compute the current hour
currentHour = totalHours % 24
# Display results
print("Current time is", currentHour, ":", currentMinute, ":", currentSecond, "GMT")
—------------------—
0⃣1⃣ @computeriha
Forwarded from IT (تکنولوژی اطلاعات)
Forwarded from IT (تکنولوژی اطلاعات)
✳️ انویدیا کارت گرافیک GeForce GTX 1060 را معرفی کرد
🌎 http://digiro.ir/nvidia-announces-geforce-gtx-1060-graphics-card/
➖➖➖➖➖
🆔 @ITfarsi
🌎 http://digiro.ir/nvidia-announces-geforce-gtx-1060-graphics-card/
➖➖➖➖➖
🆔 @ITfarsi
0⃣1⃣ C++ Dynamic Memory
#include <iostream>
using namespace std;
int main ()
{
double* pvalue = NULL; // Pointer initialized with null
pvalue = new double; // Request memory for the variable
*pvalue = 29494.99; // Store value at allocated address
cout « "Value of pvalue : " « *pvalue « endl;
delete pvalue; // free up the memory.
return 0;
}
1⃣0⃣ @computeriha
#include <iostream>
using namespace std;
int main ()
{
double* pvalue = NULL; // Pointer initialized with null
pvalue = new double; // Request memory for the variable
*pvalue = 29494.99; // Store value at allocated address
cout « "Value of pvalue : " « *pvalue « endl;
delete pvalue; // free up the memory.
return 0;
}
1⃣0⃣ @computeriha
This media is not supported in your browser
VIEW IN TELEGRAM
0⃣1⃣ تقلید هوش مصنوعی از نوع راه رفتن انسان
📌 این ربات برای راه رفتن، ابتدا پاشنه پا را بر زمین میگذارد و با انگشتان پا، خود را به جلو میراند. / خبرفوری
1⃣0⃣ @computeriha
📌 این ربات برای راه رفتن، ابتدا پاشنه پا را بر زمین میگذارد و با انگشتان پا، خود را به جلو میراند. / خبرفوری
1⃣0⃣ @computeriha