Hi,
i get the following error when i try to connect to the localhost
"connection was refused when trying to connect to localhost"
can anyone suggest what must be the problem in the settings.
User Profile
Collapse
-
can You suugest any method in javascript that has the capability of downloading the contents of a website upto a certain depth without user interaction... -
One more problem in ur code.see the highlighted line i.e; the first while loop u have put a semicolon at the end of the line which should be removed.
Code:#include <iostream> using namespace std; int main() { int input; int InputCount=0; int RowSize=2; int ColumId = 0; cin >> input; if (input == 0); cout << "done"; [B]while((input[/]
Leave a comment:
-
The Outer most while loop of ur program will exit only if the value of input is 0.but the value of input is never modified which means if u enter input=2. then its going to retain that value throughout the program and that is why u r getting infinite loop. i hope that this should solve ur problem
Code:#include <iostream> using namespace std; int main() { int input; int InputCount=0; int RowSize=2;
Leave a comment:
-
Javascript method equivalent to Wget
can anyone suggest a method in javascript which is equivalent to the wget command in linux.actually i need a method in javascript which will help to download webcontents upto a certain depth without the user interaction.
please guide.Leave a comment:
-
Code:#include<iostream> int FindLowNum(int [], int ); int main() { const int arraySize = 20; int a[ arraySize ] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }; int total = 0; // sum contents of array a for ( int i = 0; i < arraySize; i++ ) total += a[ i ];
Leave a comment:
-
How to execute linux command (wget) from within javascript code
Hi,
i am new to javascript. actually i need to execute the wget command from within a javascript code, but i don't know the syntax for executing the linux-ccommands from within javascript code.
Can anyone guide please?
No activity results to display
Show More
Leave a comment: