General C++ Programming - December 2014 (Page 26)

by bryevo
cout undeclared?
 
This is my header file #ifndef TREE_H #define TREE_H namespace BSTree { class SearchTree; //forward declaration class TreeNode { public: Tre...
[3 replies] Last: and...the errors are? (by giblit)
hangman project please help
 
hello guys I really need you guys help I did this programming project but there is something wrong with it and I honestly can't figure out what the problem is. ...
[no replies]
Need help finishing SDL Connect Four program
 
#include <iostream> #include <string> #include <ctime> #include "SDL2/SDL.h" using namespace std; /* window width and height */ const int WINDOW_WIDTH ...
[no replies]
How to Pass by Value-Result
 
I'm trying to understand the pass by value-result. The code I have came up with so far only does by value and by reference, which I understand. The value-result...
[4 replies] Last: An argument passed by value-result is implemented by copying the argu... (by helios)
by bonho
Getting consistent type names under Windows and Linux
 
I'm writing a server/client application in C++, one linux and one windows. The generic communication method is to use the boost::serialization package, but I'l...
[7 replies] Last: so useful topic....it helped me so much www.electrotechnic.mihanblog.c... (by majid1986)
by rdekou
Get the output of CImg C++ code in python
 
To speed up my python code, I'm trying to insert CImg C++ code within it. I'm able to read the python data (input variable, is a pointer to a numpy.array phi) ...
[no replies]
by Nanyo
no output
 
Hi, does anyone know why when I enter the number of humans and skeletons nothing happens #include <iostream> #include <windows.h> #include <stdlib.h> u...
[1 reply] : Because you're passing them into your "userInput()" function by copy, ... (by Computergeek01)
How to determine if two numbers differ from a specific value
 
Hello, in chapter 4 in the book Programming principles and practice using C++ I have to write a program that use a while loop and that each time around the loop...
[4 replies] Last: > why if I enter 10 and 10.01 I don't get : numbers are almost equal ?... (by JLBorges)
by Aradic
Array error using template class
 
So, my only issue is I can't figure out how to assign the array in object Q to the 12 months, Dec through Jan. I then have to sort the array and display the str...
[8 replies] Last: I don't think that the code that generates the random numbers or store... (by LB)
by fafner
SDL_BlitSurface problem
 
I'm using SDL_BlitSurface to get a single sprite out of a spritesheet. My code is: SDL_Rect* src = frameRects.at(currentFrame); if (src == NULL) Engine::get...
[no replies]
Need help with simple linked list maze
 
Hi my names Angelica and I'm new to programming. I'm doing terrible at this so a few questions. Just need to know how to code "my current room." location. Us...
[2 replies] Last: That sounds like great advice but I'm having trouble implementing it. ... (by programnoob)
40 billion in variable
 
I'm trying to do a bitcoin calculator, however I can't get the difficulty (40007470271) to any variable uint64_t diff = GetDlgItemInt(hWnd, IDC_DIFF, NUL...
[15 replies] Last: @MiiNiPaa thanks! @Lachlan no, I'm getting 8 (by mekkatorqu)
by k18522
Void Functions: passed by value help.. to find a total
 
I missed last class on doing void functions because I got sick and im completely lost! ive being using the texts book example for a reference but its not runnin...
[1 reply] : use code tags please. getShirtCost(shirtCost); pass by reference:... (by mutexe)
Why is the program snippet giving error?
 
Why is the program snippet giving error? #include<iostream> #include<string> #include<stdio.h> using namespace std; int main() { string help; ...
[5 replies] Last: gets(...) does not take a string. Use getline(...) instead: http://ww... (by coder777)
Make a cursor move in c++ using generic functions
 
Hi guys im really confused and don't know how to do all this. i made a cursor using (windows.h) 1. fd or forward [e.g. forward 60] moves forward 2. ...
[no replies]
ERROR: strcat command
 
i wrote a short code about string but is wrong. I don't know why? please help me. here my code int main(){ char *s1; char *s2; s1=(char*) "hello "; ...
[8 replies] Last: Yes, you're right. (by kbw)
Having a function inside for_each statement
 
Dear all, I keep on getting error message while trying to pass a function inside a for_each loop.. I have a vector and i used for_each loop to go through the...
[2 replies] Last: for_each requires a certain signature of the function. The only parame... (by coder777)
Template return struct fields
 
Hi, is it possible to define as template the following get functions. Thanks. class Config { public: enum { NO_ID = 999 }; struct ValueType { ...
[6 replies] Last: Not simpler; but more malleable: name and (stringified) value pairs. ... (by JLBorges)
Need help on the code for vending machine
 
anyone can guide me on this code , this code seems like not functioning =( #include <iostream> #include <string> #include <cstdlib> using namespace std ...
[1 reply] : Oh that's easy, you forgot to read this page: http://www.cplusplus.com... (by Lachlan Easton)
c++ project
 
Assalamu Alaikum. Hello every one ! i am new here and my 2nd semester is going to end.But i have to submit a project.But at this moment i can't decide what sho...
[no replies]
December 2014 Pages: 1... 2425262728... 31
  Archived months: [nov2014] [jan2015]

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