No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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 … |
|
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 … |
|
Re:
[QUOTE]Write a program which finds the factorial of a number entered by the user. (check for all conditions) (Beginner).[/QUOTE] Hi, My knowledge about C++ and programming so far is 27 youtube videos. It took me 1,5 hours to figure out and write this :) [code]int main() { int x = … |
|
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<<" : "; … |