49,757 Topics

Member Avatar for
Member Avatar for spoonlicker

[B]I'm extremely confused using external graphics sources such as OpenGL or DirectX or even Windows API to do such simple tasks. I want to be able to take a step forward and learn how to draw a bitmap or such on to a window. Thing is I have not a …

Member Avatar for spoonlicker
0
104
Member Avatar for mpike

Ok heres my problem i was told to make a simple tower of hanoi project (standard for C++ courses) heres what i have it works pretty well the only problem i have is that i need to number the discs from smallest to largest and tell which is moving. i …

Member Avatar for spoonlicker
0
103
Member Avatar for Mr.UNOwen

Hello, Does anyone know a good cross platform library that can handle mouse and keyboard (and joystick if possible) events without needing to producing a window?

Member Avatar for Mr.UNOwen
0
79
Member Avatar for skorm909

I started this game a few months ago and I decided to finish it up, but a problem im having is with my arena. basically the "Arena" is the final thing to the game. If you beat the arena you win the game. whats wrong with it, is that when …

0
76
Member Avatar for lochnessmonster

i've seen certain coded functions in programs with _declspec before the function return type and name....I read the microsoft documentation on it but i still don't understand what it means and when/why it is used! -thx *EDIT* i meant _declspec not cdecl **

Member Avatar for caut_baia
0
52
Member Avatar for SeePlusPlus2

I started learning about objects and classes this week and it's really confusing. I'm trying to make a class/object to read data from an input file and use the values to calculate the profit loss/gain(in percent and numbers). So far when I try to run the program I get an …

Member Avatar for SeePlusPlus2
0
195
Member Avatar for alex-VX

Hi im kinda new to c++ and dont know mutch aboute unsolved externals this is what i get: [ICODE]pices.obj : error LNK2019: unresolved external symbol "private: int __thiscall Pices::MovePawn(int,int,int,int,struct Piece (* const)[12])" (?MovePawn@Pices@@AAEHHHHHQAY0M@UPiece@@@Z) referenced in function "public: int __thiscall Pices::MovePlayer(int,int,int,int,struct Piece (* const)[12])" (?MovePlayer@Pices@@QAEHHHHHQAY0M@UPiece@@@Z) pices.obj : error LNK2019: unresolved external …

Member Avatar for alex-VX
0
165
Member Avatar for papayrus

[QUOTE=AdventGamer;1349519]ok well i'm having issues sending a char array to a listbox. To do a little explanation on the code itself... The point of this part is to take a hexidecimal string and convert it to a alphabetical string (this part works and has been tested in a console application). …

Member Avatar for chrjs
0
114
Member Avatar for mrnutty

The simplest sort, although inefficient. Below is a demonstration of bubble sort and insertion sort. The bubble sort just consists of 2 for loops and std::swap. The insertion sort uses 2 loops as well but not as much swap as bubble sort. Any questions ?

Member Avatar for 88omar
1
432
Member Avatar for maikens

Hi all, I'm working on a project in my Data Structures course, using Binary Search Trees. As part of the project, we need to balance the tree. I have decided to try and make an AVL tree. I am having a problem with the rotations in particular. Somehow during the …

0
75
Member Avatar for geekme

Hey ., need to know does turbo c work for ubuntu as well and if not what editor-cum-compiler should be used? Thanks

Member Avatar for ravenous
0
171
Member Avatar for jugadengg

hi could anybody guide me how could i install latest version of GCC on my window 7 computer. thanx!

Member Avatar for Stefano Mtangoo
0
129
Member Avatar for majyun

Hi there, I am new to the forum. I know this topic is not new. I have did a search on it and did not quite get what I wanted. Currently, I am trying to write a c++ programme which help me to read in about 10000 rows of numerical …

Member Avatar for jonsca
0
227
Member Avatar for xcarbonx

Hi..i'm having some trouble coming up with the an algorithm for a problem im working on. I am trying to check an arithmetic infix expression like: (((6+2)/2)*(3-1)); //This is my input file(; marks end of line.) I have to check to see if the statement is ok, or not ok, …

Member Avatar for L7Sqr
0
91
Member Avatar for jkoske

Right now I am using gdb on command line in Ubuntu. It seems pretty inefficient and cumbersome. Is that just because of the learning curve or because it is really that way? Do "real" c++ programmers use gdb? I felt the same way about vi until I learned to use …

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for KazenoZ

Hello, I'm having this problem with the transparency in GDI+. I have 2 pictureBoxes, one over the other, and one of them has their alpha color set to magenta(255, 0, 255). My goal is that when the upper pictureBox has a picture on it with a section of the magenta …

Member Avatar for KazenoZ
0
130
Member Avatar for benny2010

Hey im creating a cache simulation in C++ i have the read/write policies and most of the eviction policies but im struggling to get my head round adaptive replacement cache. i kind of understand how the two lists work but not very well. If anyone could help explain it to …

0
84
Member Avatar for TheLittleEngine

The parts I am having trouble with are: The private section of the class should also include two member functions that will a) reduce a fraction to lowest terms b) normalize a fraction (the only sign appearing will be a negative sign in the numerator.) for part a) I have …

Member Avatar for TheLittleEngine
0
716
Member Avatar for er.shalini10

hi, i wanna know the program for the query given below. i will be thankful to u. query: Seat Reservation prog for the theatre. Write a function for seat allocation for the movie tickets. Total no of seats available are 200. 20 in each row. Each row is referred by …

Member Avatar for elsiekins
-10
993
Member Avatar for eduard77

I just learned c++ and is very hard for me to put in practice what I learned. So, I would like to know if anybody could help me by giving me tasks and helping me to solve them. Thanks

Member Avatar for eduard77
0
249
Member Avatar for ManCard67

To be honest, i'm really bad with c++ but it's required for my major. We have to make a sudoku program, that reads from a file, inputs the data into a 9 by 9 grid (of 2d array), inputs numbers till the grid is solved, then check for valid moves, …

Member Avatar for Sky Diploma
0
331
Member Avatar for joeyn

Good day! can you guys help me to have the code for this output? pleasee.. _ _ _ 1 _ _ 2 2 _ 3 3 3 4 4 4 4 thanks in advance!

Member Avatar for Akill10
0
121
Member Avatar for VasquezPL

Hi! I have a problem. I cannot pass text chosen in combox to text field.. The problem is: how to do that if all menu items from combobox are read from cfg file. ComboBox: [code] // // systemBOX // this->systemBOX->FormattingEnabled = true; resources->ApplyResources(this->systemBOX, L"systemBOX"); this->systemBOX->Name = L"systemBOX"; StreamReader^ plik= gcnew …

Member Avatar for VasquezPL
0
675
Member Avatar for lwb525

Here is the problem from my Programming class: Write a program that asks the user for two file names. The first file will be opened for input and the second file will be opened for output. (it will be assumed that the first file contains sentences that end with a …

Member Avatar for WaltP
0
2K
Member Avatar for Jutch

I am trying to compile a my code for a GUI project and for some reason it's giving me fatal error c1075. I'll post the code and output message. Let me know what it wants me to do. There is only one set of braces so I don't know what …

Member Avatar for jonsca
0
213
Member Avatar for biancaW

please make this code work for many inputs not just two inputs then it terminates [CODE] #include <iostream> // requires for keyboard and screen I/O #include <conio.h> // for getch using namespace std; void main () { // local values int frontPad; int rearPad; int door; // output to screen …

Member Avatar for WaltP
-1
84
Member Avatar for cppnewb

Hi. I am using Visual Studio 2010 for coding in C++. When I'm coding, I often make it to the bottom of the screen and the line of code I'm typing ends up at the bottom of the window - very annoying. I was wondering if anyone knew of a …

0
62
Member Avatar for jwill222

Hey I'm having a problem with a loop in my code. It's a pretty long problem, but it is a travel expenses program. I'm creating a function that calculates the meal expenses for the user. I have to get a total for two days(first day and last day). When I …

Member Avatar for frogboy77
0
261
Member Avatar for Zgentry

Ive been working on a solution to my homework problem for a couple hours and I believe I have found the answer but I keep getting this error code >Hw_3.obj : error LNK2019: unresolved external symbol "void __cdecl printTable(double,double,double,int)" (?printTable@@YAXNNNH@Z) referenced in function "void __cdecl process(void)" (?process@@YAXXZ) 1>Hw_3.obj : error …

Member Avatar for Zgentry
0
139
Member Avatar for lochnessmonster

i dont understand how templates can cause code bloat in a binary file...does anyone happen to have an easy to understand explanation of this?

Member Avatar for L7Sqr
0
970

The End.