General C++ Programming - April 2011 (Page 18)

C++ Counting Shapes in Image
 
hello, im working on a college program in which I need to be able to take a picture of several pebbles scattered randomly on the floor, somehow import that into...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by PanGalactic)
by dAND3h
File + stringstream
 
Hey, I am trying to open a file using a concatenation of string and numbers. I have method called loadmap(int level). This is part of code where problem lies...
[5 replies] Last: It's probably SDL specific then ^^ (by dAND3h)
Help!
 
I am not getting the proper outputs that relate to the menu displayed.What do I need to fix? #include <iostream> #include <fstream> using namespace std;...
[3 replies] Last: On line 52 you forgot to add a break; so that it doesn't go on to ca... (by LB)
by HenriK
Language design or compiler bug with semicolons?
 
I have a well above basic knowledge about C++ (variables, arrays, functions, classes, virtual functions, polymorfism, templates etc.), but there is one thing th...
[8 replies] Last: Sheesh, you´re right, I forgot that. I seem to keep forgetting things... (by HenriK)
Reverse String using Recursive function
 
Hello, I'm a beginner in C++ & I learn from the internet. I have come across this program which has recursive function to reverse a string.the program is short ...
[4 replies] Last: When you say char* S = "abcd", S points to 'a'. Let's look at your ... (by hamsterman)
Calculating if one object is facing another
 
My maths isn't the strongest, and I would like to know how to calculate whether one object is facing another within some given angle. At the moment I calcul...
[2 replies] Last: that works great thanks hamsterman (by quirkyusername)
Discuss this snippet #1 (1,2)
 
I thought it might be interesting to hold a discussion from time to time about a given code snippet. Things that some may find enlightening and others can shar...
[21 replies] Last: Note that this compiles: std::string key( "" + p.getId() + p.getName(... (by moorecm)
How to store "Sparse matrix"
 
hello all, I'm studying about "sparse matrix" and i have a problem with it. I don't know how to store the sparse matrix.Please help me. Thanks everybody. ico
[5 replies] Last: I agree that you can better optimize when you know what you are going ... (by hamsterman)
can anyone tell me what;s wrong with this code????
 
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <functional> using namespace std; static int n; int lenstring(cha...
[2 replies] Last: it has compilation errors when the one that gave it to me said that i... (by kwstas15)
by anvith
error help!!!!
 
i'm gettin the following error when i try to compile c++ file c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(353): error C2381: 'exi...
[2 replies] Last: thank u so much :) :) :) (by anvith)
by jackie
Array Help
 
I need help,, with this I want to Stop Users from Entering the Same ID Number for 2 or more people... int n,k,key; for (n = 0; n < N_STUDENT;n...
[3 replies] Last: i have them going into an array (by jackie)
Binary to Decimal converter
 
I have found some other posts about this, but the approach was different from mine. I've gone through my code, it should work from what I can tell... At least t...
[9 replies] Last: @LB.....nope a little more complex than that. (by buffbill)
C++ friends, ASSEMBLE!
 
Hi, pretty new here and need a little help. I am a little stuck on this problem right now, but still trying to figure this out myself. This is the book's pro...
[6 replies] Last: Your add and subtract methods are wrong.You need a common denominator ... (by naraku9333)
special character in a variable??
 
Is it possible to declare a special character ó as part of the word código as variable any how???
[1 reply] : If your compiler/text editor knows unicode than yes, you can. (by modoran)
by sgm
Reaching IHTMLDialog (Webbrowser automation)
 
I am implementing a HTML automation in a site that creates a Dialog Window (window.showModalDialog). I want to access the IHTMLDocument2 property in the dial...
[no replies]
error C2110: '+' : cannot add two pointers help please
 
Here is my code and the error I am getting is 1>d:\datamaxinc\datamaxinc\payrollplayfile.cpp(96) : error C2110: '+' : cannot add two pointers void E...
[4 replies] Last: Ok you guys rock I am idiot I was sending those to an array when it wa... (by mstratmann)
need c++help
 
need help
[6 replies] Last: I can't tell if this is a troll or not... (by TheNoobie)
default argument values 'require static member'
 
hi I would like to have a function defined inside a class that i can invoke with TreeMinimumValue(nodePtrToSomeSubtree); and/or TreeMinimumVal...
[2 replies] Last: yeah, thanks Mathhead... i did try that also, and it worked fine. i fo... (by r5jestes)
Passing references/pointers
 
I'm working with using functions to return more than 1 value (using pointers/references) at the moment. I'm a little confused about the difference (if there eve...
[5 replies] Last: Buffbill I didn't technically mean a function returning more than one ... (by TheNoobie)
sort files based on name
 
So i've got a giant list of files that all have a key number in them (1818 for example) and there's four files in the directory that all have that key number on...
[1 reply] : Try parsing the file names with a function like atoi(). (by buffbill)
April 2011 Pages: 1... 1617181920... 37
  Archived months: [mar2011] [may2011]

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