Summary: Have anyone wondered how many iterations can a forloop run in a second? It does a simple task like: for(int i = 0; i < some_value; i++) printf("%d ...
Summary: NO s--- MAN IT WORKS! I'm glad to see we're in agreement! ...I asked it here because I hoped to get clearlier answer. An easy way to clear the console...
Summary: for (n=0; n = 0; j--) { tmpstrg[j] = *pSentence; ++pSentence; } This loop appears messed up. Assuming that you meant the middle section to be "n ==0"...
Summary: Hi everyon, I am working on a program that encrypts 4 letter word, and I am testing it, when I out the original message it outputs well but when I ou...
Summary: Hi everyone, I am working on encryption program when I try to run the program it gives an error like this sbox.cpp: In function `char s_box(char *, c...
Summary: Hi everyon, I am working on a program that encrypts 4 letter word, and I am testing it, when I out the original message it outputs well but when I out...
Summary: I don't know C, but I do know what the problem is. If you're calling this function in a loop, the time does not change in the loop iterations. So yo...
Summary: The for /f loop iterates the output from a command or text file line by line so the variable, in this case %%a(can be a-z or A-Z case is important in ...
Summary: Hey thanks a lot, thats just what I need! The solution is interesting, could you elaborate on this section: set /a N+=1 set v!N!=%%a -I'm assuming N ...
Summary: k im new and i just want to make a program that uses for loops to somehow interate and print out every unicode symbol from 0001 to 9999. basically all...
Summary: Did I miss the mention on what language we are talking about here?? The method is the same whether the loops are infinite or not. As George said, t...
Summary: Hi. I am learning one dimensional arrays in C++ out of a couple books. I noticed that a common way to initialize these arrays was using a "for" loop. ...
Summary: that is not a difficult task, but if is a homework question, then i reckon you should first make an attempt. you made the right decision by using a fo...
Summary: K, im currently learning java and I wanted to make a program that is short and prints all the unicode symbols out in the cmd prompt (preferably on the...
Summary: Would anyone mind showing me how to rewrite the following small program using a while loop as the outer loop and a do-while loop as the inner loop? ...
Summary: Check the conditions in your for loops. For example, a for loop with the following would produce an infinite loop: for (int i = 0; i >= 0; i++) { //...
Summary: It's OK. I found out how to do it at: http://www.seanet.com/~shardy/ntscript.html#forvarfaq Here's how: Environment variables that get evaluated with...
Summary: XP Pro Batch Script: I am trying to total multiple variables and store the result in a variable like tot_var. I would like to iterate thru the variabl...
Summary: You will need to enable delayed expansion before your for loop like so: setlocal enabledelayedexpansion for %%x in (whatever) do ( Then within the l...
Summary: Hold on, if you've got a for loop that goes through all the .jpg files in your directory, and you then rename them, isn't the loop going to find the r...
Summary: I am taking an elective course in C++ programming, but the instructor gave us ONE week to learn c++, now he is into algorithms and I am so lost. Can ...
Summary: I'm working on a moderately complex batch file. The original requirement was a way to do a remote backup for a user who works from home to ensure ...
Summary: I've just started learning c++ and am trying to write a semi-complicated console program. Basically it's just a simple label program(well it doesn't d...
Summary: If you are not inside a block (e.g. a FOR loop or anything that involves surrounding multiple commands in parentheses) then the following should wor...
Summary: This calls a sub for each line in the CSV file. The sub then uses a goto-loop to echo one value from the comma-separated list in each iteration. (The ...