- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
11 Posted Topics
Re: //ThisProgram is about CLS,A Command Prompot //Command used to Clear the screen #include<iostream> using namespace std; int main() { cout<<"Hello World!!"; system("cls"); cout<<"How Are You "; cin.get(); return 0; } | |
I want from program that it force the user to input valid value.When ever user enter caharcter in integer valriable it force the user to input the right value.But this does not work.If user input invalid value it start looping. #include <iostream> using namespace std; int main() { int x; … | |
Why This Program is not Changing Directory from C:/ to H: Drive or D: Drive. #include<iostream> using namespace std; int main(int a,char *b[]) { int option; cout<<endl<<"Enter 2 for 2nd Semster Programs "<<endl; cout<<endl<<"Enter 3 for 3rd Semster Programs "<<endl; cin>>option; if(option==2) { system("D:"); system("explorer ."); } else if(option==3) { … | |
Re: `int Product_Name;` The problem is in this code.You can't save a name into a Integer variable. `string Product_Name;` use this one.. | |
When I enter 2 values the third one is garbage..Don't Know why.. #include<iostream> #include "Size_Decider.h" using namespace std; int main() { int size=0,Encoded_Matrix_Column=1; cout<<"Enter The Number of Digits "; cin>>size; int *Digits= NULL; Digits = new int[size]; Encoded_Matrix_Column = matrix_size_checker(size,Encoded_Matrix_Column); cout<<"It Has "<<Encoded_Matrix_Column<<" Columns"<<endl; cout<<"It Hass 3 Rows"<<endl; //Intilizing every … | |
Re: #include <iostream> using namespace std; //FUNCTION DECLARATION float convertCelsiusToFahren(); float convertFahrenToCelsius(); int main() { int request = 0; cout << "Simple Temperature Conversion Program\n"; cout << "=======================================\n\n"; cout << "Choose one of the below to convert \n\t1) Celsius to Fahrenheit \n\t\t OR\n\t2) Fahrenheit to Celsius? " << endl; cin >> … | |
Re: //Hope This Helps #include<iostream> using namespace std; int main() { int size=0,x=0; cout<<"Enter The Size of Message "; cin>>size; char message[size]; cout<<"Enter Message "; cin>>message; for(int i=0;i<size;i++) { for(int j=0;j<size-1;j++) { if(i!=j && message[i]<message[j]) { char temp=message[i]; message[i]=message[j]; message[j]=temp; } } } for(int i=0;i<size;i++) { cout<<message[i]<<endl; } system("pause"); } | |
Re: //Hope this Helps #include<iostream> using namespace std; int main() { int i=1,y=0,x=1; int number=0; cout<<"Enter Number to Find Square Root "; cin>>number; for(i=1;i*i<=number;i=i+1) { y=i*i; x = (i+1) * (i+1); if(x>number) { break; } } cout<<"The Square of the Number is "<<i<<endl; system("pause"); } | |
Can anyone tell me about these lines that why we use them in our program during filehandling process..Thanks in advance.. :) int pos=(-1)*static_cast<int>(sizeof(account)) | |
I can't Delete a specific record from my program.I need Your Help Guys.Thank's in Advance.. #include<iostream> #include<fstream> using namespace std; class teacher{ long long cnicno; char name[30],fathername[30],address[50],grade[10]; public: void input() { system("cls"); cout<<"Enter CNIC.No without '-' : "; cin>>cnicno; cout<<"Enter Name : "; cin.ignore(); cin.getline(name,30); cout<<"Enter Father Name : "; … |
The End.