49,761 Topics
| |
Here is my first post. I am looking for a little guidance with my class project. I have all the logic pieces worked out, but I don't know how to import a scores.txt file into an array. For the sake of my testing I just statically entered some data into … | |
[code] what is the difference between newNode arrowlink=q q arrowlink=newNode is it the same? [/code] | |
I am getting these errors when compiling, and I am not sure why. Any help is much appreciated. Thanks daniel /////errors 77 C:\Users\dwilmes\Desktop\project3\main.cpp expected constructor, destructor, or type conversion before '<' token 77 C:\Users\dwilmes\Desktop\project3\main.cpp expected `;' before '<' token 83 C:\Users\dwilmes\Desktop\project3\main.cpp expected constructor, destructor, or type conversion before '<' token … | |
i'm a newbie, an IT student from Philippines, just want to know if anyone can help me regarding my prob on how to put a date and month with range in case of a switch statement in c++? my project is about creating horoscope reading program and i don't know … | |
[code] • Constructors of derived class can (directly) initialize only private data members of the derived Data Structures Using C++ 14 class • Execution of derived class’s constructor must trigger execution of one of base class’s constructors • Call to base class’s constructor specified in heading of derived class constructor’s … | |
[code] what is operator overloading n its function.wat is the core purpose we use it by providing me suitable example.i have read about it in book but very confused. hope someone out there can help me.please n thanks you very much. [/code] | |
hi all, [B]can any of you enlighten me as to how to use ACEXML Parser to parse an xml file in c++.[/B] regards, psankisa. | |
I didnt know where to post this but i hope this is the right place. I was wondering how a code in c++ can be used in or with java. i.e if I decided to write a code in C++ that performs processing and i want to write another code … | |
Hi guys, when i am compile this program it gives error. i am wondering why it is so.. plz help me. thankx [CODE] #include <iostream> #include <map> #include <string> using namespace std; class ConfigPath { public: ConfigPath() { m_name = "VIPIN DAHIYA"; } ~ConfigPath(){} private: string m_name; }; int main() … | |
Hello All, I have a Borland C++ generated DLL, which Iam using with VC++, I managed to generate the .Lib file compatible with VC++. Now my programs compiles and run, after that I get run-time error as follows: [QUOTE]Run-Time Check Failure #0 - The value of ESP was not properly … | |
Hello I am trying to write a program that removes spaces before and after and reduce to one between words and capitalize the first letter of each world and the other letters lowercase but I'm getting errors which I can't make heads and tail of. |12|error: expected primary-expression before ')' … | |
I'm trying to create a program that will sum all of the numbers from 1 to n, which the user inputs. I have to use recursion to calculate the sum. For example if the user inputs 5 it will return the sum of 1,2,3,4,5. Here is what I have so … | |
Hi, I'm writing MFC code and i got an error after writing this command line: [code] CFile f(_T("E:\\testHMM.txt", CFile::modeCreate|CFile::modeWrite)); [/code] the error is Debug Assertion Failed!!! Thanks, Mostafa Fouly | |
this is my code... not too sure what im doing wrong but its probably something small. im getting errors too. #include <iostream> #include <fstream> #include <string> using namespace std; // void functions void nameFile(ifstream & infile); void openfile(ifstream & infile); void displayScores(int scores); void getData(ifstream & infile, int scores[], int … | |
so im starting the second half of my c++ class and we are getting into functions. are first assignment and im already stuck -__- the teacher gives us the code for above main so we just need to write the prototypes. heres my code so far (prototypes probably wrong) it … | |
I dont know whether this is the right place to post this question but I think you guys have huge experiences so... I had a course on both algorithms and software engineering , and now I feel that I can devote my time to only one of these( as these … | |
Hi, I'm doing an assignment, where we need to use a class Domain and correctly output the URL address. The given class Domain is like this: [ICODE]class Domain { public: Domain(string lbl) : m_label(lbl) {} string label() const { return m_label; } const vector<Domain*>& subdomains() const { return m_subdomains; } … | |
I'm doing this minesweeper assignment and I need help. I tried to test the findMineValues() function and it completely scrambles up my board. Can someone help me pinpoint what I am doing wrong? [CODE=cpp] #include <string> #include "Cell.h" using namespace std; Cell::Cell(){ label = 0; mine = false; flag = … | |
The following is the complete code. Can you give me a hint as to why the program is reading the "mph" instead of "hours"?? The program should only display the "Distance Traveled" according to how many hours the user inputs, not 40 separate calculations. The user inputs 40 mph and … | |
Does anyone know why if I hover my mouse over an "if" statement in Dev-C++ it comes up with a tool tip: "Sometimes headers get that do if"??? It happens with types to: "...get that do long" or "int". What is going on? | |
Hi, can somebody explain why am I getting segmentation fault on this program. It seams that the list that is initialized in clstouchcontext.h does not get recognized in clstouchcontext.cpp Makefile is attached. main.cpp: [code=cplusplus] #include "clstouchcontext.h" #include <iostream> int main () { clsTouchContext* pContext = 0; //= GetContext ( iContextId … | |
I have been developing my own compression algorithm for my school project.It is like LZ77 but uses fixed blocks,and a dictionary containing the position of the repeating block (dic.inpos)& where it is to be copied(dic.charpos);I am using Gnu C++,The program crashes or gets stuck on initializing in.. Also the program … | |
Hello everyone. I am having a hard time getting this program to run w/o an infinite loop. I have been in my C++ class for a month. I think my test expression is incorrect, but I've tried what I think it should be. Problem: Write a program that asks the … | |
Hi Guys. I wrote a nice MFC application. This app uses a number of threads and is meant to manage rs232 communication with a microcontroller. When I send or receive data Visual Studio informs me of a [B]Memory Leak[/B]: Detected memory leaks! Dumping objects -> f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp(306) : {184} client block … | |
Hi, I am using Visula C++ and building LinkedList. But I am studk. Please look at this if goes something wrong. Please mention it. Their are are two classes I am using for it. The first it Data Class and other one is Node class. Note that both classes are … | |
Hello I need the user to input for example a time format HH:MM(AMorPM) or a complex number format: X+jY Then I want to read HH in and int and MM in another int and the same for the complex number example. I am aware I should use delimiters, but i … | |
I am writing a program for a class and I am having a problem that seems very simple yet I can't place my finger on it. I have to decode a message and everything decodes right except what is already there and should be showing up in the output which … | |
i have a class with 10 object and each object have a random position like (x,y) now i wand a code that do not put object in same position please complete my code [CODE] #include <iostream.h> #include <time.h> #include <stdlib.h> class chess{ public : chess(); private : int x; int … | |
Im trying to create a Text Based Game and i want to have a 'Game Menu'. This is my code but i dont know exactly how to make the menu. Please Help! I also wouldnt mind if some can tell me how i would be able to integrate a cheat … | |
hi.. i'm trying to creat a game on c++ that store some words with at least seven letters in an array, and to randomly select one word and jumble up the letters and display the jumbled-up word. like.. PROJECT can be jumbled-up as CJEROTP The player has to guess the … |
The End.