51,593 Topics
![]() | |
I want to make drum software.I need to use standard midi for this.Someone please tell me how I can. | |
I'm in beginner stage of VC++. While i compiling the pgm with MFC there's an error "error C2065: 'IDD_DIALOG' : undeclared identifier" | |
I am not interested in C++ but it is most important to learn it i was scared from it since my college time but it is a professional task for me any body have any good way to learn it? | |
i was just wondering if anyone can give me an example of how to use a menu and parallel array together for a vending machine c++ code. Also when do you need to initialise all these things? before the main() or inside the main()?? pleaase helppp! thanks youu.. | |
Hi, i have this assignment and i would like some help with it please. It is my first assignment ever in c++ and it is my first go at writing code for it. Ill post the question and my code so far if anyone could help me get the code … | |
What does the linker error "SEGMENT_TEXT EXCEEDS 64K"mean,is there any way to solve this.Plz Reply SOON!Thanks in advance | |
Hi guys...I am learning binary trees and its quite interesting. But I am unable to make4 a the delete a node function in it. Whenever I try to delete a node, a fatal error occurs and the program closes. Can you please point the error out for me in the … | |
good day ahm guys do u have any idea how to make GUI in console application in c# I've tried searching in internet but i couldnt find it. Mostly VB. Pls guys need your help for my sales inventory system | |
i need to ask some question about header file and some sentence in c++ because i prepare master in image processing cane anyone offer help ,please thanks | |
I am working on a programing that needs to accept a text file as input and read that data into an NxM matrix. The only given size limitation is that the max row length is 1024. Additionally, the program needs to produce an error if all rows do not contain … | |
Hi, I have started programming in C++ and I have a newbie question: How to get a wxEdit text value into a message box, like this: [icode] void Project1Frm::WxButton1Click(wxCommandEvent& event) { MessageBox(NULL,"You typed: '" PLUS "wxEdit text" PLUS " in the textbox","Testing",MB_OK); }[/icode] Any suggestion is welcome. Thanks. | |
I have done approximations of I=∫dx/x using Simpson's rule and Trapezium rule, and I output the results to excel. And I plotted a graph. My problem is, why are there fluctation at a point of n instead of showing linearity all the way(Picture below)? I have been thinking this all … | |
Hi Everyone. Apologies for the length of my first post but this one has perplexed me an bit in my project. Im creating an Windows Media Player Visualization in VS2008 and am drawing an blank on the below. What i need to do with the below code is to create … | |
Hello sir, This is Rajasekhar murthy.... I want a c++ program on files i.e.., write a c++ program to eliminate blank space ,comments, tabs in a given file. I am waiting for your reply sir.......... | |
Is this possible to declare a template struct similar to template class: [CODE]template<class type> typedef _stack { type arr[MAX]; int tos; } stack;[/CODE] Thanks. | |
Hey :) I wonder how i can make my program make a shortcut to itslelf, and put it in a specific directory? | |
Can any 1 help me or give me a tip i know that i have some mistakes what I want to do is : - Read the input until eof keeping track of each letter that occurs in the input as well as the number of occurrences of that letter. … | |
I've been trying to read this binary file I wrote with a python script. The format of the file is this, first there is an integer that tells how many floating point numbers follow that integer(there will be 5 times this number), then the floats follow, another integer, etc. I've … | |
[code] #include <iostream> #include <fstream> #include <cstdlib> // to clear the screen #include <cmath> #include <string> using namespace std; #ifndef NULL #define NULL 0 #endif int MAX_FLOOR=10; struct passenger { int id,waitingtime,timestamp; float source,destination; passenger * next; }; struct node /*this is the linked list that contains source and destination … | |
So ok, I have been doing like java for a year and a half, and this is my lovely 4th day of C++, and I have already read up on pointers, dynamic memory and all that fun stuff. I do know what the header file class does. However I got … | |
Here is what is required: Create a new console application project and name it "Week1Lab_YourName". Create a new class called DayOfTheWeek. The class should have a data member that can store the day of the week such as Mon for Monday, Tues for Tuesday etc... STEP 2: Create the member … | |
I have a template which can be initialized with container list, vector or my own create container zbior and struct element as an El: [code] template<typename El, int colsNo, typename Container> struct CSVReaderWriter { Container m_cont; void read (std::istream & _input) { string linijka; vector<string> entry; string laaa, naa; int … | |
Can someone help me create a function to print all items with a Prod_Stockcount less than 5? Its missing some code but all you need is to add and then create a function to print items with stockcount less than 5 [CODE]# include <stdio.h> # include <string.h> # include <iostream> … | |
Hi, I have a problem with two classes who both has instances to each other. Here are the header files... [code] #ifndef ENVIRONMENT_H #define ENVIRONMENT_H #include <vector> #include "item.h" #include "actor.h" namespace game{ class Environment{ public: Environment(){} Environment(std::string name_, std::string description_); enum directions { north = 0, north_east = 1, … | |
HI, i am the student of MIT. C++ is my subject. I feel confusion in FUNCTIONS. can you help me? > It works if you get rid of `getline(inFile, Library[i].genre);` I didn't try it but it might have worked with `inFile >>Library[i].genre`, but mixing getlines and >> can cause trouble. … | |
hello , i am starting to program my project in c++ i need help in direction. my project is like wikpedia . i should enter about 3 value in each catagory (3*7) . the search will be by pressing some value and then a list will open with all the … | |
Hi, I tried compile the VC++ project in visual studio 2008. I'm getting the error "the null device is missing from your system". I tried viewing non-plug and play drivers for Null device. But could not find it. Could anyone help me to fix this issue. I'm using Vista Home … | |
Hi, I am playing around and trying to understand template singleton class and I accidentally created something that I am surprise it even runs. What I don't understand is when did Apple and Orange instances get created? Could you also comment on the good and bad of the Singleton class … | |
Hi guys, The following code doesn't compile, and I've been banging my head why. Some header code: [code] template <typename T, typename LESS_THAN> class RestrictedSet { private : int _size; int _max_size; set<T, LESS_THAN> _S; typedef typename std::set<T, LESS_THAN>::iterator tIt; public : RestrictedSet (int max_size); RestrictedSet (RestrictedSet<T, LESS_THAN> &other); ~RestrictedSet … | |
Hi people. :) I'm making a function callback system for a console, so I would dynamically be able to send a function pointer to my console class, and then it would be callable from the console. Well, it works - but only with functions that are not member of a … | |
Hi guys, just playing about with pointers and keywords and to my surprise, this code does not throw up an error... can anyone tell me why? [CODE] int main() { int *P = new int; *P = 50; cout << *P << endl; // output: 50 delete P; *P = … | |
Hi there. I need to write a recursive DFS function for graph which is implemented as follows: [CODE=c] struct nodes_arr { unsigned int position[50000]; unsigned int amount[50000]; node *next[50000]; } nodes_table[] = {0};[/CODE] [CODE=c]struct node { unsigned int position; unsigned int amount; node *next; };[/CODE] as a result i have … | |
i am Noor.Student of computer science.this website is very helpfull for programmer students.all my friends likes your site and coopration. I HAVE AN ASSIGNMENT (structure of students using array sorting, fuctions and using pointers to display students in sequence order) SUBMISSION DATE IS 14/1/2010 PLZ ANY BODY HELP ME. THANKS … | |
I wasn't sure whether to put this question here or in the Windows section, but I was wondering if there was a way to put images into a Visual C++ project. That way, I won't have to load an image from an outside directory, and it will already be in … | |
Hi and I am making a dll but the dll won't accept pointers due to what it links to. So below is my code and does anybody know how to make a string array without pointers? Also I'm using Visual c++ 2008. [CODE]//#pragma warning(disable:4996) //disable "depreciated function" warnings #include <windows.h> … | |
My question is the following, i'm just figuring out this language, now my question is about the "n" number. What is the role of n<5, i know after this condition it continues the for or not. But i can't find the precise explanation of the "n" . Thank you. Why … | |
i want to know how to make trace to my program in Microsoft visual c++ 6. thanks | |
Hi, I am trying to work out a simple code in C++.I am getting the input as a string and the output should be reversed.Some thing like this input ="Glitters are Not gold" output should be "gold Not are Glitters". What i have done is get the string and stored … | |
Hello, i'm using VC++ 6.0 with MFC library and i want to load PNG images in my dialog based application. Can anyone help me??? Thanks in advance! | |
I need an API function that disconnects the computer from internet! does type of connection matter? eg dial up, adsl or.. :) | |
[CODE]#include <iostream> #include <windows.h> #include <fstream> #include <string> #include <ctime> #include <vector> using namespace std; bool fileCheck(const char *filename) { ifstream ifile("item.txt"); return ifile; } int show(int p) { srand( time(NULL) ); int random_integer; random_integer = ( rand ( ) % p ) + 1; return random_integer; } int main … | |
Hi guys, I am looking for an STL solution for the following problem. The desired behaviour is the following: - It should act as a priority queue - When an item is added, the item with the *lowest* priority should be dropped. I thought of doing that by making a … | |
Hi....can anyone help me to explain what is the use of isPrime=true; in the last line of this coding..?? I found that it is very important because if i delete it, the answer of the prime number will always constantly 2 and 3.. Even if i put 7 as the … | |
Hi guyz, could anyone please assist me with a code to load an image bmp, pln etc in C++. I'm using OpenGL Library. Please assist, in dire need. Joel | |
Hi...there,,can anyone debugging my code.. this program intend to find the average and count how many numbers is positif and negatif from 10 numbers entered by user. My problem is when i run the program the result of average is correct but somehow on the result of negatif and positif … | |
Hi, This is a very convoluted problem I spent hours debugging to find that when I call std::vector<object>::push_back(Object()) destructor of previous Object is called. Is this the behaviour of std::vectors or is something wrong with my code? [CODE]#include <iostream> #include <vector> class Manager; class Entity { friend class Manager; private: … | |
hi, I want to know how to get name of connected peer. I am creating a simple client server application using winsock2. When I use getpeername() function it gives me IP of client machine. After connecting i did following step [CODE] sockaddr_in peeraddr; int size = sizeof(peeraddr); getpeername(New_Socket, (struct sockaddr … | |
Hi! I have this simple movie-list that I wont work, I get compile errors on this simple program. Could someone please help me to get this to work, should be very simple for you guys =) Thanks in advance! Here's the code: [CODE]#include <iostream> #include <cstdlib> #include <fstream> using namespace … | |
Does anybody know a good tutorial on programming applications with multiple entry points in C++? I am designing an application in MSVC 2008 Express that will interface with an AS/400 system and process scripts to either feed data, extract data by reading the screen, or do custom tasks. I was … | |
Enviorment is TC. using grapphics.h . I am developing the board game LUDO as project in C++ Using OOP methodology. Right now I am drawing the Board. Now I want to draw various cells, of 30 pixels X 30 pixels at various places on the screen. I am drawing a … |
The End.