General C++ Programming - December 2011 (Page 35)

Show Map Problem
 
Hi! I am new to the forum and new to c++. What i want is to create a simple project that a)it will have a class named Map and it will create the map depending...
[1 reply] : I think you should learn a bit more before doing this. I'll just po... (by hamsterman)
Linker settings
 
[Linker error] undefined reference to `TextOutA@20' [Linker error] undefined reference to `GetTextMetricsA@8' This error is something that has happened over...
[1 reply] : Sounds like you're not linking against the Gdi32 library (by Moschops)
Using a variable to reference an object.
 
Hello, I am currently working on streamlining my code and was wondering if it is possible to use a variable to reference a specific object. For Example Say I...
[7 replies] Last: Exactly why aren't you using a pointer? If you absolutely want an int,... (by Athar)
by bbh84
numbers array
 
Hey I am having trouble converting this program to display the number of times each of the numbers from 1 through 9 appears in numbers array. the book says use ...
[3 replies] Last: Thanks a lot that program worked great! (by bbh84)
c++ console rpg (1,2)
 
I am somewhat decent at c++ and want to make a console rpg. I am not sure how to start though, except for the character creation. Would anyone be willing to hel...
[28 replies] Last: i remade it and this is the new version: //*************************... (by Aramil of Elixia)
opencv error
 
hi, i am trying to work with opencv2.1, i followed all the steps descriped in opencv wiki, i am also wirking with opencv2.1 in another computer, so i know what...
[no replies]
Linked List with Filing
 
this is my linked list code. i want to use this with filing. how can i use linked list with filings. plz help soon. #include<iostream> using namespace s...
[7 replies] Last: tell me how to read from file using linked list.give me code for this. (by omeraslam)
How to Delete Word in Dictionary
 
this is my code.there is a problem in my delete function.how can i delete word from dictionary.i need code for this. #include<iostream> #include<fstream> ...
[14 replies] Last: give me code plz (by omeraslam)
by GOLF O
explaining the getline function
 
When using the getline function I understand that it is supposed to stop when it see the first space. But when you use the following code getline(myfile,te...
[5 replies] Last: Okay I have figured it out. I think another issue I was having was th... (by GOLF O)
Libavcodec with audio
 
Hi I'm trying to program in c++ with libavcodec. I'm using Linux, but the program is meant not to be only for POSIX. Could somebody tell me how should I read ...
[no replies]
help me
 
im trying this code # include <stdio.h> # include <iostream.h> # include <math.h> # define SIZE 100 class Stack { private: char st ; int ...
[16 replies] Last: i dont understand any thing i need anyone edit my programme please >>>... (by husseinmousa)
program files managment
 
Hello, So, basically, what I have is a project in folder and variaty of other related to project files for example; header files, cpp files, music, pictures. S...
[1 reply] : #include "someheader.h" //for current directory #include "dir/etor/y/... (by LB)
Help with displaying an Object Char Array (1,2)
 
Hi there, my original lab assignment was to work with strings and pointers. Our assignment was to ask for a first name, middle name and last name. Create and en...
[22 replies] Last: Wow that works! Thanks again, I appreciate the subtile hints so I can ... (by closed account NU9GNwbp)
by dalawh
Header Error?
 
My error: http://screensnapr.com/v/QNeyKH.png My code: http://screensnapr.com/v/Dk1Kef.png Does anyone know what I may be doing wrong? I am not so good wi...
[10 replies] Last: I was talking about "using namespace std". (by dalawh)
by jkam61
Cannot instantiate abstract class error
 
Hello, I have been racking my brain trying to resolve these error messages in Visual Studio, but apparently I'm lacking some fundamental knowledge related to th...
[7 replies] Last: Remaining implementation code: //cardImp.cpp #include "card.h" #incl... (by jkam61)
How to get this program to remember the seat
 
Hi guys (again), i am here with a new program! This time, i have created an airline reservation system that allows a user to choose a seat, the problem i having...
[9 replies] Last: It means that sometimes count is initialized but other times it isn't,... (by LB)
performance question: passing by reference
 
From the perspective of the compiled program, is there any difference between these two: int return_val (int& input) { // doesn't create anything on the stack...
[7 replies] Last: rocketboy9000, if the function is inlined the compiler should be able ... (by Peter87)
strange behavior of new operator
 
I am trying following code #include<iostream> using namespace std; int main() { int* p; p=new int ; cout << "address of pointer is\n"<<p<<e...
[8 replies] Last: finally ! It worked with few modifications. :) You rock ! thank you f... (by incognito)
Recursion help please.
 
Hello. I know I'm new, but could really use some help. I am almost done with my code, but my problem persists that I can not figure out how to terminate a recur...
[11 replies] Last: it outputs in my program -8125678 (some random negative number) You... (by ne555)
Computer Battery
 
Hello :D This is not a C++ question, but I was wondering how does the computer (or mobile phone) know how much battery power it has got left? How can it meas...
[3 replies] Last: Thank you very much for the responses! Muhasaresa (by Muhasaresa)
December 2011 Pages: 1... 3334353637... 39
  Archived months: [nov2011] [jan2012]

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