What do you mean it doesn't run? It doesn't compile? It crashes when you attempt to run it?
How are you testing to see if the swap actually occurred anyway? All i see is a call to 'swap' and then...
Type: Posts; User: Feengur
What do you mean it doesn't run? It doesn't compile? It crashes when you attempt to run it?
How are you testing to see if the swap actually occurred anyway? All i see is a call to 'swap' and then...
aadil7,
How about since tool just did the task for you, why don't you breakdown the (short) function Tool wrote for you and explain it to us?
If you really want to learn it'll do you good.
...
gah... late again...
so according to the wiki ??(??) = []
yep. that's what you need since you're passing the address of the var to the function.
yep. you still haven't setup your wins/losses arrays correctly. it's just not gonna work like that. :P
either use malloc if you really want to use dynamic arrays OR for just setup the arrays so...
Welcome to the forum!
I can't currently test your code to see exactly what is happening, but from a quick overview of the code, I can't really find anything that would reset the 'plays' counter....
i know this isn't relevant.... but this post is an utter fail.
Here's an example that would have made just as much sense:
"Hey do you know?"
What you're referring too as CamelCase is actually StudlyCaps
B0 sets the baud rate to '0' and should indicate a disconnection. Consider the terminal to be like a phone, when you want to disconnect from a call you 'hang up' the phone (place it on the receiver).
Yeah, it sounds like you could generate a diff using a modified version of the Delta encoding method and apply the diff as a patch on the device end.
Yep. That's why I asked for what his data looks like and also why I linked Kolmogorov complexity.
^ Exactly. If your data differs a LOT between each transmission, then delta encoding is completely useless. That is why I asked how redundant the data is.
Check out Kolmogorov complexity -...
How redundant is the data being transmitted?
You may want to look into:
Delta encoding - Wikipedia, the free encyclopedia
Commonly used for packet compression and VERY easy to implement.
...
Think about it like this....
Let's say you have a bag with 50 coins in it. 49 of those coins are copper, but 1 of them is pure gold.
You have been tasked with the job of finding that gold coin...
@mortehau
I would recommend setting it as your future goal instead of your present task.
Start from the ground up with the language. This site has an awesome set of tutorials that will surely...
no problem. It happens all the time!
Because your condition is wrong. :)
for(i=0;i>=7;i--)
notice anything wrong with that?
If 'i' is set to zero and your condition is that it should be GREATER than or equal to '7' how will...
Your explanation makes sense sk8er, but the problem itself does not......
I guess I overlooked the line that stated that a new occurrence of a word would be added to the front of the list.
Why...
woops!
I missed the 'Thank you' part as well....
uhhh. Is this all the info you were given with this problem? There must be something missing....
Based on the rules from your explanation, this is what the 'Sample Input' should actually look...
how are you 'getting the string' from the user?
Thanks for the info jeff and MK27!
I don't know if this will help you very much, but this is what a quick google search returned:
http://www.delcom-eng.com/DelcomCD/G1/USBChips/USBPRGMNL.pdf
The focus of the document is how to...
@artist
I didn't take into account the system("cls"); line at the top of the while loop.
The program is actually printing the strings, but when it loops back to the menu 'system("cls")' is...