General C++ Programming - April 2015 (Page 9)

C++ programming Display unique data
 
Currently I read a text file line by line and find all matching data and display them. So if my text file data is a below Bag|30|23Mar2015 Bag|30|23Mar2015...
[2 replies] Last: Hi Peter87, i am quite new to C++, and not sure how does map works, is... (by mathiasx)
by Lauke
C data structure library
 
Hi Guys is there any library, made by GNU for example, which implements list, tree datastructure graph etc? I need this stuff for a software i'm working but ...
[no replies]
by Edward
Issue with Soccer scores program
 
Good Morning. I was working on a C++ program last night and thought it had come to completion. It asks for soccer scores,players info using structure and outp...
[2 replies] Last: Thanks! (by Edward)
Modifiying elements in pointer array
 
I have the code below with explanation below. All objects array: Object* m_objects ; CombatObject: class CombatObject : public Object { public...
[no replies]
Game Programmer Test
 
I've recently been given a test from a game company in the area. Before I go on, I consider myself somewhat a new c++ programmer even though I have coded in c+...
[5 replies] Last: *bump* (by NeoMurakami)
Program that cracks encrypted messages?
 
Hello All, Recently, one of my friends gave me a simple string of characters and asked me to crack the encryption, to find a message inside. It was a double su...
[4 replies] Last: Thanks for all the help. @programmer007 I have just started programmi... (by TheSherlockHomie)
Multiple Object Dilemma
 
Being an upcoming video game programmer, I have come across something that frustrates me. You know how, in say, Dark Souls, there are many many types of enemies...
[2 replies] Last: Usually only completely different kinds of enemies gets own class. Oth... (by MiiNiPaa)
How to check the occurence of each words in the textfile and display the number of times C++
 
I have a C++ issue. Currently i have a text file that store the following data. I wish to do a simple program where it will read the data and print out the most...
[3 replies] Last: are simple Windows API functions, check out on MSDN I think that if ... (by igorbez)
struct issue
 
Hello all, I'm facing a strange issue with a struct array problem, I have wrote a simple struct that contains a UINT and a callback function pointer like so: s...
[8 replies] Last: Figured it out just now... lambdas require the Common Runtime startup... (by igorbez)
by ysp
Median of sorted arrays
 
Here is my question In satistics the median of a set of values is the value that lies in the middle when the values are arranged in sorted order.If the set has...
[1 reply] : Your array has 5 values. What is the index of the element in the middl... (by keskiverto)
how to seach on a vector and replace the found element with another vector element
 
Hi all, I am leaning STL algorithm, especially on iterator. I have two vector, src and data. I am going to search all elements with value more than 100 a...
[2 replies] Last: Thanks a lot. (by kfc123456)
is there something really different about digital mars?
 
I tried it out today, and it seems to handle a few things differently than GCC, VC++, borland, or any other compiler i've tried -- some class constructor stuff ...
[1 reply] : I'm not at all familiar with the software you are referring to, but I ... (by Zhuge)
by Heaph
Can't figure out the issue!
 
#include <iostream> using namespace std; int main() { // 1. Declare and use an array of 10 integers in your main function. const int n = 10; int array ; //...
[2 replies] Last: I think i figured it out.. I put the main function at the end and incl... (by Heaph)
Saving Code
 
I've made a quiz template to help me review my school material. It's fairly easy to make a new exe by just changing the couts and one variable. However, it woul...
[1 reply] : #include <iostream> using namespace std; int answer; double totalq... (by MikeTheFish)
Stuck on how to finish transform function.
 
here are the instructions on the assignment Create a function that receives array as an argument, and displays the two dimensional array. Create a functio...
[6 replies] Last: You have no clue? Look at those numbers. What does happen to them? F... (by keskiverto)
switch statement help
 
I'm working with a double linked list here. I'm having problems with something in this program. It's most likely something minor that I'm just looking over so a...
[1 reply] : A switch is not a loop. After falling out of the switch, your code hi... (by doug4)
Forward declaring a private struct
 
Hello forum, I have a question on gaining access to a private struct via forward declaration. I have a class such as class foo { public: ... bar::ite...
[3 replies] Last: you can forward declare bar, but you can use it only as other forward ... (by MiiNiPaa)
floating point division
 
What if you have to do some floating point division: If I understand correctly, if I divide by a non-zero number, no matter how small it is, I won't get an ex...
[2 replies] Last: Division by zero usually doesn't crash the programs the way integers d... (by Peter87)
BINARY SEARCH TREE - "SEARCH FUNCTION"
 
So I have a struct in my header file called: struct TreeNode{ string info; TreeNode* left; TreeNode *right; }; //Then I have a pointer to root: TreeNode...
[4 replies] Last: MiiNiPaa, Thank you so much!!! You just saved my life :) (by newbiee999)
Linked List Help C++
 
I fixed the problem on this thread
[1 reply] : You appear to be in the same class as another user who posted similar ... (by fg109)
April 2015 Pages: 1... 7891011... 28
  Archived months: [mar2015] [may2015]

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