49,761 Topics
| |
Hello to all frndz! i want to write a program in which i have stored some integer elements in an array and i want that my program searches for the largest integer and displays it. for example if i have some integers in my array like 23, 38, 81, 12. … | |
develope a software or patch so that i can get free chips to really use them in game I need any patch or moded .apk so that i can get chips which can be generated through any game killer... | |
I am thinking about starting a new project which involes image manipulation. After a search around for some libraries ImageMagick's Magick++ kept popping up. Thing is, before I start looking into how to install it, I'd like to know if it will suit my purpose and hoping someone here has … | |
Sup everyone, Does anyone have any recommended tutorials/sites for Hash maps? I'm planning to use it to create and link "locations" in a basic text-based game but i've looked around and there seems to be a lot of description on hashmaps but not much tutorial/examples for them. Any sort of … | |
I'm reading 'C++ Programming in easy steps' and the program the book has given me will not compile. Compile line -> `g++ -g -Wall "${ARG}" -o "${ARG:: -4}" &&` ARG is command line argument 1. object.cpp:7:5: error: ‘string’ does not name a type string color; ^ object.cpp:14:19: error: ‘string’ has … | |
| Greetings everybody, I have been trying to convert UTC time into local time. Using ctime library, time_t, gmtime etc. But I am having nothing. When I searched the web, I saw nothing but examples with this library... I would like to ask you how could I convert UTC, a double … |
Heyy i'm new to this language & i'm luving it. I need some help here guys. I was given this question by my lecturer and i'm not sure what the question wants The array below contains the maximum speed per day attained by mr Speedo on his daily travels to … | |
How can you find out which version of GCC/GNU compiler your are using? | |
# I REALLY NEED HELP WITH THIS # The purpose of this assignment is to write a program that requests the user to enter the data per year, and that computes the EWMA of the growth rates. It then should use the EWMA to predict the GNI for the next … | |
| Greetings everybody, I have been developing a C++ Win. Forms application in VS2010 to acquire data from an external device continuously. In the tutorial of the device the followings are given about commucating with device through RS-232. The external device has a communication format of 38400 baud, 8 data bits, … |
Hi everyone.. Me again. I am confused about something so please correct me if I am not making sense. I have a program which outputs binary output which has been read from a file of encrypted data. When de-encrypted the output is supposed to represent numbers. Because it comes out … | |
Hello: I am practicing with some existing code from the book, but when I go to compile this code I get an error on line 4: .....cpp(4) : fatal error C1083: Cannot open include file: 'mystack.h': No such file or directory [CODE]#include <iostream> #include <iomanip> #include <fstream> #include "mystack.h"[/CODE] Any … | |
Suppose we have an array of 10 elements and we have to separate the positive elements and negative elements and make other two arrays how we do this. The size of arrays containing even and odd elements should be 10 and no garbage value should be printed | |
Hey guys, I'm interested in learning about simple multithreading in C++ for Windows. Does anyone have any reccommended tutorials/links thats quite good? | |
Hi, I am trying to find 2nd largest number that given input of numbers. The question is actually consider that you enter 5 number : 60, 70, 30, 40, 55 randomly -the order does not matter- my function should find 2nd largest number and return it. I am trying but … | |
text_data = {apple \n grapes \n straberry}; FILE *fp; int i; char ch; std::string DataVal; std::ifstream in("D:\\test\\file.txt", std::ios::in | std::ios::binary); if(NULL != in) { cout<<"File Open Success"<<endl; in.seekg(0, std::ios::end); DataVal.resize(in.tellg()); in.seekg(0, std::ios::beg); in.read(&DataVal[0], DataVal.size()); in.close(); } else { cout<<"File Open Failure"<<endl; return 0; } * Here I am able to … | |
Suppose we are given an array a[10] such that it contains both even and odd numbers. We have to move the even elements to another array say b[10] and odd elements(numbers) to array c[10]. the numbers in array are to be entered by the user which means we do not … | |
| Hell sadly I dont understand much about memorypool so I tryed to use a memorypool from other sources. My problem: The gameserver always crash and the debugger shows the following error: `Unhandled exception at 0x01034a65 in GameServer.exe: 0xC0000005: Access violation reading location 0xcdcdcdd5.` First the first memorypool with which everything … |
Suppose we are given an array a[10] such that it contains both even and odd numbers. We have to move the even elements to another array say b[10] and odd elements(numbers) to array c[10]. the numbers in array are to be entered by the user which means we do not … | |
Hi to all!. I have wrote a program which converts character numeric value into integer numeric value by using function atoi(string). For example if i write 45 then it gives output :"after conversion from ascii to integer, value is 45." or if i write 4521 it gives output:"after conversion from … | |
Hi Dw I'm creating a program and it require to have a manager so I downloaded and added all the files that are related but I keep getting this error. "error C1189: #error : include 'stdafx.h' before including this file for PCH". There is a file that has the code … | |
I am working with dynamic arrays which have been created using **<vector>**. For convenience, I have created a typedef : typedef vector<double> C1DArray; In the main program, several variables are created using this definition which, at the moment, means working with arrays of size 30. main() { . . . … | |
Hi, I'm trying to figure out the basics in state design. I don't quite get it. Say I have an `enum GameState{ MAIN, ABOUT, ADVENTURE, QUIT}`, how do I proceed from there? class Game{ class state *current; public: Game(); void setState(State *){ current = s; } void Main(); void Adventure(); … | |
Hi All, I´m using a QTextBrowser to display an external html document (and its image resources) which is placed in the same directory as the application. Everything works fine except that images are not displayed properly. Instead of the actual picture there is a "missing image" icon. I tried different … | |
Define a function string sort(string s) that returns a string with the same characters as s, but arranged in ascending order, according to ascii value . For example sort("hello") will return the string "ehllo". Notice that the function returns a different string from the original argument, since s is not … | |
Write a function int findLast(string words[], int numWords, string target) that returns the index of the last occurence of target in words or -1 if there is no occurrence. Remember: you can compare string objects using ==, these are NOT C-strings ! Here is my solution: int findLast(string words[], int … | |
So I'm trying to make a calculator. I'm doing it by parsing the strings of the operation the user inputted. im doing it by adding spaces next(both left and right) of the operator(like "+")and using istringstream to divide the string to divide it. for example, dividing "10+10" to '10', '+', … | |
Sup peeps, hope you guys can give a mate a hand with this default constructor problem. I get this error when i instantiate a class: error LNK2019: unresolved external symbol... This is my LavaLand.h ... class LavaLand { highscore &h; public: LavaLand(); void setup(); }; ... LavaLand.cpp void LavaLand::setup() { … | |
Ok so first off, I've recently returned to C++, and I'm very new to both OpenGL, and Code::Blocks IDE (used to use Bloodshed Dev before) .. so please don't flame me if there's a basic solution to this I'm trying to read a ".asc" file which has the vertices of … | |
Please suggest alternate code for Traingular matrices. #include <iostream> using namespace std; int main(void) { int rows = 5, cols = 5; int **arr; // allocate and initialize the array arr = new int * [rows]; for (int r = 0; r < rows; r++) { arr[r] = new int[r … |
The End.