49,757 Topics
| |
I have been trying to figure out where this is comming from: [CODE]1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall StudentList::getStream(class std::basic_ifstream<char,struct std::char_traits<char> > *)" (?getStream@StudentList@@QAEXPAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@@Z) referenced in function _main 1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall StudentData::StudentData(void)" (??0StudentData@@QAE@XZ) referenced in function "public: __thiscall StudentList::StudentList(void)" (??0StudentList@@QAE@XZ) … | |
I've been working on this program and can't seem to understand how to print an output file of the calendar of July. Is there any help I can get? This is the code: [CODE]//---------------------------------------------------------------------- // // This lab exercise is to practice rand(), srand() and // output formating with help … | |
This program sorts in descending order. Hey guys, I am wondering if I could get some help with making this bubble sort program sort recursively. Any help would be appreciated, thanks. [code] #include <stdio.h> #include <conio.h> #include <iostream> #include <stdlib> #define TRUE 1 #define FALSE 0 void bubble (int[], int); … | |
[code] for(.........) { for(.........) { swap } } [/code] Is there really a better way to sort a one dimensional array then to just use a simple bubble sort? Ive heard arguments against bubble sort before, but what do you guys think? | |
Ok. So I have been researching and compiling info for the past 15 hrs about this. Hope someone can have some helpful input. What I am trying to do is create a program to use for my construction business to help with estimates of a job to make things easier, … | |
I'm trying to figure out how to use the max_element algorithm on a vector of structs, rather than POD's like int etc. This is my struct: [code=cpp]struct NameComponents { std::string sValue; std::string sDescriptor; int nOrder; int nStatus; // Construtor. NameComponents( std::string inValue, std::string inDescriptor, int inOrder ) : sValue( inValue … | |
Hi! I need help to my c++ program. I created a program that is much like the "Who wants to be a Millionaire" television show. It has questions and the right answers and three lifelines. How can I possibly do eliminate a lifeline after being used.? this is the program … | |
[split from [url]http://www.daniweb.com/forums/post1162537.html#post1162537][/url] how can i create like that program but i need to have more questions and i dont nid to use the life time because lifetime is dificult so please help me or give me a program to use in our c++ subject here in MAPUA. please i … | |
Hello everybody :icon_neutral: I'm having an error in finding the biggest/smallest numbers in an array; the debug result gives me wrong numbers. Here's the code that I have been working on: [CODE]#include<iostream.h> int linearsearch(char b[],char searchkey, int size); void main(void) { const int arraysize=7; char a[arraysize],key; int result,i; int s; … | |
Hi I'm using ACE_Thread_Manager to spawn a thread. But it is not spawning the thread. After including `ACE_Process_Manager::instance()->open();` in the main then thread is spawned. The sample code is: class DataType{ public: DataType():data(0){} void increment(){ data++;} void set(int new_data){ data=new_data;} void decrement(){ data--;} int get(){return data;} private: int data; }; … | |
[B]MyClass.h[/B][CODE]class MyClass { //... public: template <class T> static void Swap(T& Var1, T& Var2); //... }[/CODE] [B]MyClass.cpp[/B][CODE]template <class T> void MyClass::Swap( T& Var1, T& Var2 ) { Var1 ^= Var2; Var2 ^= Var1; Var1 ^= Var2; }[/CODE] In another file[CODE]#include "MyClass.h" //... int n = 40; int m = 60; … | |
Hello I must implement overloaded + (binary) operator. I have to use method like that: const Text & operator+(const Text &) const . Anyone knows how it may be done ? I know that I can't make new object in function and return it. Ps: Class Text have pointer to … | |
Code portability basically refers to making source code able to compile on different platform without making any changes in source code. While coding its very important to keep portability in mind.The best way to introduce code portability is while coding.Keeping certain things into account we can achieve code portability with … | |
Need some help here. I am outputting a course and student report. Student report shows what classes the student is in, while Class report shows what students are in a certain class Ok, so class report is only showing the classes (including professor name and classroom #), but not the … | |
Hello everyone so this is the piece of code i'm wokingon.. the program ask to input an integer. If the integer is even the program will divide it by two and if the integer is odd the number will be multiplied by three and then after it is multiplied it … | |
for my own satisfaction, im trying to make a program that does AES encryption, but ive run into a problem: i cant find an efficient way to us the s-box, and i would rather not have a switch statement with 256 cases. what could i do to do this effieciently. | |
Hi there, I'm am trying to write a recursive C++ function that writes the digits of a positive decimal integer in reverse order. [code=C++] #include "stdafx.h" #include <stdio.h> #include <iostream> #include <conio.h> #include <cstdlib> #include <math.h> #include <string> using std::string; using namespace std; int reverse_num (int number, int m) ; … | |
ive been trying to figure this out but i have no clue how to ive got a string thats a whole file and ive used find and replace but that only works on the 1st of the word if i have multiple of that word how could i replace them … | |
I am suppose to count the number of vowels in a user inputed string. I dont know what i am doing wrong it gives me one error? [CODE] #include <iostream> #include <string> using namespace std; int count_vowels(string str) { int count = 0; for (int i = 0; i < … | |
Hi, I have a written a program using multimap and its not giving me the results I am expecting. I have used pair in my program. There is some problem which I am unable to figure out. Perhaps I am using pair for the first time with multimap. Here is … | |
Hello!I have to check one txt file for simetrical words(like 1221 or abccba) and put these simetrical words into other file.End of word is ().,!? or space I have figured out how to find out if string is simetrical. [CODE] int main() { char s[100]; gets(s); int len=strlen(s); bool b=true; … | |
This is what i have for code this far, i need help trying to keep score here. Any help would be well appreciated thanks [CODE] int sum = 0, teamScore, numPoints, score1 = 0, score2 = 0; while (teamScore != -999) { cout << "Did team 1 or team 2 … | |
I am a final year university student quickly nearing my project deadline. My project is to write an artificial intelligence program for a robot to find its way through a maze. I have been using a Lego Mindstorms Robot and the NXC (Not eXactly C) programming language to write and … | |
Okay, so what I'm trying to do is to write a program that reads several TGA images and bunch them together into one bin-file for later use. I got this code from [URL="http://nehe.gamedev.net"]NeHe OpenGL[/URL], Tutorial 24, and it is what I use to load my images: [CODE=C++] bool loadTGA(char *path, … | |
Hi there, I have a problem in that my derived concrete classes are loosing the data members which are part of my derived classes. I have wrote a simple program to show the problem. [B]GrandParent.h :[/B] [code=c++] #ifndef GRANDPARENT_H #define GRANDPARENT_H using namespace std; #include <string> /******************************************************** Abstract base class … | |
C++ program that will implement the popular numerical procedure called Thomas Algorithm. this is my final project in the lab which i have no idea how to start off... and i am really bad at c++ because this was my first ever programming class i ever took in my life... … | |
how can I GET A EMPTY SQUARE İN C++ LİKE THİS; * * * * * * * * PLS HELP ME | |
Hi, does anyone know or has any idea how to import values from a table and assign it to a variable? For example: Ambient Temperatures| 30 40 50 Corresponding factors |0.9 0.7 0.6 (note the table is in excel format and much larger) [CODE]double At,Ca; cout<<"Enter Value for Ambient temperature"; … | |
Hello. I have an issue with a game I am programming for my c++ project which I am hoping one of you kind souls can help me solve... I consider myself an intermediate beginner in c++. I am coding a space shoot-em-up in c++ with a proprietary graphics library provided … | |
How can we check the data type of a variable in c++ during a program as we already know the data but our program shud tell us data type we are using |
The End.