- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
10 Posted Topics
Hey, when I run the following code: [CODE]for(double i = 3; i >= 0; i -= 0.2) { cout << i << " "; }[/CODE] I get the output "3 2.8 2.6 2.4 2.2 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2". For some reason, it doesn't output …
Hey, I have four labels in a form: label1, label2, label3, and label4. Now, if this was VB.NET, I would have used the following code to change their contents without having to type the code for each one separately: [CODE]For I = 1 To 4 Me.Controls("label" & I).Text = "Some …
You can make an array of char like Expression(63). Then check if any of the characters in the array is / by using a for loop. If it finds /, it should stores its location in a variable. So for [5 + 16 + 7 * 14 / 28] it …
Are 100 and 110 mentioned in your post denary or binary values?
Is this what you want: [CODE]#include <iostream> using namespace std; double percentage (int count_letter, int count) { double percentage, calc_a (count_letter), calc_b (count); percentage = calc_a / calc_b; percentage = percentage * 100; return percentage; } int main () { char text [2048], alphabet; int count_letter_total (0), count_letter_individual [26] = …
Do you mean that if you have the string "time" you want "eimt" as the output? What you could do is store your string in an array of char, and apply bubble or shuttle sort on it. You'll need to compare two consecutive elements (characters) and check whether the 2nd …
Hey, I was trying to make a program which displays two chars A and B on the screen. Using the WASD keys, it lets you move the A char around and using the arrow keys it lets you move the B char around. I wrote the following: [CODE]Module Module1 Dim …
Hey, I was just wondering whether it is possible to do multiple tasks in a console application at the same time. Like lets say if a program reads user's input and displays output at the same time, can the program carry on displaying output while it waits for user's input …
Hey, whenever I compile the code below the program compiles and runs but after a while I get the following error: System.IndexOutOfRangeException was unhandled Index was outside the bounds of the array. Also, when compiling I get the following: A first chance exception of type 'System.IndexOutOfRangeException' occurred in array_mult.exe The …
Salutations! Would anyone be kind enough to provide a general overiew as to what exactly is OpenGL. I searched the internet however, most of the material I came across didn't quite clearly state the different between OpenGL and GLUT. Also, what is SDL? I am quite familiar with C++ however …
The End.
SoulReaper1680