General C++ Programming - July 2013 (Page 15)

reference n pointers ??!!
 
what are the differences between using reference in c++ and using pointers?? like eg: int var& var1 = var; and using pointers instead of the same piece of co...
[no replies]
SDL fill screen with image?
 
so im trying to make a background for a menu, but it is only so big. its not the kind of picture where i can just reapply it. is there a function to make it fil...
[4 replies] Last: thanks. i figured it out. i found this small header/cpp file combo cal... (by closed account Dy7SLyTq)
struggling with the strings!!
 
Hi guys, I have a headache for the last two days because of this program, I tried everything i could think of. I tried constant variables too and I just can't ...
[2 replies] Last: Thanks a lot. I appreciate it. (by neverwas10)
string function in implementation seciton
 
Hello, I am having trouble with the implementation section of my code. The trouble I am having is with the """"string Name::RevereUsingString()""" function/meth...
[2 replies] Last: haha, Thanks.. Thats awesome, It worked.. (by closed account 98qiz8AR)
Array/ Pointer gives me an error
 
The program should ask the user how many students were surveyed and dynamically allocate an array of that size. The program should then allow the user to enter ...
[2 replies] Last: thank you! it worked. (by cPPbeginner17)
How to implement Karger's Algorithm. Implemented the Graph DS so far. Need help.
 
#include <iostream> using namespace std; //adjacency list representation. I have created a list of nodes and edges class graph { private: bool ...
[no replies]
PROGRAMING IS NOT RUNNING !!
 
I can neither understand the problem with the following code nor the error message. please help me to sort it out.. I can try alternative methods , BUT I WAN...
[5 replies] Last: String loterals has type const char , that is they may not be change... (by vlad from moscow)
HELP!
 
International Book Fair which was held for 30 days attracted many visitors. Only those visitors with passes were allowed to enter. Number of passes issued for e...
[1 reply] : what do you actually need help with (by Paoletti301)
SDL window centering?
 
I am trying to do two things that i have an issue with finding on google. the first is im trying to center the main window, but i cant figure out how to do it. ...
[1 reply] : To center the window you can do SDL_putenv("SDL_VIDEO_CENTERED=cente... (by Peter87)
How to play sound when the program ends
 
How can I play sound when the program ends? I am using Windows 7. Thank you :)
[15 replies] Last: A quick sound ? Since the thread is not yet closed if you ever happen ... (by Tertius Kgatla)
Basic chunk...Help please
 
Heres the output: D:\Videos\CustomStory(Red X Orginization)\main.cpp|54|error: 'WM_Paint' was not declared in this scope| c:\program files (x86)\cod...
[3 replies] Last: Nah, sorry. There was a WinAPI tutorial I learned the basics from lik... (by Disch)
Problems linking Boost with GCC
 
I am trying to build my project https://github.com/naraku9333/aBot with MinGW and GCC (linux) and getting linker errors. I don't use MinGW/GCC on a regular basi...
[4 replies] Last: Thank you, worked perfectly. Edit: Had to add -lWs2_32 for MinGW (by naraku9333)
Advice
 
hello I am a beginner in c++ , I have learned iostream , templates and those things and I want to continue learning but I am not sure what to learn next ..I wan...
[5 replies] Last: for what is iostream library being used mostly? First off, it's a he... (by ResidentBiscuit)
Saving PNG file in console program -- losing data
 
I am working on a project that uses a web service to extract a PNG image from a web server and save it on a local machine. It's done via a system call. I can ge...
[11 replies] Last: I hadn't thought about fread! Just tried out this version and I'm gett... (by dhojnac1)
Dual Stick Controls
 
Does anyone know how to make a Dual Stick Controls for a IOS game, I heard you can get the source code for it with cocos2d-x but my computer want let me downloa...
[no replies]
Problems with float data type
 
Hello, I am working on a project where I have the user to input a value and I am storing it in a float variable. However, the value that is getting stored in ...
[5 replies] Last: While I want to limit the precision when storing the number, if possib... (by tnjgraham)
overriding operator () in class
 
Hi, I am trying to finish a logging class and I am having trouble overriding the operator () (LogLevel leve). Basically, I open a text stream to a file stream ...
[12 replies] Last: Is there a way to tell what is the LAST operator being executed on a ... (by andywestken)
Date input validation
 
struct Inventory { char date ; }; cout << "Date Added To Inventory: "; cin >> Info.date; How do I display the date as mm/dd/yy. According to one o...
[no replies]
Displaying a Text File...("Echo" a Text File)
 
So I'm really stuck trying to figured this bug on the program that is preventing me from displaying the text of my program.. #include <iostream> #include ...
[3 replies] Last: > Is there any way cleaner or simple method i can used to display the ... (by JLBorges)
c++11 for(each) loop
 
so i am using g++ with code::blocks, and i having trouble with my for loop. gcc will use c++11 (thats not the issue), but i cant find why my for loop doesnt wor...
[6 replies] Last: It's not the reference that is set to null, but the pointer. Maybe it'... (by Peter87)
July 2013 Pages: 1... 1314151617... 34
  Archived months: [jun2013] [aug2013]

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