-
M.N.Safiyabe started the topic Variable in C in the forum C++ 2 years, 5 months ago
name = ‘Somebody Else’
def print_full_name(first_name, last_name)
name = first_name + ‘ ‘ + last_name
puts name
end -
M.N.Safiyabe started the topic if else statement in the forum C++ 2 years, 5 months ago
if (paygrade == 7)
if (level >= 0 && level <= 8)
salary *= 1.05;
else
salary *= 1.04;
else
salary *= 1.06;
cout << “salary is ” << salary << endl; -
M.N.Safiyabe started the topic How to add Python to path variable in Windows ? in the forum C++ 2 years, 5 months ago
$ echo export PATH=”<PATH_TO_python>
-
M.N.Safiyabe started the topic How to add Python to path variable in Windows ? in the forum C++ 2 years, 5 months ago
How to add Python to path variable in Windows ?
-
M.N.Safiyabe started the topic Difference between Turbo C++ and Dev C++1 in the forum C++ 2 years, 5 months ago
#include <conio.h>
#include <iostream.h>
void main()
{
clrscr();
cout << “Hello Geeks!” ;
getch();
} -
M.N.Safiyabe started the topic trunc() in c++ programming in the forum C++ 2 years, 5 months ago
#include <iostream>
#include <cmath>using namespace std;
int main()
{
double x = 10.25, result;
result = trunc(x);
cout << “trunc(” << x << “) = ” << result << endl;x = -34.251;
result = trunc(x);
cout << “trunc(” << x << “) = ” << result << endl;return…
-
M.N.Safiyabe started the topic What are class and object in C++? in the forum C++ 2 years, 5 months ago
// C++ program to demonstrate accessing of data members
#include <bits/stdc++.h>
using namespace std;
class Geeks {
// Access specifier
public:
// Data Members
string geekname;
// Member Functions()
void printname() { cout << “Geekname is:” << geekname; }
};
int main()
{
// Declare an object of class geeks
Geeks obj1;…[Read more] -
M.N.Safiyabe started the topic What are class and object in C++? in the forum C++ 2 years, 5 months ago
class MyClass { // The class
public: // Access specifier
int myNum; // Attribute (int variable)
string myString; // Attribute (string variable)
};int main() {
MyClass myObj; // Create an object of MyClass// Access attributes and set values
myObj.myNum = 15;
myObj.myString = “Some text”;//…[Read more]
-
M.N.Safiyabe started the topic Go to statement in c++ in the forum C++ 2 years, 5 months ago
# include <iostream>
using namespace std;int main()
{
float num, average, sum = 0.0;
int i, n;cout << “Maximum number of inputs: “;
cin >> n;for(i = 1; i <= n; ++i)
{
cout << “Enter n” << i << “: “;
cin >> num;if(num < 0.0)
{
// Control of the program move to…[Read more] -
M.N.Safiyabe replied to the topic C++ in the forum C++ 2 years, 5 months ago
#include <iosterm>
int main() {
std::cout << “Hello World!”;
return 0;
} -
M.N.Safiyabe started the topic C++ in the forum C++ 2 years, 5 months ago
C++
-
M.N.Safiyabe started the topic Program for Writing to File in C++ in the forum C++ 2 years, 5 months ago
Program for Writing to File in C++
-
M.N.Safiyabe started the topic How to Share Document in Microsoft Word? in the forum Microsoft Word 2 years, 6 months ago
How to Share Document in Microsoft Word?
