49,761 Topics
| |
Hi, I'm trying to code Huffman coding.I've formed my huffman tree but dont understand how I'm gonna assign bits to it.How do I do bit operations and how do i maintain bits of length 3,5 etc? Any help appreciated | |
Hi All, I want to enable/disable users who logged in Domain Name Server (DNS). Through VC++ code. If anyone has idea regarding this please reply me asap. Thanks in advance for u r reply. Regards, Shalin. | |
so I'm writing a program that takes the input from the file, an ISBN number, removes the "-" from it, puts it through a formula (1*first number 2*second number ... 8*eight number) /11 and what ever that equals should be the same as the last number in the ISBN if … | |
I have a serious problem which i am not being able to figure. This program finds all the permutations of a given string using recursion. The diagnostic outputs show that the values of the 'choice' and 'final' character arrays is not maintained at a position (I don't know why). Please … | |
hello,any greate man can tell me the difference between cxx and cpp,h and hxx? waiting the answer,thanks | |
[CODE]#include <iostream> #include <string> #include <time.h> #define newline '\n' using namespace std; char ch; int main() { cout<<"*A Signed on\n*I Signed on\n"; cout<<"\nA:It's you again, isn't it?\n>I:"; string ent1; cin>> ent1; while(ent1 == "yes" || ent1 == "Yes" || ent1 == "YES") { cout<<"A:No...\nA:It's been so long since you last … | |
Does anyone know what's C++'s SETW() Equivalent in Visual Basic .NET ? SETW: Sets the number of characters to be used as the field width for the next insertion operation. Is there anythign similar in VB.NET. Note: I want to use in a ListBox. I've tried using: [CODE] Dim fmtStr … | |
Is it possible to put compile-time conditional code in template functions? Kinda like, [code=cpp] template <class T> void print(T &foo){ cout << foo; #if T == float cout << " is a float." << endl; #endif }[/code] Something like that, I hope I made myself clear. Thanks in Advance, | |
Greetings! My task is to impement [url=http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm]Bresenham's line algorithm[/url] by mapping floats to integers, but be able to draw lines of any slope, including horizontal (zero slope) and vertical (infinite slope) lines. (The near-bottom of the page has an integer-only version of this.) My implementation of the linked pseudocode works … | |
I really need some help!! I do not understand anything! I do not even know how to start!!! Can any1 help plz!!! “Moore’s law describes a trend in the history of computer hardware. The number of transistors that can be inexpensively placed on an integrated circuit is increasing exponentially, doubling … | |
Please I'm trying to create a sales management software and am experiencing problems trying to create a table like we have on spreadsheets for enterring sales data.I'm using the Win32 API.Could any one give me an idea on how to implement this ? owobass | |
I was wondering if this code is correct syntax for function parameters in a class? [CODE] class myclass { private: char mystring[50]; int length(char string[]); public: int yourlen(){ return length(_string, _string); [/CODE] I know later in my code, I would have something like this: [CODE] mystring A; char string[50], string2[50]; … | |
Hi everyone. I wrote a Rock Paper Scissors program my first quarter of C++ two years ago, and now I have a job at a programming job. I showed someone my little easy program and they challenged me to make a verson 2.0 with AI and a gui. The Gui … | |
I have signed up for high school online c++ courses, which has proven to be a mistake, due to my inability to grasp the content. I would like to keep learning, but as the semester draws to an end, I must catch up on my work. This is a project … | |
hi guys, I am a student that I am learning data structures. My professor asked me for this assignment Write a recursive function that will be able to read and dsiplay the elements of an array and the function should not have more than one loop whether it is one … | |
hi i'm new for c++, i tried to work with mouse pointer on my run window but i dont know how to make interrupt to do it. thanks | |
Hello, I want to test several small apps and would like to group them into one Eclipse project. That is, I have several source files each with a main function. Can I configure the builder to compile each of the source files? | |
[url]http://www.mixsoftware.com/product/cpvideo.htm[/url] Can anyone tell me if this video and course work is helpful at all? Have any of you guys personally purchased this, or do you believe it to be a waste of time? Keep in mind im fairy new to programming. Thanks | |
Hello everyone. I know this is a C++ forum not MySQL forum but I need help with the C++ library for MySQL I am hoping that there will be people here who are knowledgeable about MySQL++. My problem is that I can't get the g++ compile to link to the … | |
How to get the invoked command and parameters as one string instead of a list of argv-s (especially gcc under Linux)? | |
How long did it take you to learn C++ or C or VB. I learning some what C for my Linux class. | |
Hi, Trying to play with multithreading by taking some of my existing apps and converting them over. In doing so, I noticed a strange phenomenon that I've been able to reproduce in a very simple program. let's say I create 2 threads. Each thread simply does a for loop from … | |
#include <iostream> #include<string> using namespace std; class substr { public: void getsubstr(char* b, char* db) { char* stpos = strstr(db,"gi|"); int pos = db-stpos; char* end = strstr(db,"|ref"); int endpos = abs(db-end); b= new char[endpos-pos+2]; int i=pos+3; for(;i<endpos;i++) { *b++=*(db+i); } *(b+i)='\0'; } }; int main() { substr* s; char* … | |
Hello All, I am trying to compile the C++ program. But I am getting weired compilation error. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1>------ Build started: Project: HelloPras, Configuration: Debug Win32 ------ 1>Compiling... 1>HelloPras.cpp 1>c:\documents and settings\prash\my documents\visual studio 2008\projects\hellopras\hellopras\hellopras.cpp(15) : error C2819: type 'JavaVM_' does not have an overloaded member 'operator ->' 1> c:\program … | |
I´ve been messing around with edit controls like mad, but I can´t get it to work. Only Problem, I don´t like the plain white background Windows gives an edit by default, so I´ve created a graphical one. Now I have a main Window containing some child windows, where one of … | |
Hi, I'm making a program that can send an SMS message to a cell phone using any number that the user chooses. I have been successful sending a message with an SMTP server that says it's from an email address, but I need to make it show up as a … | |
I need major help on this. I am so lost in C++ and don't understand what is going on. I have the first three done! Please help, I am begging! 1. Draw a UML diagram for the follow class: --Class name is game --Privage integer member called level --Public constructor … | |
Hey guys & gals, I have a homework problem, and I'm having problems looping the month. I will share the problem, then what I've got so far. Thank you in advance for any advice :) The problem is a typical wolf/rabbit population, but the solution asks for the population every … | |
Hi, I need to implement a dynamic array of pointers to structures.Here's what I've done [code] struct node{ int freq; node *lptr; node *rptr; }; class M { private: node **A; int length; public: M() { length=10; A=new node*[10]; } M(int a) { length=a; A=new node*[a]; } [/code] Firstly, am … | |
CIS350 Project Choose one O(n log n) and one O(n2) sorting algorithm. Choose a third algorithm of any time complexity. For each of the three algorithms you have chosen, implement the algorithm. Then, write a short piece of code that will generate the following: 1. A file of 1000 random … |
The End.