Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~4K People Reached
Favorite Forums
Favorite Tags
c++ x 19
Member Avatar for dchunt

I want to run the programs r1-r4 and n1-n4 simultaneously instead of waiting for each one to finish executing,I've been stuck on this for a long time, i went through multi threading for c++ in dev-cpp and the Win API code is quite complicated. Can somebody provide the code to …

Member Avatar for Ancient Dragon
0
187
Member Avatar for dchunt

I put all the contents of an array a[16] into a file. But when i read them how can i separate those numbers from each other instead of adding a space. what about putting the contents into a new line like 0 14 1 24 How do i do that …

Member Avatar for cgcgames
0
108
Member Avatar for dchunt

I've wanted to write a program to read the extended characters from a file. [ICODE] #include <iostream> #include <fstream> using namespace std; int main() { char a,ch[50]; long l, m, k; ifstream infile; infile.open("as6.txt"); l = infile.tellg(); infile.seekg(0, ios::end); m = infile.tellg(); k = (m - l); infile.seekg(0, ios::beg); while(infile!=0) …

Member Avatar for kadams
0
132
Member Avatar for dchunt

I have a file over 100 Kb long. I want to perform operations on successive batches of 256 characters. [CODE] int fs=0; char ss[32556]; ifstream nm,nm1; nm1.open("as86.txt"); if(nm1.is_open()) { nm1.seekg(0, ios::end ); fs = nm1.tellg(); } nm1.close(); nm.open("as86.txt"); nm.read(ss,fs+1); nm.close(); cout << endl << fs << endl; ofstream mn; mn.open("as86.txt"); …

Member Avatar for nbaztec
0
103
Member Avatar for dchunt

Say i have a 256 byte file. How many additions or multiplications can a modern computer perform on them using c++ ? I've been working on this c++ compression project that does a lot of calculations. I use Dev-cpp,and am a amateur programmer,i've not used pointers,vectors or anything fancy yet,anyway …

Member Avatar for thelamb
0
1K
Member Avatar for dchunt

It takes a long time for my comp to execute this simple loop. Now the final do while gives me the problem,even if i use if statement,it takes about 10 secs before displaying the result,which is quite ridiculous. [CODE] int counters[255] = {0}; ifstream in("ut2.txt", ios::binary); unsigned char c; while( …

Member Avatar for finito
0
104
Member Avatar for dchunt

I've written a few simple C++ programs in Dev-cpp... Now i want to run the second program inside the first in case it satisfies a condition. It then geneerates a text file from which new values are got. Is it possible to do that ? I'm just a beginner and …

Member Avatar for tetron
0
153
Member Avatar for dchunt

My text file contents are in the form "00101010111101101011". I want to read it from the file and send each digit to an array,unfortunately i'm only able to use char while reading a file.How do i send each digit onto an array?a [code] #include <iostream> #include <iomanip> #include <fstream> #include …

Member Avatar for WaltP
0
115
Member Avatar for dchunt

I want to read characters(256 of them) from a file and put thier numeric value in an array.Then i want to send 16 characters in batches from the array onto a loop in successive steps to perform operations on them. My problem: First i can read the first batch of …

Member Avatar for jonsca
0
97
Member Avatar for dchunt

Say i have this 10,000,000 (10 million) byte file. I want to perform multiplication,addition and few other operation on all those bytes(total of 5). And after it is done say if i want to repeat the addition and other operations on the same file like a loop,then How many such …

Member Avatar for jonsca
0
824
Member Avatar for dchunt

Is there any language or way to write a program that is about 10000 lines in such a way that it can't be re-engineered by decompiling it ? What options are available to pursue ? Thank you for your time..

Member Avatar for kolosick.m188
0
104
Member Avatar for hardikvd

consider this: float a=3.145698,b; que: now how can I assign b=3.14 using 'a' instead of 3.145698. pls help me... thank you very much....

Member Avatar for mrnutty
0
87
Member Avatar for dchunt

Now i learnt basic windows programming long time ago and now use dev-cpp,i can run the simple Hello World program in that,but don't know how or where to implement cout and if statements type programming ? [ICODE]#include <windows.h> LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); char szClassName[ ] = "WindowsApp"; …

Member Avatar for Ancient Dragon
0
99
Member Avatar for dchunt

I want to write a program to read a audio file and classify the various symbols into the number of times they occur , I was hoping i could use a switch statement and classify the 256 symblos but now i've learnt the standard ascii set is only from 0-127,so …

Member Avatar for Ancient Dragon
0
97
Member Avatar for dchunt

Now i have an array, P[8]={0,1,1,2,0,3,1,0} And i want to add 4 separate values to each element in the array,so if i was to lookup P[2] i can access its 4 values. I tried doing it by giving those standard values an array of itself and making each value get …

Member Avatar for Tom Gunn
0
153
Member Avatar for dchunt

Is it possible to create a series like this char j; int ,k; for(int i=0;i<10;i++){ k=ji; } I get an error but want to create something like j0 j1 j2 and so on... How do i do that ?

Member Avatar for onaclov2000
0
93