User Profile
Collapse
-
tta aaa replied to How can-i read integers from a file, where the first line contains unknown elements?in Ci`ve red each line as a string, but now how can-i split it at space characters? any c code? pls -
tta aaa replied to How can-i read integers from a file, where the first line contains unknown elements?in CI searched on the internet for many codes, but it does't work. Could you give me some code? How can i read each line, and split them?Leave a comment:
-
tta aaa started a topic How can-i read integers from a file, where the first line contains unknown elements?in CHow can-i read integers from a file, where the first line contains unknown elements?
A set of natural numbers is given. Generate all the subsets of this set joined by alternating +and -operators which
sum up to exactly S. .
I/O description. Input: enumeration of elements in the set, on one line, then sum on one line e.g.
1 3 5 7 2 6
0
Output: enumeration of elements resulting in the given sum, e.g.
1-3+2
...
No activity results to display
Show More
Leave a comment: