51,593 Topics
![]() | |
[CODE]#include "library.h" using namespace std; void main() { cout << "\n\nWelcome to Dark Blade!\n"; cout << "programmed by Louis Gonzalez\n\n"; cout << "An Evil Demon Creature Known As The Wraith Lord Has Taken Control Of The\nWorld. He Controls A Vast Army Of Evil Creatures Who Kill People For Fun. You … | |
I am trying to come up with a good class design to deal with asynchronous data to be stored and analyzed over multiple time frames. I obtain data elements from an asynchronous data source (i.e. the data arrives at irregular time intervals) and wish to place them in a container … | |
I have two unrelated types of data elements (objects) which I want to hold in two related types of containers, one for each element type. But this seems contradictory - for consistency, it seems that either (a) the containers should be unrelated through inheritance, or (b) the elements should be … | |
Hi! I need help . Can you tell me how can I view the Machine Code of a certain C++ Source Code? I have tried typing [DEBUG filename.exe] in the command prompt but how can I view the declarations of the variables used ? Your replies would be highly appreciated … | |
Hello. I have a linking error when using 'static const int'; My code 1.class A 2.{ 3. static const int b= 5; 4.}; 5. const int A::b; The code is compile, but i receive a linking error: multiple definitions of A::b. if I remove the definition of b outside the … | |
Hello: I am writting a simulation code on Random Early Detection (RED) and when i run the simulation , the average delay is too high. Does anybody have some idea on it.I really can't get along with it now withouth any help . :cry: Please help me!!!!!!!!!!!!! I have upload … | |
Well I dont know where I am going wrong.... I and trying to do this queue with out the STL I am having issues with my enqueue () How do I get the contritor Info into the enqueue. I am trying to do it as simle as possible and I … | |
I'm having trouble getting my delete function to work for a singly linked list. If I try to delete anything other than the entire list, it deletes everything up to that node. I know there is something wrong with it, but I can't tell what it is. I would like … | |
well I am back with the code agin. I am trying to print the whole queueu. I can cout the front and rear but I can get the PrintQ() to work. | |
Hi all.... i have problem with number: example: 1234 is equivalent to 1432 ( based on maths concept), then erase/delete 1432 2143 is equivalent to 2341, then erase/ delete 2341, and so on How to program it in C++ | |
Hi Guys, I'm getting a segmentation fault in my code and I'm not sure how to fix it. I know where it's occurring, and I know it has something to do with the way I'm using a double pointer, but just have been stuck on what to do. The program … | |
Okay, I have many questions, mainly about subjects that haven't been discussed well in my school class, although I also have a few questions pertaining to a RPG I've been working on. 1. Threads. I've tried to search for a good tutorial on their basics, but I can't seem to … | |
Hello, I've created a macro using AutoHotkey to automate a particularly boring task I have to repeat hundreds of times each day. The task requires me to get info from a web page, move to an application where I paste info from the web page and process an order, then … | |
hello, im trying to get the following code work: [code] #include <iostream.h> #include <string> using namespace std; int main() { string c; string a ("start "); string b ("http://images.google.com/images?q="); cin >> c; string d (a+b+c); system(d); } [/code] It gives me the error [code] cannot convert `std::string' to `const char*' … | |
Microsoft Visual C++ 2008 Express is giving this compiler away FREE unlike the commercial Visual Studio Professional 2005, it does not have MFC, ATL, a Win32 resource editor, a macro assembler, source code control integration, etc What are MFC, ATL, etc? BattlingMaxo | |
[CODE=cpp]void choiceSelect() { int choice; char exitconfirm[100]; printmenu(); cin >> choice; if (isdigit(choice)) { if (choice == 7) { cout << "Exiting program. Enter yes to confirm.\n"; cin.ignore(); cin.getline (exitconfirm, 100, '\n'); if (strcmp ("yes", exitconfirm) == 0) { exit (1); } else { choiceSelect(); } } while (choice != … | |
I'm having trouble getting fstream to function properly. I cannot open a text file while using any of the available parameters. My program calls mainprog() and functions correctly if I compile it as follows: [CODE]fstream openfile; openfile("my_file.txt"); if(openfile.fail()) { cout<<"Error opening file."; } else { mainprog(); }[/CODE] But if I … | |
Hi. I am taking my first C class and I seem to be having trouble with this program. The problem is: Write a function that adds two polynomials of at most degree n. /* f = g + h; n is the max degree of f, g, and h */ … ![]() | |
Hello frnds.. i m using while loops in my code.. bec of that my application uses almost 90% of CPU resources.. its not lettin others applications to run.. actually i have to read some signal from serial port... n till i dont get it high or low.. i have to … | |
consider the following code [code] class A { int aa; public: A():aa(0) {} } class B { int a; A obj[10]; ----> how to intialise this array in the B class constructor } [/code] Thanks & Regards Vadan | |
I don't know what's going on here...but I always seem to get 2 leaks of 40bytes each consisting of FF FF FF FF.... Even with all the code commented out, I still seem to get these leaks. I'm running Visual Studio on Vista SP1, so perhaps a combatibility issue? Or … | |
[B]Hey can someone help me finish my code? Im in a real stump here. What Ive done so far is read and display the code from a 2d array, then I counted the neighbours that were dead and then did the process to make a new Generation. However, I dont … | |
Hi i would just like to know how wud u display the client's IP address when the client connects to the server. This is found on the servers side while waiting for a connect. now i just need to display the client's IP address in this while loop but how:/ … | |
hi!! i made a program to count the max sales in a store, that has for example 10 employees. for this, i used an struct to have the code of the employee and the sales he made. the point of the code is to show a list of the employees … | |
Hello, i'm doing my home work, it's about managing a library, i created 4 trees as required in my assignment. The problem arises with RemoveCategory function. I just don't know why but each time i try to remove books in order like this (the names of the books are in … | |
Hi iam a newbie to C++ I have a problem, pls give me a solution I have an object in the shared memory which encapsulates an array of 6 objects. I want to acess one of the objects in the array. If the first object in the array is already … | |
Hey everyone, I'm trying to write code that will be sent out of the COM port to a PIC microcontroller. However, I don't have the controller available yet. Is there an emulation software that will allow me to virtualize a COM port and capture the data that's being sent to … | |
Sorry for all my previous posts let me explain the exact problem There is a singleton object in the shared memory. It conatins a pool of connection objects to a server. (more likely an array of connection objects). I want to go through the array and find which connection object … | |
can u help me in make a sample code for hashing method using mid square in c++?..pls i really need your help...u can email it at <snipped email> | |
Hello, everybody! i have a problem with permutation array. most algorithm related to permutation, list down all permutation for n!. however, i would like to generate c++ output as follows: 1234 1243 1342 1324 1423 1432 which is we fix the element '1', and cycle others. and soon. i hope … | |
I found many tutorial sites are bookmark like. Anybody knows some good programming tutorials site with rich content? | |
hai plz help me Iam locking an object in a function fun1() and iam using that object in another function fun2() and unlockin it will the lock still holds good in fun2() the object is globally declared consider the following scenario [code] object obj; void fun2() { fun1(); obj.display(); unlock(); … | |
okay so i've got n and an array of n numbers, i have to go through all the three's of numbers like a[i], a[j], a[k] so that i < j < k and take the maximum of each such numbers (max of a[i], a[j], a[k]). my first guess is three … | |
I'm having to create a program that uses a linked list to ask for X & Y points and stores them in a linked list and then displays those results. My problem here is when it gives me the output I only see the last 2 entries I've made. It's … | |
I am working with a MDI in my program. I use .cpp to compile although I program primarily with api's. I'm not sure whether that places me in C++ or Windows threads. Since using .cpp I have to obey C++ rules so I'll list my thread in the C++ area. … | |
I have a litle problem when i try to list Aluno = Student (option 4 in the program). i have other problem, when i try to save some Aluno(student using option 1) te program telll me that it is already created. Some one can help me? [ICODE] #include <iostream> #include … | |
Anyone want to help me with some C coding? I'm a newbie. | |
hello everybody, Can anyone please tell how can i make C++ screen full in windows vista. thank you | |
[CODE] class Base { public: virtual void fn(){cout<<"fn base\n";} virtual void myfn(){cout<<"myfn base\n";} }; class Derived : private Base { private: void fn(){cout<<"der\n";} void myfn(){cout<<"myfn Derived\n";} }; int _tmain(int argc, _TCHAR* argv[]){ Derived d; Base *p = &d; //Error: conversion from derived * to base * exists but is inaccessible … | |
Hi, I have copied the quicksort algorithm out of my text book, but it isn't working properly and there are no compiler errors so I am struggling to debug. it is partially sorting so I think it must be one of the conditional statements or something not declared how I … | |
hello everyone... can you help me with this assignment about hash tables.. I run the code on a linux machine and gave me errors.. here is the assignment and my code in attachment can anyone fix this please...I need to hand it today.. thank you all Asem | |
Hi All, I have a class of type class Row_Entry { public : //CString symbol; CString bid; CString ask; CString bid_size; CString ask_size; CString bmmid; CString ammid; CString type; CString exch; Row_Entry() { } }; I am creating a vectorlike this `std::vector<Row_Entry>RAW_ENTRY;` Now i have pushed all my required data … | |
anyone can help me? please problem: write a program that creates three processes and performs matrix operations at the same time. each process performs a different matrix operation. the program reads three matrices from a text file. the size of the matrix can be of any valid size. use two-dimensional … | |
Whats wrong with this code //--------------------------------------------------------------------------- #include <vcl.h> #include <fstream.h> #pragma hdrstop #include "MainUnit.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm1::Button1Click(TObject *Sender) { //char *acc, *id, *sur, *bal; int col = 0; int row = 1; int … | |
Hey everybody, I'm a little stuck on this simple program I'm trying to run. Right now it takes in a list of words and makes a single string out of them, but what I really want to do is make each word into its own new string, or maybe create … | |
Are there any standard C++ libraries that support multithreading other than windows.h? | |
Hi everyone, This is my first post on the forum, although I've been coming here to find search for help for some time now. I'm taking a C++ programming class, and am having trouble with my most recent assignment. I'm not here for straight-up answers, just a little help. I … | |
does any1 have any idea about how to,when i press a button,print out 1 line of text written by me and when i press it again another replaces the old? i already got the saving working so u dont have to worry about that | |
I'm creating a multiplayer game using winsock, but I've been having several problems with winsock. I've been searching for an alternative to it, but I haven't found anything. If anyone could point me to something I could use in place of winsock (a free something), I would greatly appreciate it. | |
Can anyone explain me pointers to 2D array ?? I have to input array of string using and read them in another function but I am having a REALLY TOUGH time with pointersan anyone explin it to me or refer good guide to pointers ?? I am using borlnd c++ … |
The End.