49,757 Topics
| |
Can anybody please tell me how I can make my code an install file? I know how to make the code into an executable, but once I transfer the executable onto another computer (obviously) it doesnt work. | |
I am having a problem with getting my program to compile. This is a sample of my code but it an error comes up and says " binary '||' : no global operator found which takes type 'std::string' (or there is no acceptable conversion)". Is there anyway around this or … | |
Below is a code that i have created to seperate a string statement. There are no errors but the code will not display the micron or the idustry statement. what do i need to do so that everything will show [CODE] #include <iostream> #include <string> #include <fstream> #include <cstdio> #include … | |
| Hi, I am using [icode]setw[/icode] from [icode]#include <iomanip>[/icode] library to format the output and it works just fine... Par exemple. [code] cout<<std::setiosflags ( std::ios_base::right ) << std::setw ( 20 ) << "---------025125222" << std::endl; [/code] However, I wish to format the same output as a STRING. So instead of doing … |
i have to make a program in cpp that finds max,min and avg value from a table and the table is to be retrieved from a location.......any ideas how to do it?????? | |
Hi, I'm working on a shared library with a various of dependency libraries. They are all currently linked dynamically (shared object). I'd like a few of the libraries linked statically TO the main shared object. When I go ahead and try to link these libraries (.a) I get an error … | |
I am making a server-client application in c++. In this i am also using shared memory & file read-write operations. my program is completely ready & i now wants to make a gui for it. someone suggested me to go for QT4, but when i tried it, i found i … | |
Hello all, sorry for this being my first post. I have been dealing with this Nqueen program, and I cannot get it to work properly. I feel like I have been just staring at my computer screen for hours and my brain is starting to hurt. After entering n, the … | |
Help I need to download MinGW Offline Installer | |
So far, here's my code. It is running after I built it but it runs differently that I typically supposed to play tic tac toe with a partner ( two players only). Where do I go wrong on this code? [icode] //Timing. #include<iostream> using namespace std; int check( char g[3][3], … | |
Hi, Please advise how to bind std::sort with boost::thread. I'm trying to do: [code=c++] boost::thread_group thg; thg.create_thread(boost::bind(sort<vector<int>::iterator>, mass.begin(), mass.end())); [/code] and get: ThreadSort/main.cpp:40:0 /Users/Maxim/Documents/Projects/SW/C++/ThreadSort/main.cpp:40: error: no matching function for call to 'bind(<unresolved overloaded function type>, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >)' Please HELP!!! | |
I am having a terrible time separating this code into a header file and source file. I am running this on cygwin and it keeps giving me error messages I do not know how to solve... any help would be greatly appreciated [code] #include <fstream> #include <vector> #include <string> #include … | |
I have to create a word counter function which counts the words of a string. When I run the program, it doesn't end. This is what I have created so far: [code] //-------------Start of Program-------------> #include <iostream> #include <cstdlib> using namespace std; //Function Prototype void stringLength(char *); void reverseString(char *); … | |
I just started working on a small tool to search for (heavy) text files using Visual C++ with MFC. Because there are a lot of readings, I'm wondering if ifstream of the standard library is better than CFile of MFC? I don't need portability (the program is for Windows Environment), … | |
what is the best design practice for this situation? ----- Create a class or set of classes in C++ to represent the birds Create an instance of each type of bird and add them all into a single vector Have each bird hop and then fly in turn Don't have … | |
Hello all, I started learning C++ a few days ago, using visual C++. I'm learning from an old textbook. I'm having some errors come up due to heap corruption. The author of this book defined a class matrix and vector (I won't repost the whole thing as it's quite long, … | |
Good evening; I am having a final exam next week and I'm having an issue with this program. the program should user receive from the user 6 marks for each one of four students and then compute the average and finally show the index of the student who has the … | |
Hi there, I'm new to c++ and im trying to do a project, wich is a letter soup game (its like a word search in a square with loads of other letters). So far now I have a letter (A-Z) randomizer, wich will put them in an array[l][w] (choosen by … | |
Hi, i would like to make program, that saves sent emails to hd. Actually i cant find anything usefull how to do this. At first i am not interested in email clients ,but web based mail. When i send email, befor it is encrypted with ssl, i need to catch … | |
Hi, i've have just created my first program in visual c++ 2008 express edition and i'd like to know, if I can create an exe file to make this program run independently from visual studio. thanks | |
Hi guys hope ur are all well! I have a program im trying to finish and its not going well. I am quite new to C++ and am not the greatest. I have code that ill post, but the problem is when i run the program with the readfile(); function … | |
Hi,I am new with this forum even if I have been programming in c,c++ for a while. I have never realized any DLL file and I'd like to start now. I think I have basically understood the concepts that stay behind a DLL realization but I still can't make one … | |
In my code i have written: [CODE] std::ifstream stm; stm.str("str100"); double d; stm >> d; [/CODE] and an error comes up saying that: [CODE] 'str' : is not a member of 'std::basic_ifstream<_Elem,_Traits>' with [ _Elem=char, _Traits=std::char_traits<char> ] [/CODE] What should i do? | |
In my code i have written: [CODE] std::ifstream stm; stm.str("str100"); double d; stm >> d; [/CODE] and an error comes up saying that: [CODE] 'str' : is not a member of 'std::basic_ifstream<_Elem,_Traits>' with [ _Elem=char, _Traits=std::char_traits<char> ] [/CODE] What should i do? | |
hi all, the following code is for a SLR parser... after compiling i got some strange errors - could someone pls take a look, or try compiling it... tnx alot [CODE]#include<iostream> #include<conio.h> #include<string.h> #include<process.h> #include<stdio.h> char in[30]; char T[]={"i+*()$E"}; char prod[4][5]={"EE+E","EE*E","E(E)","Ei"}; char M[10][8]={"sbbsbbg","bssbbab","sbbsbbg", //matrix to store shift, "brrbrrb","sbbsbbg","sbbsbbg", //reduce,error and … | |
Please, help me! I am a student in Technical University in Plovdiv, Bulgaria. I must finish my graduation work very soon. For the purpose I must create trigger(actually a few triggers) at run time. For my graduation work I use Borland C++ Builder 6. I use BDE palette. I try … | |
I've got two member functions: [code=c] //Particle.h class Particle { public: bool isDead()const; static bool isDead(const Particle & par); }; //Particle.cpp bool Particle::isDead()const { return(xPos<=0 || xPos>=SCREEN_WIDTH || yPos<=0 || yPos>=GRASS_HEIGHT); } bool Particle::isDead(const Particle & par) { return(par.xPos<=0 || par.xPos>=SCREEN_WIDTH || par.yPos<=0 || par.yPos>=GRASS_HEIGHT); } [/code] But when a … | |
hi every one, I am making KBC game in C++. To store questions and its options in a file, I am unable to write successfully the character string of question in the file due to spaces between question. So,can anyone tell me how to write a character string having spaces … | |
I program with Visual C++ 2002 (MFC Application ) I put a Edit Control on dialog and write some code in EN_UPDATE Event to run only i edit this control and press ENTER key but when i press any key in this EDIT Control, event occurred and my code is … | |
Hello, I have a question on how to use a class similar to the Grid Class included in the Lawerence Press textbook on C++. The question is, do I have to have the InitGrid function in every paint or no? |
The End.