49,761 Topics

Member Avatar for
Member Avatar for Saboor880

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. …

Member Avatar for dinad578
0
214
Member Avatar for Dukey1

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...

Member Avatar for chriswelborn
-3
87
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
395
Member Avatar for Tycellent

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 …

Member Avatar for Tycellent
0
283
Member Avatar for lewashby

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 …

Member Avatar for lewashby
0
229
Member Avatar for m.a.u.

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 …

Member Avatar for m.a.u.
0
395
Member Avatar for Sammiboy

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 …

Member Avatar for dinad578
0
340
Member Avatar for Transcendent
Member Avatar for mataiasi.yabakivou

# 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 …

Member Avatar for swimincodes
0
140
Member Avatar for m.a.u.

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, …

Member Avatar for m.a.u.
0
2K
Member Avatar for christinetom

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 …

Member Avatar for christinetom
0
274
Member Avatar for senaddor

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 …

Member Avatar for yonela.yonce
0
2K
Member Avatar for sahil_4

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

Member Avatar for dinad578
-1
106
Member Avatar for Tycellent

Hey guys, I'm interested in learning about simple multithreading in C++ for Windows. Does anyone have any reccommended tutorials/links thats quite good?

Member Avatar for dinad578
0
414
Member Avatar for borchu

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 …

Member Avatar for Magnificant
0
3K
Member Avatar for prahesh

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 …

Member Avatar for prahesh
0
454
Member Avatar for sahil_4

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 …

Member Avatar for pritaeas
0
133
Member Avatar for Silfro

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 …

Member Avatar for rubberman
0
99
Member Avatar for sahil_4

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 …

Member Avatar for rubberman
0
202
Member Avatar for Saboor880

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 …

Member Avatar for NathanOliver
0
143
Member Avatar for Mr.M

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 …

Member Avatar for Moschops
0
89
Member Avatar for DavidB

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() { . . . …

Member Avatar for mike_2000_17
0
345
Member Avatar for HuePig

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(); …

Member Avatar for rubberman
0
306
Member Avatar for myk45

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 …

Member Avatar for NathanOliver
0
2K
Member Avatar for andrew mendonca

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 …

Member Avatar for Moschops
0
188
Member Avatar for andrew mendonca

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 …

Member Avatar for rubberman
0
351
Member Avatar for singersongrita

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', '+', …

Member Avatar for hAbbas
0
299
Member Avatar for Levellous

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() { …

Member Avatar for Levellous
0
184
Member Avatar for hkumar1993

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 …

Member Avatar for hkumar1993
0
2K
Member Avatar for Fazal Hussain

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 …

Member Avatar for David W
0
86

The End.