How to make C++ give me a chance to inter a number while excuting?
Iam Trying to simulate a hardware "pci" by visual c++ program.....
" i don't have the hardware right now so i want to test my program"
the hardware is about to inter a number for example from switches compare it to other number also from switches.."which iam gonna take it from 1 textbox"...
1- inter first number
2- and then wait for strop on pin 3 of the switches " eg. sw3= 0...1...0 iam ready to read 2nd number"
3- inter the second number on the same text box....
4-then display the largest on leds which will be a message box for me
the problem is when I inter the first number i keep checking for the strop to be ready to inter next value but compiler keep checking and doesn't give me a chance to change the value of the textbox "not responding infinite loop"
this is the code
how can I make the compiler to let me edit the text box while it's inside the while loop
can you please support me to understand what is wrong in this code, I am getting error as
sytnax error near unexpected token if
if then
code is
cat text.txt | /path/mapper.sh
data in file is
hi hi how how are you
while read line
do
for word in $line do
if then
wcount=`echo... (4 Replies)
Hi,
input:
AA|BB|CC
DD|EE
FF
what I am trying to get:
AA|BB|CC
DD|EE|
FF||
I tried to create first an UDF for printing repeats, but I think I have an issue with my END section or my array:
function repeat(str, n, rep, i)
{
for(i=1 ;i<n;i++)
rep=rep str
return rep
}
... (6 Replies)
Hello everybody,
I use `case' quite a lot but , excellent as it is , it only gives one
final result ; can anyone suggest a way whereas , say long
lists of choices are given and I , or a user could select either one
two or any number of results to be echoed .
many thanks in... (3 Replies)
Hi,
I want a script which search for a pattern "good" in a huge file and provide me number of occurences of such pattern in a file.
lets say i have a file test.txt contents as below
good is good
but good is sometime bad and sometime good
you are very good and good is always good
... (7 Replies)
We have a v240 running Solaris 10, and an application that I don't want to go through the pain of reinstalling on a new system right now.
Can I just move those disks to a v440 for an easy upgrade?
At first I thought the idea was laughable, but then I started thinking that they are both Ultra... (9 Replies)
Hi All,
I have a big file which looks like this:
0 4.5 6.7
0 3.4 6
1 5 6
1 6 4
2 9 4.44
Above is just a miniature version of the file. In fact, considering the first column of the file that is 0 0 1 1 2, the numbers in actual go until 10442.
This means my actual file looks like... (2 Replies)
hi
i am trying the below code for the following
|_
| |_
| |_ |_
| |_ |_ |_
| |_ |_ |_ |_
and for this code also
*
* *
* * *
* * * *
* * * * *
!/bin/bash
#i = "*" (2 Replies)
OK this one sounds like it should be a natural...
it must be possible to send a number say 200 to a text file and later use it as a variable?
yada yada > file.txt
how would I retrieve that number to use as a variable? Is this possible? (5 Replies)