General C++ Programming (Page 5)

Blinking Window in SFML
 
using SFML in visual studio 2012 .... this code gives blinking window. can anyone tell me how to fix...
[8 replies] Last: not working... would appreciate any help... (by Sohil Shrestha7)
1 Strange Error: Finding an int from file containing mixed (int, char) data.
 
I'm removing a line from my file. User enters record. And the line containing record in the beginnin...
[4 replies] Last: How the 2) and 3) points are done? 2) How to copy data to temporary bu... (by Rehan FASTian)
Calling function from another class
 
class Destination { .... private: CityNameType city; // name of the city where the pa...
[3 replies] Last: Why is PrintCityName in DestinaionList? It doesn't use any of the memb... (by L B)
What is the error?
 
#include<iostream.h> #include<conio.h> #include<stdio.h> struct BOOK { int Bno; char Bn...
[3 replies] Last: Hmm..thanks! :) (by Winkerd)
how to use <chrono> in c++
 
i have an assignment based on researching on a specific header file and i have chosen <chrono>. i...
[2 replies] Last: Try this link: http://lmgtfy.com/?q=C%2B%2B+chrono (by MikeyBoy)
int( 5 ) - cast or constructor?
 
Like the title says, if I have this code: #include <iostream> void f( int num ) { std::cout ...
[3 replies] Last: Ok, thanks. So there is no int constructor at all? I always thought th... (by Fransje)
Don't know what the error is
 
#include<iostream.h> #include<conio.h> #include<stdio.h> void EnterDetails(); void DisplayDetai...
[2 replies] Last: Hmm thanks :D (by Winkerd)
Take comments from c file and store it in a text file.
 
Does anyone have a c++ code that will take the existing comments from a arbitrary C file, and store ...
[4 replies] Last: You're welcome :) (by MikeyBoy)
Quick question learning OOP. Const or no const in the function prototype?
 
Hey guys I've got a quick question I hope someone could help me answer. My computer science class ha...
[4 replies] Last: The "void" in the parameter list comes from C. You shouldn't use it in... (by EssGeEich)
by jparr
Making objects bounce off eachother
 
Hi, Im attempting to make asteroids bounce off eachother on collision. I have setup rectangles a...
[no replies]
Problem with strcpy function
 
I'm having a problem using the strcpy function. It works up to a certain point, and then I get this ...
[2 replies] Last: CityNameType If it is typedef for char*, you need to allocate memor... (by MiiNiPaa)
by labeeb
file handling
 
Every time I write in file using ofstream it works fine except for one thing that when the file is r...
[1 reply] : You need to use the ios::app flag in order to to append to the end of ... (by BigBlackSheep)
by h0404
Thread-safe class
 
Hello everyone, I have started to use C++, and I am stuck with an issue. Can anyone explain wh...
[2 replies] Last: Thank you can you please advice a C++ book which can be helpful like ... (by h0404)
calling a function that holds struct arrays
 
In this program I am attempting to allow a user to input three different authors and then input thre...
[3 replies] Last: You're welcome ngeisler. That's good to figure out logical errors your... (by Rehan FASTian)
Compiles with 0 error but when I run it. 2 Errors appear
 
Error: --------------------Configuration: nc - Win32 Debug-------------------- Compiling... cv.cpp ...
[1 reply] : Function main may not be a template function. So remove statement with... (by vlad from moscow)
Printing Out Time Every Hour
 
I have made a basic function to print the time every hour. It gets called every tick and will only p...
[no replies]
Issues with findtitle function.
 
HI!. So Im good with everything except when I call the printone function in the findtitle function. ...
[no replies]
Hold screen via GUI to console
 
Hi, I had a program (on console) that uses a third-part software to draw some graphs. In order to...
[4 replies] Last: It might be a whole lot simpler to just create a new window and draw i... (by Duoas)
Function with multiple output
 
Hi, In my program I have a function that runs a big number of calculations and gives some output on...
[2 replies] Last: Well actually it's not a Qt problem. The GUI works fine. I have my pro... (by dekeenfrance)
cstring and switch problems
 
#include <iostream> #include <iomanip> #include <cstring> #include <cctype> //used for toupper ...
[3 replies] Last: Try: CommandType command = GetCommand(); Also Add().list; will... (by EssGeEich)
Pages: 1... 34567... 82
  Archived months: [mar2013]

Cannot post in this page. To post a new message, go to the first page.