General C++ Programming - October 2013 (Page 24)

Compilation error redefining object
 
main: #include <cstdlib> #include <iostream> #include <fstream> #include "Board.cpp" int main(int argc, char* argv ){ argc=5; argv ; int rowNum=atoi(argv...
[9 replies] Last: I know, but I'm really limited to specific formatting for my class, by... (by SirLukeJonPerrier)
by ne555
[faq] undefined reference - unresolved external
 
[quote=nolyc]Undefined reference is a linker error not a compile error. You did not define the thing in the error message, you forgot to link the file that def...
[5 replies] Last: Templates and inline functions This is actually an especial case o... (by ne555)
Help with homework
 
This program is supposed to be a math tutor using functions. I could also use arrays.My problem is when I run the program it shows the menu, I enter 1 for addit...
[2 replies] Last: I have changed the code to this. The problem is that when I enter -1 t... (by mikashane)
C++ program to simulate customers lining up to buy tickets for some event
 
Can someone guide me through this assignment? Create a line class using a linked list that acts as a queue (first in, first out) both enqueue and dequeue. Co...
[2 replies] Last: Hi, Thank you for the reply. Sorry for not being so clear in my previ... (by keenguy007)
Can someone help me with this code
 
Community Hospital needs a program to compute and print a billing statement for each patient. Charges for each day are as follows: a. room charges: private (P...
[3 replies] Last: I'm really tempted to report... but I don't think it's against the rul... (by Disch)
How to make VC++ go to line of the error.
 
I'm switching from Dev c++ to VC++ and in Dev, if you double clicked the error in the error console, it took you to where the error was. in VC++ it tries to bri...
[1 reply] : in VC++ it tries to bring up a dialog box that talks about local hel... (by Disch)
Homogenous Coordinates
 
Hello, I am struggling writing the following code in c++ using opengl: multiplies a point 'p' by a 3x3 matrix 'm' in homogeneous coordinates. The result ...
[no replies]
by deleyd
C# learning C++ / *.h vs. *.cpp files
 
My background is in C# and C. I'm learning the syntax for C++. Wondering which code goes in the *.h files and which in the *.cpp files. Initially I was p...
[1 reply] : Traditionally, unless you want to abuse preprocessor directives, all ... (by LB)
Someone Please tell me what i'm doing wrong
 
#include <iostream> using namespace std; class Creature { public: Creature(int health = 100); virtual void Greet() const = 0; virtual void Display_...
[2 replies] Last: Line 49, missing semicolon. Looooooooool, feel so retarded right no... (by Justin505)
Can anyone help fix my CGA on VGA emulation?
 
I'm trying to get VGA's CGA mode (BIOS Video mode 06h) working. uint_32 patch_map1314(VGA_Type *VGA, uint_32 rowscancounter, uint_32 rowscanaddress) //Patch f...
[no replies]
armadillo matlab mexfile segmentation fault
 
Hello everybody, I am having issues writing a mex file for simulink using c++ and armadillo. I'm using the Legacy Code Tool to compile a classical c++ file an...
[5 replies] Last: I already posted the "solution". Thank you anyway for you attention. I... (by magonick)
by Ceset
collision detector
 
hi i was trying to make a basic collision detector and i guess i made a pointer usage mistake which is i m very bad at. here is the code bool fge_CollisionDe...
[9 replies] Last: @ne555 thx. after a nap and a bath. after refreshment i asked myself ... (by Ceset)
by Kubani
keep_window_open() doesn't work
 
Hi, In below code the keep_window_open() in the catch function doesn't work, that is, it keeps the windows in try block but not in catch block. Why? #inclu...
[2 replies] Last: after cin >> h failed, it indicated that by setting the std::ios_ba... (by Cubbi)
Mac OS X Speech Recognition Library
 
Hey all, i'm currently trying to write a project for speech recognition for a school assignment. I'm very curious as to make my code portable, how can i develop...
[no replies]
Using C++ in Excel
 
I have been learning C++ off and on for about a year now. I feel like I am finally starting to get a grasp of properly structuring my code to take advantage of...
[no replies]
pls expalin
 
#include<iostream.h> int maxref(int &a, int &b) { if(a>b) return a; else return b; } void main() { int x=20, y=30, max=0; maxref(x,y)=-1; cout<<"\n Value of x i...
[2 replies] Last: turbo c++ (by r 4 raja)
Build ActiveMQ-cpp with C+++
 
Can somebody help me? I need to building ActiveMq-cpp environment (Apache) with C+++. I am waiting for a return. Tks.
[no replies]
by mad93
unable to open include file
 
my programme showing error 'unable to open inclde file ****' i fallowed the general procedure i.e., options-->directories--> ( inclde proper path) still not wor...
[2 replies] Last: You need to specify which external library are you trying to implement... (by Aleksandar Grbic)
How to add array elements to stringstream?
 
This is my code: #include <iostream> #include <string> #include <istream> #include <sstream> using namespace std; int main() { string groups = {}; ...
[1 reply] : #include <limits> line 10: // stringstream output; ostringstream... (by JLBorges)
How to check input against entire array?
 
If I have a char array that that looks like char array = {'a', 'b', 'c'}; How can I check user input against all of these values at once?
[7 replies] Last: This equivalent code would work with a somewhat old compiler. #inclu... (by JLBorges)
October 2013 Pages: 1... 2223242526... 46
  Archived months: [sep2013] [nov2013]

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