General C++ Programming - June 2014 (Page 11)

Changing an integer into a new integer with simple mathematical operations?
 
I need help with changing a 9 digit integer into a new 9 digit integer through simple mathematical operations. For example, I need to change 123456789 into the ...
[4 replies] Last: Just tested this and it worked perfectly. Thank you very much. I see t... (by Brady93)
Weird symbols on my console application
 
Hello, while I was testing something for the project I'm creating, Whenever I try to load my map, it loads with strange symbols, such as 2 smiley faces and what...
[3 replies] Last: #include <iostream> #include <string> #include <vector> Have you c... (by giblit)
help
 
#include <iostream> using namespace std; void averagescore(double); void aboveaverage(int ); int main() { int exam ; int x, total; cout << "Ente...
[2 replies] Last: A couple of things I see so far... The valid elements of an array wit... (by wildblue)
C++ Compiler
 
I bought this book about C++ ( C++ Primer 5th Edition ) and after a couple of pages it shows me some examples I can do with a compiler, but I do not know which ...
[1 reply] : I would use a modern compiler. If you are using linux, it's very easy ... (by ats15)
by antmjr
min value in std::make_heap
 
Hi all. I'm studying std::make_heap, and I need an explanation. From what I have understood so far, if I have a vector v, I can organize it into a heap with:...
[1 reply] : yes, make_heap, push_heap, and pop_heap all take the third parameter w... (by Cubbi)
Converting reference address to character string
 
I've been searching for a while, and haven't been able to find anything on this so I could really use some help. I'm wanting to convert the reference address...
[5 replies] Last: Ow wow, thanks for mentioning the bitset class, I'll have to look at i... (by jason9559)
by cire
Bug hunt, need another set of eyes.
 
The following code is meat for an online judge. When submitted, it results in a segmentation fault prior to any output being generated. Having tinkered around...
[5 replies] Last: Thanks MiiNiPaa! (by norm b)
Compatible IDE, compiler and graphics lib
 
I've been trying this for a while now with no success. Could anyone give me a link to compatible versions of codeblocks, minGW, and sfml 2.1?
[2 replies] Last: Thank you so much. I think I must have had an older version of code::b... (by shadowmouse)
Memory mapped i/o disabling?
 
From the freeVGA documentation: RAM En. -- RAM Enable "Controls system access to the display buffer. = 0 disables address decode for the display buffer...
[no replies]
espression with unsigned and signed
 
I recently researched that it is better to avoid the use of expressions that mix signed and unsigned types because they can give us back unexpected results ......
[2 replies] Last: I think this topic needs to be considered in the context of type promo... (by Chervil)
to find valence electrons from atomic number
 
can anyone please help me finding valence electrons from atomic number in c++...
[3 replies] Last: Simply google "number of electrons in atomic shells". They are 2,8,18,... (by letscode)
Game
 
I just started making this game, I looked up how to make the program pause for a certain amount of time. It isn't working for me, can you please help? Here i...
[2 replies] Last: Otherwise, there is also the usleep function (nanoseconds rather tha... (by TwilightSpectre)
High RAM usage for my game
 
Hi everyone, I'm having a High RAM usage problem with my new 2D game and i'm trying to figure out why. The way things are set up is that when the game lau...
[12 replies] Last: You shouldn't have to. What happens is that to render the Object you ... (by Cydriic)
by chhe
curl and libcurl
 
Hi, I wanted to use libcurl so that I could get the following c++ example program shown below to run on a Windows 7 64 bit computer using codeblocks. I'm ver...
[no replies]
by fafner
Overriding new and delete
 
I'm experimenting with a custom memory-pool for my application, and I initially planned to override the global new and delete operators to allocate memory in th...
[2 replies] Last: Yeah, I've written a singleton memorypool-class that the new- and dele... (by fafner)
Directional light per vertex
 
Hello people. I'm having to implement a shader work as directional light per vertex. Already implemented but would like a review of you to know if I did correct...
[no replies]
by Kubani
Where can I found QT 5.3.0 command prompt
 
Hi all, For studying the Qt book "C++-gui-programming-with-qt-4-2ndedition" I need command prompt of Qt. I've installed Qt 5.3.0 (creator 5.3.0 open source) bu...
[no replies]
String Memory problem
 
hi, i am using client server program with multi thread, I use the file concept and pointer. my function is void CGlobals::ReadDataFromFile(char * pTemplateNa...
[no replies]
ifstream garbage from good file
 
Hello. I successfuly write my file but the reading gives the output below. My code is if(readFile.is_open() && readFile.good()){ cout<<"File exists and ...
[1 reply] : Show your save function and content of file (by MiiNiPaa)
Operator= overloading WITH chaining
 
Hello! I am having a bit of an issue figuring out how to operator overload with chaining. I have this as my operator= function (Its for linked lists) WORD...
[4 replies] Last: oh....oh wow I think that was the issue because it is working now. THA... (by Bonster)
June 2014 Pages: 1... 910111213... 21
  Archived months: [may2014] [jul2014]

This is an archived page. To post a new message, go to the current page.