Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached

8 Posted Topics

Member Avatar for veledrom

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 …

Member Avatar for iigwk
0
649
Member Avatar for Shruti4444

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 …

Member Avatar for IIM
1
134
Member Avatar for smrati.katiyar

[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 …

Member Avatar for Ancient Dragon
0
130
Member Avatar for smrati.katiyar

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; …

Member Avatar for smrati.katiyar
0
127
Member Avatar for smrati.katiyar

[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]

Member Avatar for Narue
0
728
Member Avatar for raki.rakesh8081

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.

Member Avatar for smrati.katiyar
0
355
Member Avatar for smrati.katiyar

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 …

Member Avatar for VernonDozier
0
90
Member Avatar for dlube

[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; …

Member Avatar for smrati.katiyar
0
104

The End.