we stopped on 623, so down to 621, up to 623 :)
SgtMe 46 Veteran Poster Featured Poster
we stopped on 623, so down to 621, up to 623 :)
Hmmm...well I have to go to school in a minute anyway, so fine we'll call it 623 until someone else comes along. BTW it's morning here :|
Please post your code so we can see what is wrong or how best to change it.
<urdu>six-hundred-and-twenty-four</urdu>
;)
six cent vingt-quatre
Nein. Es ist sechshundertvierundzwanzig (624).
Code tags please nikki33.
You will need to repeat what VernonDozier has said for lines 9 to 13 (I think, this is why you put code tags ;) ). Also, you don't need the brackets when doing addition on the bottom line. You can delete the args for your main function, so it's just:
int main()
{
}
That's more like it ;)
624
OK Jon.Kiparsky you've had your fun now let's play the game properly please ;)
624
morning -> tired
Is this thread solved? If so, mark solved and upvote the posts that helped. Thanks :)
Well you could put a blank line underneath in a text editor. It would save a lot of time. I take it your using a loop to keep reading the lines?
chicken -> eggs
Here's a page with a short, decent description. Should help you out a little. It's got a point or two that we haven't covered.
http://www.wikihow.com/Tell-if-a-Proper-Fraction-Is-Simplified
PS. Haven't seen you around lately Lerner :)
PPS. Who likes my new avatar?!
waffle -> tasty
You have described your problem well enough for us to help, but we won't, because you need to show us effort, as that will show us that you are committed to the task and want to learn, and you don't just want to cream code off of us.
Please press the code tags button before pasting code. So you would code simplification? The first thing you should probably do is to test whether the fraction is prime. If the test returns false, then you should check what numbers can divide into it. Use while/for loops to test. Obviously, if either the top or bottom number is one, then you won't be able to divide, so you don't need to do all the tests. Again, you should use loops to keep dividing until you get to a prime.
Maybe you should check out some basic C++ tutorials. If you could write out the logic in words, I would be able to give you some tips as to where you could go to learn the various bits and pieces :)
"Monster" - Skillet
cereal -> breakfast
OK. Do a google search for how to convert numbers to binary, hex, octal and so on.
Sweet code! May I recommend adding getchar(); at the end to pause? Just makes it a little easier for the user :)
Well if you could explain what you have to do, we could help you out.
danger -> death
618
Please provide more detail on the question. I'm not sure what's going on with the .,.,.. in the middle of the question, so please explain that. Furthermore, you must show effort (ie. your current code), before we will help.
614 (lets get it goin')
610...yeah...its um...gripping ;)
cake -> icing
I had a quick google, and I have to say, there really isn't much out there. In some place I saw something about using the Windows SDK? Do a little research and see if that will help.
Here's one of the place I saw it.
http://social.msdn.microsoft.com/Forums/en/xpwirelesssdk/thread/8bd08edc-d361-47f4-ad90-e29601cada7d
Please mark solved.
Anddddddddddddddddd...back to 608
608 :)
608
608
melt -> chocolate
Do you have a secret weapon? 0.o Though I guess it wouldn't be so secret if you told me ;)
Five times a week?! I only play once for an hour each week...although in the summer I get 3 hours a week across 2 days.
608
toast -> butter
You would want to read the line into an array, and split it at the spaces, so you have little blocks of data. Obviously the first array value (position 0) will be "123", so you can just leave that one, but the next bit would be "d52.55". You would want to read the first character of that string to determine a deposit or withdrawal, and put the value of "52.55" into a variable of type float.
Here's part of a program I made a while ago (The test string there was from someone else's project that I helped with a while back). It uses tokens with stringstream to split strings into arrays. Have a look through and see if you can adapt it to be put in your code.
#include <string>
#include <sstream>
#include <iostream>
using namespace std;
string SplitVerts(string data)
{
string in_data=data;
string array_data[20];
stringstream split(in_data);
string token = ",";
int i = 0;
while (split>>token){
array_data[i] = token;
i++;
}
int j = 0;
while (j < 20){cout<<array_data[j]<<endl; j++;}
}
int Main(){
cout<<"105:1:CME,20100601,07:34:22.796,GRC,GE,201009,FUT,XGGRC,0G4LHZ013,14ijpol1vsu7l7,Fill,0000D9DB,B,00000,99.155,2,99.155,20100601,07:27:34"<<endl;
}
Other than that, do a few google searches and see what you can turn out.
Hope this helps :) (If so, please upvote :P )
Please use code tags. What problem are you having? You can never describe to us a problem in 8 words. We need more detail.
^ Is relatively new here
< Has a horrible cough
V Is wondering whether or not to post a reply.
Please explain your question better. One sentence is not enough to describe a problem to us. It appears that English is not your main language, so I can understand that, but you have shown no effort, and have not given us enough detail to help you.
In Tokyo, a bicycle is faster than a car for most trips of less than 50 minutes!
I'm not quite sure what you are trying to get at. Dev-C++ has plenty of options on creating projects...what is your primary language?
EDIT: I love that site AncientDragon :)
I personally use Dev-C++. I believe it's no longer in development, but there are plenty of add-on packages that make it really simple to install new libraries. Apparently Code::Blocks is currently the best IDE.
Rugby and Tennis :D Not unusual but hey...
I ran your code in NetBeans:
ERROR 1:
SuitEnumerator(suit):
^
SyntaxError: invalid syntax
(You have a random colon [:] on the end. Remove it)
ERROR 2:
card_list = [[ (rank, suit) for suit in range(4)] for rank in range(1, 14)]]
^
SyntaxError: invalid syntax
(You have one too many close square brackets on the end
ERROR 3:
Traceback (most recent call last):
File "PATH", line 279, in <module>
show_hand(card_list)
File "PATH", line 263, in show_hand
RankEnumerator(rank)
File "PATH", line 71, in RankEnumerator
if rank.isdigit():
AttributeError: 'tuple' object has no attribute 'isdigit'
(Not sure how to fix. Look through your code. It appears that rank is a tuple at the time that line is executed)
I'll have another look later.