General C++ Programming - October 2013 (Page 14)

by GLG24
Iterating a program
 
Hi guys, I have a question regarding iteration. My assignment program deals with flipping a coin 500, 1000, 2000, 4000 times and recording the longest str...
[1 reply] : You could compute all streaks, and store those in a new array/vector, ... (by Bourgond Aries)
How to create and use DLL's
 
I've been programming for a while but. I've never made or used a DLL before. Edit: In eclipse.
[2 replies] Last: I'm trying to do it in eclipse. (by supersammy7000)
help with tgui
 
i need a gui for an app, so i decided to use tgui [ http://tgui.eu/tutorials/v06/linux/ ]. i ran cmake . then i ran sudo make install -j6 but i get this error (...
[no replies]
Need help with this statement, Don't understand what it is asking me from me
 
Hello, I am fairly new to C++ and this forum, I am working on n example where I am being asked to create a class to load a text document into memory, by using t...
[no replies]
C++ Debugging on Merge Script *Help Needed*
 
Hello all. I'm currently writing a program in C++ that merges two text documents into one. I would have simply used the C++ merge function, but I was told to wr...
[no replies]
SFML Help
 
I use visual studio 2012. When I asked what I should use in order to put graphics into my program, I was told by the community that SFML works well. My only pro...
[6 replies] Last: Thank you very much for all of your help guys! (by Galaxy7games)
blinking cursor in sfml?
 
so im trying to make a blinking cursor to give it a terminal feel, but it is speradic, since it is going at cycles instead of seconds. how can i fix this? ...
[14 replies] Last: thanks that worked. (by closed account Dy7SLyTq)
Single error: Quick Fix, needed.
 
#include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; int main() { //declarations ifstre...
[5 replies] Last: @PrimeTimeBio Here is a bubble sort loop, which is what I think you w... (by whitenite1)
I keep getting a strange XCode error message when trying to prototype?
 
Hi guys, my code isn't fully written yet but when I try to use a prototype, I get an odd message. Here is the code: #include <cmath> #include <math.h> ...
[9 replies] Last: retsgorf297, yes they are. I forgot to take out the second math. Thank... (by MJGilbert)
by rejain
I really dont know what name this needs..
 
Hey, im currently programming a program which will create a html document with whatever text you desire, the only problem is, each time i want to give it bold a...
[19 replies] Last: i understand that, but just because it works for one person doesnt mea... (by closed account Dy7SLyTq)
Using multiset with classes.
 
Hello all, I'm trying to use multiset with a user defined class "edge". I'm trying to use the multiset as a priority queue, and I've created a "less<edge>" vi...
[3 replies] Last: > Since the priority_queue uses a vector container, it might be a litt... (by JLBorges)
including header files
 
I have these two files: /project/protocol/guarddog/report.h /project/protocol/sky/report.h I have two report.h files located in two different directori...
[1 reply] : You can make sure your include path only contains the appropriate dire... (by MikeyBoy)
Help with fun Sudoku Program!
 
Hello all, i am currently working on a cool little program that takes a sudoku problem and outputs the answer. It's been fun, but i seem to have hit a snag on t...
[3 replies] Last: I have been testing around with the return values but can't seem to fi... (by AskQuestions)
Replace RAM by HardDisk storage
 
Dear all, I think my question seems stupid, but I dont have a plave to start. In my simulation, I have a huge storage which is an std::vector<std::vector<...
[9 replies] Last: Well, the SQL databases must cope with the situations, where there are... (by keskiverto)
a program displaying 00 to 08 using a seven segment diaplay
 
#include<reg51.h> //unsigned int INT0 sbit WAVE=P1^0; unsigned int cnt; void timer0() { WAVE = ~WAVE; } void timer1() { cnt++; P2=cnt; ...
[no replies]
array returns weird values
 
Hi guys, i'm new to C++ OOP and i'm not sure what's wrong with my codes. I get weird values from the array whenever i call them out. pointtwod.h class PointT...
[3 replies] Last: for if(civ == 0) { civ = locationdata.getCivIndex(); } it's to... (by coiseng)
undefined reference to template function
 
Hi guys, I am coding a RTS game but I cant compile my dataLoader function. It gives that errors when want to call it: obj\Debug\FileSystem\getBackg...
[7 replies] Last: Thanks for helps. It worked with Mikey's way. (by closed account 1v5E3TCk)
by tafai
Class project - due oct 25. 2013
 
In 2008 the Jamaica Constabulary Force planned to launch a covert unit to tackle high-level corruption and scams. The unit was to be headed by a former highran...
[4 replies] Last: im doing that just now (by tafai)
How to write a undertemined size array to a txt file?
 
Hey guys, I'm doing a Text-based RPG game and it will include some checkpoints, on those checkpoints the game will save the progress, so I need to write all my ...
[5 replies] Last: Read about the standard library containers, such as std::vector. (by keskiverto)
by soori
best source to learn binary trees in c++
 
hello friends which is the best source books,online tutorials to learn binary trees in c++ please guide me..
[1 reply] : http://en.wikipedia.org/wiki/Binary_tree http://en.wikibooks.org/wiki/... (by Catfish4)
October 2013 Pages: 1... 1213141516... 46
  Archived months: [sep2013] [nov2013]

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