General C++ Programming - June 2017 (Page 10)

Need an explanation of code
 
#include <cstdio> class Thing { private: int x; int y; virtual int foo() { retur...
[3 replies] Last: Thanks man this helped so much! I honestly just got lucky when putting... (by captainmorgan)
multindex comparison on two int keys
 
I have a boost multiindex container which has an object which is contains this struct, with a compos...
[1 reply] : looking it seems like <boost/icl/interval_map.hpp> might be what i nee... (by conradjones)
by sed2
Problem to check if file exists
 
I would like to see if a file exists. I did: std::string path="C:\\Users\\"+ n +"\\Desktop\\fi...
[3 replies] Last: On UNIX-like systems you can use the stat() function. If stat() fails,... (by dhayden)
by Kalcor
Difference between these 2 codes[and a few questions]
 
First of all here is the link to the problem: (http://codeforces.com/contest/448/problem/D) Now I'...
[3 replies] Last: Well infact I just wanna know why the >= conditions works over the > ... (by cire)
How to have exception handler in separate .H & .cpp
 
Hi, I'm having an issue when trying to transfer my exception handler from my main cpp file into a s...
[1 reply] : > I'm hoping I can get away with providing this small level of detail.... (by ne555)
by Vendra
Write to file a large number of integers
 
Hello, I need to write in a file a big number of integers, an inverted index that maps the line numb...
[7 replies] Last: That is a good point... (by jonnin)
by Kalcor
Understanding this problem statement
 
Hello there is a problem that I can't exactly understand and due to that my code just answers some o...
[6 replies] Last: jlb , there is a pedestrian in the crosswalk if values & 1, not if va... (by dhayden)
template argument
 
hi gyz. can someone help me, this code get error 2768(illegal use of explicit template arguments) an...
[4 replies] Last: I'm bemused, but this actually worked on both compilers that I tried .... (by lastchance)
by arbwok
App to keep track of course availablity
 
Hello, I was wondering if it's possible in C++ to create an app to keep track when a closed course b...
[1 reply] : Yes, it is possible, but the difficulty varies depending on which libr... (by LB)
Reading a mathematical function for bisection method
 
Hello everyone. I am a beginner level C++ programmer having decent experience in MATLAB. I normally ...
[1 reply] : For a general function this is not possible at run time - you would ha... (by lastchance)
Convert string
 
How can I convert a string to LPCOLESTR?
[5 replies] Last: Okay that works. Thank you! (by Bingocat4)
Average returning value of 0.
 
#include <iostream> #include <iomanip> using namespace std; void welcome(); void getBabyWeig...
[12 replies] Last: Thank you! (by doublemirchi16)
Move decimal place to left a certain number of times. (No standard library preferred)
 
Lets say that I have a float of 3.525. Would it be possible without standard libraries to move the d...
[2 replies] Last: Wow. That was such a simple answer but an effective one. (by Varscott11)
by BigM
How do I replace an if with a bool?
 
So im a beginner in programming and i need help with replacing the if below with anything else.I tri...
[6 replies] Last: No, I am not complaining, just observing. (by jonnin)
by sed2
Problem with ShellExecute
 
Hello, i would like to have a program that start a .exe . Then i do: TCHAR name [ UNLEN + 1 ]; DWO...
[2 replies] Last: It's works, thanks you. I did: std::string path="C:\\Users\\" + n +... (by sed2)
string copy...weird issue.
 
I have written a program using loops that combines two strings into one using a loop. it works fine ...
[7 replies] Last: j isnt right. look: int length = strlen(first)+strlen(second); so... (by jonnin)
by zspar
Hash Table not reading last line of txt file
 
I was assigned to create a chained hash table using a vector of vectors. It is designed to hold obje...
[4 replies] Last: Could you show us the input file and entry.cpp + main.cpp so we can co... (by Thomas1965)
by dami81
Problems with file stream wfstream
 
Hi everyone , i have the following code : #include<iostream> #include<conio.h> #include<fstream> #i...
[11 replies] Last: thank you very much JLBorges ; thank you all , guys ; problem solved ... (by dami81)
by vern
interfacing with sql
 
Hi people, I am a c# developer and very new to c++. At our company we have some legacy devices and ...
[2 replies] Last: Generally speaking you can use OleDB, ODBC or ADO, however for a begin... (by zepher)
by Kalcor
The use of this variable.
 
Delete this thread, if that's allowed.
[no replies]
June 2017 Pages: 1... 891011
  Archived months: [may2017] [jul2017]

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