49,757 Topics
| |
I use Borland C++ Builder ver 5 - and always want to make stand alone exes. I now wish to create and use my own libraries. I made a simple .cpp, ran "bcc32 -c mycode.cpp" to create mycode.obj, then ran "tlib mylib +mycode" to create mylib.lib. I created a .h … | |
[CODE] #include <iostream> using namespace std; int main() { cout << "enter" << endl; int a,b; cin >> a >> b; cout << a << " " << b << endl; return 0; } [/CODE] in the code given above when the input is INPUT: 45 12 OUTPUT: 45 12 … | |
Hey everyone. I was just wondering if anyone who programs for a living or just as a hobby ever gets bored of it? And if not, why do you not? And if you do, what keeps you wanting to continue doing it? Thank you. | |
[code] //Mohammad Sharaf Ali k092094 #include <iostream> #include <iomanip> #include <string.h> #include <math.h> using namespace std; struct tree { char a[20]; int s; struct tree *left,*right; }*root=NULL,*tt[20]={NULL},*temp,*temp2,*t2,*ri,*le; struct pqu { int info; char a[20]; struct pqu *ptr; }*front=NULL,*t,*par,*t1,*p1,*p2; struct pqu* fp(int info) { struct pqu *p=NULL; for(t1=front;t1->info<info&&t1!=NULL;t1=t1->ptr) { p=t1; } … | |
Small introduction; been using C++ for two years at college level, and now I've outgrown the console. Having a little trouble in wxWidgets though, since I apparently don't understand how wxButtons work. What I want to do is have a dialog come up with text entry, and an ok button … | |
OK so I have to compare Java with C++ and I need to address the following topics - The following topics should be compared: - programming constructs that are in one language and not the other, differences in - programming in one language or the other should be addressed the … | |
Why constructor can not be defined as virtual? Thanks | |
I somewhat understand the concept of the parentheses overload when you need to use an object as a function. The question that I have is why does the max variable in the listed code below always input 2. [CODE] /* Purpose: This is the header file of randomInteger.h The class … | |
[url]http://www.ibm.com/d...rary/pa-dalign/[/url] Can anyone plz explain why , according to this article, an x86 processor can't read simply 4bytes from an odd address and has to make 2 reads then shift bytes to get aligned to the correct value? I dot see why a processor can't read from an odd address … | |
I am trying to get consecutive words in a document using flex. Normally the forward slash should work, but for some reason it is not. Also I need to account for spaces. So I can't seem to use that regex character for this, how do I account for consecutive words … | |
[CODE] //Mohammad Sharaf Ali k092094 #include <iostream> #include <iomanip> #define INFINITY 999 //Max Length using namespace std; class Graph { private: int adjMatrix[15][15]; int predecessor[15],distance[15]; bool mark[15]; int source; int numOfVertices; public: void read(); void initialize(); int getClosestUnmarkedNode(); void dijkstra(); void output(); void printPath(int); }; void Graph::read() { cout<<"Enter the … | |
Hey everyone, I am currently working on a project to create a List ADT that has the following public interface: + size( ) : integer o Returns the number of elements currently stored in the list. o Postcondition: Returns 0 if empty otherwise returns the number of elements. + add( … | |
Hi Daniweb, I've been programming a base class resource manager for a game I'm working on, and so read up on boost's shared_ptr and weak_ptr. I'm done with it and it works and I would really appreciate some feedback on my choice of implementation and design. Am I using the … | |
Hi I am getting an error saying that a class doesnt exist even I did foward declaration: [CODE]class CMyApp: public CWinApp { public: BOOL InitInstance(); }; class NumericOperation; //foward declaration class CMySkaiciuokle: public CDialog { public: CMySkaiciuokle(); virtual BOOL OnInitDialog(); protected: virtual void OnCancel(); virtual void PostNcDestroy(); afx_msg void OnPaint(); … | |
Explanation: suppose an expression -23+5-9/(5*2) is entered then i want output as Numbers: -23 +5 +9 +5 +2 Operators: + - / * () Is it possible? | |
Tell me about these and give me some negative and positive code examples. >>Stack Unwinding >>Constructors, Destructors and Exception Handling >>Exceptions and Inheritance thnx for information | |
I've written a C++ function which converts an integer to a (C++-)string ... [CODE=C++] ... string s = itos(5698); cout << s << endl; /* Will print '5698' on the screen */ ... [/CODE] You MAY use this code for anything you want but [B][COLOR="Red"]you aren't allowed to sell this … | |
Hi, I'm trying to capture audio from a microphone into a vector in C++. I'm using openAL's example code Capture.cpp (below). I understand that it buffer's the data, but I'm not sure what comes after. In short, what do I do to put the buffer's data into a normalized (+/- … | |
Finishing this memory mapping palindrome and keep getting file not found. If anyone has the time please take a look at this I debugged to if (argc >1) and that is where I ran into problems. Also could someone also just verify my palindrome is set up correctly? [CODE] #include … | |
Hey all, I have a program(using wxWidgets & MySql++ on MINGW) that has to have some Bluetooth Interaction with an Android App. The problem is that I am having trouble finding a framework(API) that would help me send,recieve data over Bluetooth with other applications. I searched and searched all over … | |
hi in my text book i have this problem. how to program this [ICODE] Define a class Quadratic_int that stores the coefficients of a quadratic polynomial in a dynamically allocated array of integers. Supply the "big three" memory management functions. Use this class to demonstrate (a) the difference between initialization … | |
| |
I do not need anything too complex, I just need to be able to graph and plot some simple 2D graphs. There is a lot of scattered info all over the internet and at work I dont want to download one of these free softwares and have it blow up … | |
Hi, I have a question and I apologize if it is too newbish. I have been for a while now trying to learn OpenGL but I cannot understand how its coordinate systems works. I know coordinate geometry as I did some math long ago as well as equations (linear, polynomial … | |
Hi, I am writing a game in C++ and OpenGL. My whole environment is based on cubes so I guessed bounding box collisions were best. I can currently move around and my program is detecting collisions (I used this tutorial: [url]http://www.3dcodingtutorial.com/Collision-Detection/Collision-Boxes.html[/url]). Now I want to make it so that when … | |
Hello I'm coding an algorithm based on genetic programming with tree structures in C. I implemented tree structure using recursive structure pointers **The traditional way** [CODE] struct tree { int val; tree *left; tree *right; }; tree a[10]; tree b[20]; void main() { generate (); // this generates me 10 … | |
So for my project, I am doing my coding on Python and mainly C++, then I have a GUI interface form made on VB, so how do I link all these things together for a final product? PS: Someone told me about DLL's I don't know what that is, could … | |
i am write a code to print element in stack in reverse order i need two stack to push from first and pop to other but i have something error .. [CODE]#include<iostream.h> #include<process.h> struct stack{ stack s1,s2; int info; }; class stacks { private: stack top; int x; public: s1.stack(){top=-1;} … | |
Hi. Visual C++ reports error 2440 for the following code: struct a_t { int i;}; struct b_t:a_t { int j;}; b_t* pb = 0; a_t* const * ref_pa = &pb; // Error 2440 reported for no reason at all. I cannot see why this should give an error, the base … | |
Is it possible to design a Web Browser using C/C++ in Turbo C++ compiler by network programming ? |
The End.