Posts
 
Reputation
Joined
Last Seen
Ranked #248
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
90% Quality Score
Upvotes Received
56
Posts with Upvotes
43
Upvoting Members
23
Downvotes Received
6
Posts with Downvotes
3
Downvoting Members
4
13 Commented Posts
0 Endorsements
Ranked #351
~97.4K People Reached
Favorite Tags
Member Avatar for arithehun
Member Avatar for Member 785072
Member Avatar for Azmah

Why is it prohibited to buy a C++ book where you live? In any case, there is a fairly good book available online for free (Thinking in C++): [url]http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html[/url]

Member Avatar for Labdabeta
-1
468
Member Avatar for Ricky65

[QUOTE]The null chars are being converted to full stops.[/QUOTE] Somehow I doubt that. Are you sure that it's not just the way the packets sniffer displays the data? It is quite common to display unprintable bytes as '.'.

Member Avatar for bakri
0
1K
Member Avatar for moshe12007

There might be more experts than you'd think. On another forum, there is an user who essentially knows the C++ standard by heart. And as far as I know, he is neither part of the C++ standard committee nor is he working for a C++ compiler vendor. I would expect …

Member Avatar for mrnutty
0
188
Member Avatar for eman 22

The basic idea is that you combine your bit sets until you have 8 bits you can write to the file. In semi-pseudo code: [CODE]uint bitsUsed=0; uint64_t combinedSet=0; [...] const uint64_t bitSetToAdd=1234; const uint bitSetLength=12; combinedSet|=bitSetToAdd<<bitsUsed; bitsUsed+=bitSetLength; while (bitsUsed>=8) { writeByteToFile(combinedSet&255); bitsUsed-=8; combinedSet>>=8; }[/CODE] Don't forget to "flush" any remaining …

Member Avatar for eman 22
0
554
Member Avatar for pengkeanh

I must say that I'm surprised that this happens. I know that memory management doesn't always return the pages to the OS immediately, but it seems that even if you create and delete 1 GB+ worth of objects, the memory is not returned to the OS, even after some time …

Member Avatar for Aranarth
0
283
Member Avatar for spoonlicker

I'd like to point out that the OP is a troll who is just repeating the same procedure that he already went through on other forums using various names. He's just testing how far he can push people before he finally gets banned. If you look at his other threads, …

Member Avatar for katokato
-1
678
Member Avatar for NickOOOShea

You give them every last detail of gameplay and the design of the interface. They'll need to know what your game world can contain, how the player can interact with it and any characters in it (such as talking, fighting). Each topic requires you to go more in-depth, so if …

Member Avatar for DaSpirit
0
180
Member Avatar for Tuloa

As far as I'm concerned, your code has a much more serious issue... the following: [CODE] if (pixel[0] == 255) { if (pixel[1] == 255) { if (pixel[2] == 255) { return false; } else { return true; } } else { return true; } } else { return true; …

Member Avatar for mike_2000_17
0
542
Member Avatar for Sahilroy

Why the unnecessary restrictions? Besides the linked list, you won't get around using all of these anyway and using a linked list should depend on whether a particular implementation you had in mind actually needs it. Aside from that, it's not really that much of a challenge and especially not …

Member Avatar for techsurge
-7
121
Member Avatar for EMT

Counter-question: why can you watch YouTube videos without any problems even though you do not have a 210 mbps connection? The answer is the same in both cases.

Member Avatar for Aranarth
0
173
Member Avatar for DaniwebOS

[CODE]string playerName[SIZE]; int score[SIZE];[/CODE] You also should look up vectors. The above both incurs an unnecessary limitation on the number of objects you can have and in most cases, it just creates lots of instances that are never actually used.

Member Avatar for jonsca
0
117
Member Avatar for Nandomo

@Nandomo You still allocate the int variables dynamically, for which there is no reason. If you find yourself writing the keyword new, you generally should stop and try to find good reasons why you [i]need[/i] to use new. If you can't, you shouldn't use it. Doubly so when you find …

Member Avatar for ravenous
0
242
Member Avatar for iwannalearn

Dev-C++ is outdated, you should use a different IDE (such as Code::Blocks). As for graphical libraries, SFML would be your best bet (assuming you're talking about 2D graphics). SDL is also popular, however it is a C library (of course, you can still use C libraries with C++ if you …

Member Avatar for Aranarth
0
74
Member Avatar for BladeCoder

This assignment sounds very familiar... anyway, why do you think you need to change the function? std::string overloads operators <, == and >, so it should work without any changes. Do you have to implement the sorting algorithm yourself? If not, a [code]sort(name,name+SIZE);[/code] does the trick (needs the header algorithm).

Member Avatar for ritasea
0
1K
Member Avatar for ritesh2190

The easiest way to do this is to write a program that takes a problem as the input and gives the source code of the solution... then you can use it to solve this problem. Seriously though, what kind of algorithm? Don't say "any"!

Member Avatar for Anuradha Mandal
-1
4K
Member Avatar for Supriyo

[QUOTE=Supriyo;1262305]Can a standalone programmer design large scale C++ projects?[/QUOTE] In theory, if said programmer is very experienced. However, experience does not come by learning "good coding style rules" by heart.

Member Avatar for xtrmR
0
350
Member Avatar for ASTA LAVISTA

[ICODE]return 0;[/ICODE] might be a good idea, no? That requires you to fix the return type of function, though. And you need to fix the the return type of main too, because it always must be int anyway.

Member Avatar for ASTA LAVISTA
0
385
Member Avatar for mchin131

[QUOTE=;][/QUOTE] Also, please use std::string and std::swap - this is the C++ forum after all.

Member Avatar for VernonDozier
0
3K
Member Avatar for vjekob

[QUOTE=;][/QUOTE] This page has what you need to know about ar archives: [url]http://en.wikipedia.org/wiki/Ar_%28Unix%29[/url] Start by extracting the three files from the .deb. Then you can proceed with the important part, i.e. extracting the desired file(s) from the data archive.

Member Avatar for Aranarth
0
218
Member Avatar for samm22
Member Avatar for Fbody
0
254
Member Avatar for geek1

This form of compression is called run-length encoding. However, it performs quite poorly for most types of data. Instead, you should look if any substrings already occurred earlier in the text and save a offset/size pair if they have. This is the general idea many popular compression algorithms are based …

Member Avatar for Aranarth
0
87
Member Avatar for nbaztec

The relevant part of the C standard is in 5.1.2.2.1: [QUOTE]The function called at program startup is named main. The implementation declares no prototype for this function. It shall be defined with a return type of int [/QUOTE] C does not have inheritance, so obviously there is no dynamic_cast either. …

Member Avatar for mrnutty
0
499
Member Avatar for wwefriend
Member Avatar for Drakarus

It should be: [CODE]if(beginMinute + durationMinute >= 60)++endHour, endMinute = (beginMinute + durationMinute)%60; [/CODE]

Member Avatar for Aranarth
0
87
Member Avatar for daviddoria

You're meant to only access the top element of a stack, so std::stack provides no way to iterate over its elements. But you could keep removing elements from the stack until you find the value you're looking for or the stack is empty, then push all elements back on the …

Member Avatar for AuburnMathTutor
0
5K
Member Avatar for lightningfire

You definitely need to rethink your usage of classes - that's not how they were meant to be used. They are supposed to represent (conceptual) object classes and thus the instances should represent certain objects. But: what is a "dead"? And what is an "alive"?

Member Avatar for lightningfire
0
157
Member Avatar for PixelExchange

There is no difference, except that you connect to the remote IP address instead of your own.

Member Avatar for Aranarth
0
132
Member Avatar for rObOtcOmpute

The error message says it all. ApplyRoll expects seven arguments, but you're just passing one.

Member Avatar for rObOtcOmpute
0
3K