Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached

4 Posted Topics

Member Avatar for dinamit3

I have this string " țara " which contains a character ț which is stored on 2 bytes. When i do in linux : hexdump -C file that contains the string it shows : 00000000 c8 9b 61 72 61 |..ara| 00000005 It is normaly to view c8 and 9b …

Member Avatar for L7Sqr
0
326
Member Avatar for dinamit3

I'm learning about threads and Producer-Consumer model . I haved copy-paste the code from a book and i have a issue. When I run the program sometimes the Consumer gets the next number from the buffer even if the producer hasn't put nothing in the buffer. Example : Producatorul a …

Member Avatar for bguild
0
154
Member Avatar for Raisefamous

Raisefamous you should see function and recursive implementation. Look how easy is recursive implementation : [CODE]double factorial (int n) { if(n==0) return 1; else return n*factorial(n-1); }[/CODE]

Member Avatar for WaltP
0
285
Member Avatar for dinamit3

How can I memory N words using only pointers[Dynamic Memory] ? I tried something but I believe it's not well coded. [CODE]#include<iostream> using namespace std; int main () { char **a; int N; cout<<"Enter the number of words = "; cin>>N; for(int i=0;i<N;i++) { cout<<"Enter word number "<<i<<" : "; …

Member Avatar for Schol-R-LEA
0
243

The End.