49,761 Topics

Member Avatar for
Member Avatar for fsefsef23

Hey all! I have polynomial programming project that I'm doing where I need to read a set of numbers from a file where each set of numbers are written in the format <coefficient> <exponent> on each line in the file. First and foremost I've set up a structure called Term …

Member Avatar for jonsca
0
92
Member Avatar for MaDo4

Hi guys i'm trying to write code that requires the user to hit return twice to terminate the project and I can't figure it out. I think i am supposed to use some variation of [CODE] if(input == " "){ exit(1); } [/CODE] with a Boolean expression but I can't …

Member Avatar for MaDo4
0
2K
Member Avatar for aakashjeyapal

Hi... I need to establish a connectivity for mysql in c++ on a linux fedora 12.0. please let me know a solution.

Member Avatar for jonsca
0
46
Member Avatar for Casper3912

I am in a distributed education programming class, our most recent assignment has me stumped with a error that is driving me insane. The IDE I have on my personal computer is missing some of the libraries I need(I believe), and when I remote desktop to my school's computer and …

Member Avatar for VernonDozier
0
355
Member Avatar for BrownianMotion

How would you write a function that takes in n and i (integers) and outputs the ith least significant digit of n?

Member Avatar for Momerath
0
40
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
105
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
197
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
132
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
85
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
718
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
994
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
251
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
123
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
681
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
214

The End.