How does a person break an inifinite for(;;) loop?
-Thanks
User Profile
Collapse
-
Breaking an infinite loop
-
Two functions running at once.
Is it possible for a C/C++ program to have 2 functions running at once? For example, the program holds a for() loop while it moves onto another function? -
Reading a line from a file.
I have been given a challenge by a friend. He has sent me a 570mb text file and I have to find out what is on line 230. The problem is as you probably realise, it is almost impossible to open this via notepad or other text editors because it will freeze. So I want to create a program that will read line 230. Is this possible? -
I am using a Windows based computer. -
Win-C++...%Number_Of_Processors%
Hi! I'm currently trying to recreate my own version of CPUID's CPUz. Howewver, I'm unsure of how to implement this into my code...I tried using the system() call but then that shows this:
'1' is not recognized as an internal or external command,
operable program or batch file.
1
Can anyone show me how it can display the value "1" without showing the other stuff? -
Make a clickable url which opens/creates 2 Firefox configuration files
As a start page I usually have several of my bookmarks and a "Home portal". I have decided that I want a new feature.
Code:<html> <script language="javascript"> onclick="document.location.href="about:config" </script> </html>
-
Text Parser
Can someone tell me what the program is dumping? Looks like some kind of memory code. Memory dump maybe?
Code:#include <iostream> #include <fstream> using namespace std; int main () { ofstream myfile; myfile.open ("log.txt"); myfile << "Writing this to a file.\n"; myfile.close(); cout << myfile; return 0;
-
PHP Login script.
Can somebody just zip and upload a php login script for me and tell me how to use it. I'm sick of using MYSQL and getting errors and I don't understand and also finding code that doesn't work. I also don't have the time to learn PHP and figure it out for myself. -
I don't quite understand the Standard template library. :(
This is what I have currently:
Code:#include <iostream> using namespace namespace_name std::map; { int <key_type, data_type, [comparison_function]>; int <string, char> encoder; } std::map <key_type, data_type, [comparison_function]>; std::map <string,
Leave a comment:
-
Encoder
I made this python script with another guy a year ago
Code:### This is a dictionary... MyDict={'a':'$','b':'i','c':'q','d':'s','e':'w','f':'~','g':'d','h':'2', 'i':'5','j':'6','k':'a','l':'g','m':'-','n':'j','o':'z','p':'%', 'q':'h','r':'9','s':'f','t':'7','u':'+','v':'c','w':'0','x':'8', 'y':'/','z':'x',' ':'*'} ## This is just to show the mapping of the 'encoding'
-
Quadratics.
Gah, another program I can't find my error in!
Code:// Quadratic equation // (b + sqrt(b^2 - 4ac)) / 2a #include <iostream> using namespace std; int main() { int a; int b; int c; int d; int e; int f; int g; system("cls"); cout << "--------------------------------------------------------------------------------";
-
Code://Voltage dividing circuit calculator!!! // In series! #include <iostream> #include <iomanip> using namespace std; int main() { int i; int j; int k; int l; int m; int n; int o; cout << "Number of Resistors? \n"; cin >> i; cout
Leave a comment:
-
Displaying Ohms Symbol in C++
I was told that to put the OHMS symbol into a C++ program you write "\u2126"?
My program fed this to me: 
What is the correct method? If anyone could show me how to show superscript and subscripts when running the C++ program, that would be great too (or maybe it's not possible to be shown?) -
Ok thanks for your help, i've cleaned up my code and it is functioning perfectly now. However, how do I tell the program to produce decimal numbers? (preferablly to 5 decimal places, rounded off)Leave a comment:
-
Here is the modified code.
Code://Voltage dividing circuit calculator!!! // In series! #include <iostream> using namespace std; int main() { int i; int j; int k; int l; int m; int n; int o; cout << "Number of Resistors? \n"; cin >> i;
Leave a comment:
-
Thanks, you have been a great help. One more problem though.
Number of Resistors?
1
R1's resistance?
142
R2's resistance?
22936723
Voltage supply?
04
Voltage across R1 is:
My program seems to be spewing out random numbers after each line even though i have typed nothing!Leave a comment:
-
Physics! Oh no! (Error in program calculating resistance)
Can anyone tell me why I'm getting a "non-lvalue in assignment" error in my C++ program? Errors are at line 30, 31 and 32.
Code://Voltage dividing circuit calculator!!! // In series! #include <iostream> using namespace std; int main() { int i; int j; int k; int l; int m; int n;
-
-
Another string...
I would like to find a Python program that makes this appear:
"Hello user 1, user 2, user 3, user 4"
And it must go all the way to user 10000.
No activity results to display
Show More
Leave a comment: