General C++ Programming - September 2014 (Page 19)

web api, loading json data
 
I have been searching for a while now how to load a web api (Json data) in c++. For example: http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_we...
[2 replies] Last: boost supports json: http://www.boost.org/doc/libs/1_56_0/doc/html/pr... (by coder777)
true/false about function parameter
 
is it true or false a function like void myfun(int num){} can receive type "int var" but can't receive type "const int var" AND a function like void...
[3 replies] Last: Top-level const qualifiers on function parameters are ignored on funct... (by Cubbi)
Array Help
 
need help fixing my errors and help with assigning a sort function to sort the numbers in ascending order.. here is what i've so far . #include <iostream> ...
[7 replies] Last: At the top you will need #include<vector> #include <algorithm> You ... (by dhayden)
Linked List
 
Line 75 it breaks. I believe while(temp!=NULL) works there but have no clue what to do after that. Maybe use bool. I also believe it will break in the delete se...
[6 replies] Last: I know I had this the other day but I figured out what I'm trying to d... (by AresWrath73)
by Ritik
Implementation of Longest Common Subsequence problem
 
In the implementation of a program to find the length of the longest common subsequence, could someone explain to me what does line 14 do? void lcs( char *X...
[2 replies] Last: Got it! Thanks! (by Ritik)
how did it came to this output?
 
why is the output = 9? I got the desired output, which is "9" but how? I need an explanation please.. I'm a beginner #include<iostream> #include<conio.h...
[4 replies] Last: And you need to know about FOR Loop. And Here is : ***** FOR Loop ste... (by luckybc)
what's it?
 
Hello everyone! I'm using c++ for game programming. And I'm using cocos2dx for that. If someone used or is using it you maybe see that C++ APIs are #define in ...
[4 replies] Last: thank you very much! (by luckybc)
non-reference while << operator overloading
 
I am writing a class matrix for practice but a situation have come to make me a problem, see. I want to do is cout << (mymatrix + 5.0); but my relate...
[10 replies] Last: Oh no, it got compiled, I just hit the "Rebuild all" button and after ... (by danicpp)
Debugging PDcurses
 
Hello everyone. So I just started getting back into C++ and programming after a good 2+ year break and need some help getting a simple 'hello world' program to ...
[3 replies] Last: getch() is part of the curses library so it should work. I have no ide... (by Peter87)
[Help]Parsing String to Contain inputted int
 
Hi guys, this is the first time I am posting in this site. I have been here for almost 3 months looking for answers in my C++ problems. I do have this probl...
[6 replies] Last: YESSSSS!! I think I made it. :) Thank you for the help guys. :) (by jemeripol)
C++ rant - lack of developer friendliness is poor design (1,2)
 
So I'm 33 and tinkering with C++ because it's the de facto language of my industry, but I'm continually frustrated by how difficult simple tasks are. I underst...
[20 replies] Last: Really I was just countering the anti-MS hater attitude with my previ... (by kbw)
by vxk
Xcode profiler help
 
I am new to Xcode profiler , how can i see a simple memory leak difference in the following 2 programs : int main() { int* pp = new int ; for...
[no replies]
ERROR IN PROGRAM
 
Hello Everyone my name is raymond and I living in Kuwait.In our school they do not teach us much about programming I am having a problem with this small progra...
[1 reply] : Hi Raymond. Luckily you at least have the internet to learn and I'm bo... (by soranz)
Deleting the head node in a linked list (1,2)
 
I know this question has been asked a few times, however all the examples I have seen do not return anything. Whereas I would like my function to return the dat...
[27 replies] Last: It will crash. I have documented in the precondition that the list mus... (by MrPigeon)
Error C2678: binary "<"
 
The full error is: error C2678: binary '<' : no operator found which takes a left-hand operand of type 'const sf::Vector2f' (or there is no acceptable conversio...
[14 replies] Last: Thank you for the replies. Your last post finally made me understand h... (by wh1t3crayon)
Exponent calculator
 
Hello! I am working on an exponent calculator and It is not working correctly. Please Help! #include <Windows.h> #include <winuser.h> #include <iostream> #incl...
[3 replies] Last: which header does pow come from? (by jasonwynn10)
Magic numbers program
 
Hey, I modified this program from another persons post. Is there any way to make this any better than it already is. // Programmed by Anthony Altreb. Date 10-1...
[4 replies] Last: Thanks for the help! (by jasonwynn10)
by Kinani
Opening files in Hex mode to compress file size
 
I have an idea which i will try to implement in C++,I want to compress file size through making my own numbering system which is 80-based number, I do really wa...
[6 replies] Last: You unknowingly just came up with the primary technique used in all co... (by Krisando)
by tmason
Visual C++ - 'uint64_t' : redefinition; different basic types
 
Hello, I have a Visual C++ project that compiles fine as a 64bit platform but I get a boatload of errors similar to the following. when compiling as a 32bit ...
[1 reply] : uint64_t is a common typedef for a 64-bit unsigned integer. The error ... (by helios)
by manojg
Passing an array of variables by reference
 
Hi, I define an integer variable and pass it by reference to a function. int func(int &x) { // do something } int x; func(x); However, I hav...
[7 replies] Last: dhayden, thanks it works. (by manojg)
September 2014 Pages: 1... 1718192021... 28
  Archived months: [aug2014] [oct2014]

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