General C++ Programming - February 2015 (Page 2)

Array question
 
While reading my book it says this "Arrays can also be allocated dynamically, in which case the size...
[4 replies] Last: Thanks shyoninja I think I understand now. (by cppnoob25)
Anyone want to help me make a game?
 
I have a ton of ideas. I am struggling with the graphics though. I am using openGL and freeglut. I a...
[1 reply] : Start simple. Make a side-scroller with SFML, Magnum, or SDL just to l... (by LB)
counting
 
how can i count total number of each topic separately? for example total number of topic 1 between ...
[1 reply] : Please edit your post and make sure your code is [co de]between code ... (by LB)
Linked List, implementation at Nth node
 
I have to write a program which has the user be able to enter a specific value at a specific positio...
[1 reply] : 1) How can it be a compiler error if it's happening at run-time? 2) ... (by MikeyBoy)
by Raluca
Why doesn't this work?
 
# include <iostream> using namespace std; # include <fstream> # include <string.h> void L(int valoa...
[1 reply] : Please edit your post and make sure your code is [co de]between code ... (by LB)
Why this doesn't work?
 
Hello. I made a BMP reader which works in the function, but crashes in int main(). Seems that data ...
[1 reply] : line 56: `data' is uninitialized line 33: `data' was passed by copy, t... (by ne555)
developing application without exceptions
 
Is it possible to develop any application without exceptions? I don't want to try and catch exceptio...
[3 replies] Last: I really comes down to the scope of the application. At a certain poin... (by Computergeek01)
SDL Memory leak when using TTF_RenderText_Blended
 
class Renderer{ public: void text_to_sdl_surface(Text text, Colour colour); Font get_font(s...
[7 replies] Last: It looks like you never free the TTF_Font. You have a class called Fon... (by Peter87)
Help - Grid and recursive function
 
Hey guys, I am kind of new with C++. I have an assignment to do which is similar to this one: http:...
[1 reply] : I would start by making and 3 dimensional array 8x8x2. Obviosly first... (by Townsheriff)
find all unique triplet in given array with sum zero
 
Hello to all of you... I got all unique triplet from below code but I want to reduce its time compl...
[7 replies] Last: Thanx JLBorges.. I ll go with it. (by prasad123)
by Nanyo
files and passwords
 
Hi I am trying to make a program that asks for password when you try to open a file. Any Ideas? T...
[7 replies] Last: #include <iostream> #include <fstream> #include <string.h> using ... (by Nanyo)
Help me solve this problem
 
hi, i'm new to visual studio 2013, when i write my code to compile (using ctrl + F5) this error appe...
[2 replies] Last: they couldn't help :( i'm downloading the 2008 version to see if it wo... (by honeyxp)
by LA101
!Urgent! C++ bubble sort
 
I'm trying to apply a bubble sort on a linked list. It works in the first traversal, but then after ...
[1 reply] : Move the lines 11 ... 14 after line 16 (by coder777)
by daruss
Basic Loop Help (Beginner) - Somewhat Urgent
 
Hello so for my c++ homework I need to write nested for loops that print an hourglass. I have search...
[1 reply] : Hi.. I have made the program for you. In case of any query, please fe... (by HabibAurangabad)
Making a game with a GUI
 
Hello everyone! I have spent a lot of time programming a little single play turn based combat rpg th...
[1 reply] : What graphics library are you using? (If you're not using one, try out... (by LB)
Backslash implementation
 
Im implementing the ability to read a backslash and allow the next character to be allowed in the st...
[no replies]
Reversing a String
 
I have this bit of code that reverses a string but there's a bit of it that I just don't understand:...
[6 replies] Last: I hope this'll help you understand better: See this as the order every... (by BasV)
by Micard
Implementing a proper reading from file
 
I feel very dumb right now, so please, don't add up to this :) I'd PM one of the forum members, but ...
[3 replies] Last: Up. Still not solved. The question is - how do I read the passlist.txt... (by Micard)
Searching for Email Format and Domain
 
Hello, I am new to C++ and programming in general. I was wondering if it is possible to use C++ to s...
[4 replies] Last: Yes, well I have a list of 4000 websites already. I just need the emai... (by Calvin 19)
need help finishing and understanding this program
 
You will need to submit your programs that test both encode and decode.. The first (encode) will inp...
[1 reply] : Please note, that this is not a homework site. We won't do your homew... (by keskiverto)
February 2015 Pages: 1234... 26
  Archived months: [jan2015] [mar2015]

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