Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~19.4K People Reached
Favorite Tags
c x 1
Member Avatar for Duki
Member Avatar for BlackIris

Hi everybody, I'm having a little problem with finding sum of nested list in Prolog. So far what I have is [ICODE] totalSum([],0). totalSum([H|T],S):- totalSum(T,Sum), S is Sum + H. totalSum([H|T],S):- totalSum(H,Sum1), totalSum(T,Sum2), S is Sum1+Sum2. [/ICODE] With first two predicates, I have no problems getting sum of not-nested list. …

Member Avatar for fgmart
0
2K
Member Avatar for BlackIris

Sorry if this is in the wrong section but I wasn't really sure where else. I'm trying to use gcc and -S option in order to produce assembly file. Now, if I do not use -S, I can compile it fine and run it. But once I do use -S, …

Member Avatar for Aia
0
91
Member Avatar for scru

You can start by modding games that you like. How? google. I haven't done any game dev but am definitely interested in it. A good friend of mine who now works in Rockstar always modded a game in his spare time. He recommended Jedi Knight as a good game to …

Member Avatar for FireNet
1
148
Member Avatar for joshSCH

We all know IQ tests are biased. The population who take it don't reflect the general population enough to judge whether a certain race is more intelligent than another. And intelligence is only one aspect of life. I believe intelligence comes from education and one's surrounding. So, african americans, good …

Member Avatar for happygeek
0
777