49,761 Topics

Member Avatar for
Member Avatar for apurva agarwal

hi!! i want to know about the huffman algoriyhm and its implementation. how the huffman code works and its use, a code in c/c++ language

Member Avatar for asim88
-1
415
Member Avatar for Mekalor

Hello, I'm making a program that can play Bejeweled 2. Everything is working smooth except for a glitch in the movement algorithm. If anyone is really good at making these type of algorithms can you look at this code and/or give me some hints ? This is the core algorithm …

Member Avatar for Mekalor
0
115
Member Avatar for etisermars

Hello, Need a litle help with a problem. It is posible to automatically change the value of variables? For example: If i have 2 variables: "a" and "b", and let's say initially "a"= 3 and "b"= "a"+5; If i change "a" = 7, how can i do that "b" automatically …

Member Avatar for Banfa
0
113
Member Avatar for lulusweety

I have to program Portable Data Terminal(PDT) using C++. Is there any site that gives the details? I could not find. Please help me with code examples bcause I am new to this. Thanks in advance

Member Avatar for lulusweety
0
85
Member Avatar for coded_hitec

Gentlemen, Is it possible to initialize the array at the time of creation?? I mean: int *a = new int[10]; // here array is only created. I wanna initialize the same too here itself. Is it possible???

Member Avatar for coded_hitec
0
108
Member Avatar for Jaivani

my program runs but it only displays the passing ones not the failers it a mulitinention array that user enters the amount a student and grades to be entered. an such make is the pass and if low ey fail. but my program just reads the first grade and if …

Member Avatar for Buffalo101
-2
58
Member Avatar for mickmos

hey guys. i am having a problem with combo boxes in c++. i am making a very simple game for a subject at uni, in this game you pick up guns and shoot monsters. each gun has attributes; damage range and name. when you pick up a gun it is …

Member Avatar for mickmos
0
280
Member Avatar for vbx_wx
Member Avatar for vbx_wx
0
109
Member Avatar for onurozcelik

Hi, In my application I have two object type. One is field item, other is composite item. Composite items may contain two or more field items. Here is my composite item implementation. [CODE] #include "compositeitem.h" CompositeItem::CompositeItem(QString id,QList<FieldItem *> _children) { children = _children; } CompositeItem::~CompositeItem() { } QRectF CompositeItem::boundingRect() const …

0
76
Member Avatar for rkp728

I want to know how a read/write calls is accomplished in linux? I mean how a function say read() will read the data from a file. What all will be the steps from user mode read() function call to kernel mode? Will anybody explain the steps or let me know …

Member Avatar for rkp728
0
161
Member Avatar for shrutinr

Hiii... I want to know how to open two windows forms at a time... when i give as Application::Run(gcnew Form1() ); Application::Run(gcnew Form2() ); Then, the Form2 will open when first one closes,... So any one please help any other way is their so that , i can open two …

Member Avatar for shrutinr
0
119
Member Avatar for ddanii

Hello, when I give fprintf the character 0x0A, then it prints out 0x0D and 0x0A (which is \n in Windows). How can I print only 0x0A? I need to print a picture into a file containing 16-bit pixels, (and some bytes contain the value of 0x0A,) so it is very …

Member Avatar for ddanii
0
109
Member Avatar for mmgoicochea

Hi everyone I m openning this theat because I want to see if any of you can help me... well lets see ... I got my full time back at work (after 2 years :o ) and Im worry about college because I do not have enough time to complete …

Member Avatar for mmgoicochea
0
445
Member Avatar for slowlearner2010

hi all, i want to insert some data into my database (ms access) using c++...for ur info, im trying to do a register user for my login page..i hope after insert some data to text box and click button "ok"....all the inserted data was stored to database (ms access)....how to …

0
68
Member Avatar for gregarion

Hey guys, i am working on a project which basically takes a string which is being inputted by people and then adding it together and displaying in a certain format. What i am having problem is when i try to read the string and store it into the functions. [CODE]class …

Member Avatar for jonsca
0
115
Member Avatar for sgriffin

Ok so I have an operator* for left scalar matrix multiplication that is correctly outputting for the first 4 outputs and not for the next 4. If I have a matrix M2 with inputs [1,2;3,4;5,6;7,8] (the semicolon means next column), and multiplying it by 4, then I am getting the …

Member Avatar for WaltP
0
80
Member Avatar for cablee

I need to somehow open and read a picture of a map (jpg/png/bmp) into a 2d array so I can use the array to determine what terrain type is at that element/position on the map. Looking for tut's on working with picture files (jpg/png/bmp) with c++ I have found none. …

Member Avatar for Coder++
0
147
Member Avatar for coding101

after i input the three letter, i cant get the number back.. [CODE]#include <iostream> using namespace std; class Month{ public: int month; Month(char& one, char& two, char& three); Month(int& numb); Month(); void input1(istream& input); void input2(istream& input); void output1(ostream& output); void output2(ostream& output); }; int main (){ char x,y,z; int …

Member Avatar for Coder++
0
147
Member Avatar for mindcheck101

What type of developer creates audio plugins for digital audio workstations like pro tools and cubase

Member Avatar for Salem
0
43
Member Avatar for Kevin38

[CODE]#pragma warning (disable: 4786) #include <algorithm> #include <iostream> #include <string> struct PhoneBook { PhoneBook(std::string s, long num) { name = s ; number = num ; } PhoneBook() {} friend std::ostream& operator<<(std::ostream&, const PhoneBook&) ; long number ; std::string name ; } ; std::ostream& operator<<(std::ostream& os, const PhoneBook& rpb) { …

-4
33
Member Avatar for react05

Hey guys, how would i create a random number to decide whether it should enqueue the customer or not. thank you.

Member Avatar for alex034
0
97
Member Avatar for metroidfreak

Hi, I'm trying to figure out how classes work. I currently am working on getting a class to read a string and then place it into an array, as well as have the class then output the entire array. I wrote the following code to make sure i could get …

Member Avatar for metroidfreak
0
164
Member Avatar for aaronmk2

I am trying to learn about recursives and found this code on the internet. It works, but am not sure why. Could some one explain to me why this works. I have posted comments by the function to explain what I do not understand. [CODE] #include <iostream> using namespace std; …

Member Avatar for aaronmk2
0
104
Member Avatar for Xorlium

Hello! Suppose I'm using an external API, and in that API, they define: const Bar& Foo() const; So this function returns a Bar by reference. Now, I have a function void f() { Bar P = Foo(); } Is it safe to const_cast whatever is returned by Foo? I want …

Member Avatar for Xorlium
0
169
Member Avatar for yongj

I'm doing a homework assignment about constructors and this is really bothering me. I keep getting the error "constructors are not allowed a return type". I HAVE put a semicolon after the class declaration. I'll post my code here. [CODE]// Joseph Yong // CSC2430 // Homework_6 //Header File /*--------------------------------------------------------------------------*/ #include …

Member Avatar for NathanOliver
0
360
Member Avatar for Sylviodrood

SO basically what im trying to do is take an input number of any base and convert that number to any base(allowable bases 2,4,8,10,16). I am trying to think how i am supposed to go about coding it, wondering if anyone can point me into the right direction. Thanks

Member Avatar for mrnutty
0
74
Member Avatar for prodstar

hi i'm currently making a program relating to money and i need my c++ to read one of my excel files which has all the prices etc in it how do i make it work? =/

Member Avatar for gabryprof
0
180
Member Avatar for Atlanticspace

[code] 842 M C 20.00 15 2 250 10.00 UC RosebudTheatre 90 One Mike Stand 990 E C 20.00 19 2 1250 10.00 TX TexasHall 75 Maverick Speaker Series554 C N 16.45 30 1 35 0.00 UC PaloDuraLounge 60 Global Grounds Coffee Hour 318 E C 18.00 3 4 350 …

Member Avatar for VernonDozier
0
107
Member Avatar for thatom

Hi I am using borland C++ Builder 6.0 and I would like to include finger print technology in my program. I want to store finger print images in the paradox 7 database. I would like to log on into the program using the fingerprint. I have a UrU 4000B finger …

Member Avatar for mitrmkar
0
197
Member Avatar for Atlanticspace

ok so im trying to get my line of text file working with my file input. the Last part of my text file has a name of an event with spaces which I want to include those spaces so I needed a getline. apparently for some reason my getline function …

Member Avatar for Atlanticspace
0
162

The End.