- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
8 Posted Topics
it's very simple whenever you are trying to access /var/www, using "cd /var/www" what you should do... 1)open terminal 2)type "sudo bash" 3)it will ask you for your user account password, fill the password 4) now do "cd /var/www" This way you have full write access now do whatever you …
cat filename | grep word | echo "$?" if the result of above oneliner is 0 it means the word is there in the file . if it's non zero it means word is not there.(echo "$?" tells us whether the previous command was successful or not) let say your …
[CODE] #include <iostream> using namespace std; int main() { cout << "enter" << endl; int a,b; cin >> a >> b; cout << a << " " << b << endl; return 0; } [/CODE] in the code given above when the input is INPUT: 45 12 OUTPUT: 45 12 …
i have written a class to add matrices ,line 51 of the code has problem. debugger is showing segmentation fault there . please suggest the correction. [CODE] #include <iostream> using namespace std; class mat { int row; int column; double **a; public: mat(){} mat(int r,int c) { row = r; …
[code] class complex { int real; int imag; public: complex(){}//why default constructor is always needed complex(int a,int b){real = a;imag = b;}// why can't we define only this constructor ~complex(){} }; [/code]
there is a package called usb-modeswitch ,install it using synaptic . i am using this package since last one and half year. i am sure it will solve your problem.
i am not sure why the value of b is coming out as 0 according to me it should come out as 3 [CODE]#include <iostream> using namespace std; void read(int a[],int n) { for (int k = 0;k < n;k++) { cout << "enter the " << k << "th …
[CODE] #include <iostream> #include <cmath> using namespace std; int main() { double investment = 0; double monthly_payment = 500; for (int k = 0;k < 20;k++) { for (int j = 0;j < 24;j++) { investment = investment + monthly_payment; } monthly_payment = 500*pow(1.1,k+1); } cout << investment << endl; …
The End.
smrati.katiyar