49,761 Topics

Member Avatar for
Member Avatar for kux

ok, I tried to do some reasearch first, but haven't really found what I was looking for. Each windows app uses a message queue that stores user input and calls the required event handler ( a simple way of putting it ... ). What I was thinking is that has …

Member Avatar for Ancient Dragon
0
115
Member Avatar for Jennifer84

I am reading Comma delimited Large .txt files(About 50 Mb). Currently I am using the method below to step through the lines in the file. I have one other application that Read the exact same .txt file that I do. That application will reach the end of the textFile in …

Member Avatar for Jennifer84
0
7K
Member Avatar for rbaena

Hi, I am trying to compile several files but I get this error... [rbaena@palautordera programs]$ make -f Makefile gcc acorr.c -o ../bin/acorr ../subroutines/postape.c ../subroutines/getframe0.c \ ../subroutines/getframe1.c ../subroutines/getat0.c ../subroutines/getat1.c \ ../subroutines/decode0.c ../subroutines/decode1.c -lm; /tmp/ccDVaRlH.o: In function `getframe0': getframe1.c:(.text+0x0): multiple definition of `getframe0' /tmp/ccIvJbx6.o:getframe0.c:(.text+0x0): first defined here /tmp/ccQc0KM1.o: In function `main': acorr.c:(.text+0xc41): …

Member Avatar for rbaena
0
76
Member Avatar for chern4ever

i am trying to mod my input but i got an error : invalid operands of types 'double' and 'int' to binary 'operator%' i would also like to noe top/60 how do i not show the remainder. i am using dev c++ this is my code : [CODE]int main() { …

Member Avatar for chern4ever
0
327
Member Avatar for scholar

Hi friends, again i need ur help.. I hve a text datafile which consists of one word per line like this... program byte this example and i am using the following code to read the words from the datafile.. fstream f1; f1.open("file.txt",ios::in|ios::out); f1.getline(variable,10,'\n'); f1.close(); The datafile consists of more than …

Member Avatar for stilllearning
0
128
Member Avatar for diyaz

You are required to write a program which will: · Fetch inputs from the user · Ask the user how many words that he want to insert · Append the original inputs to the screen (and save to a file called as string.txt) · Append the scrambled inputs to the …

Member Avatar for iamthwee
0
182
Member Avatar for AutoC

Hi, In a function of my program, I open and close the file once every recursion...and the recursion is very large....I've made sure im not writing when its closed or not opening when its open or any of those trivial issues.Will this be a problem with the operating system?...because I'm …

Member Avatar for AutoC
0
94
Member Avatar for sanfan49er

I need it in descending order and also the ability to use decimals I tried to put double in everything but it wouldn't work it says that the array doesn't match with int. Help PLEASE!!! [code] #include <iostream.h> void selectionSort(int *array,int length)//selection sort function { int i,j,min,minat; for(i=0;i<(length-1);i++) { minat=i; …

Member Avatar for sanfan49er
0
5K
Member Avatar for TheMoosiah

Hi, I'm having trouble with one last part of finishing my basic level C++ class. The program requires you to enter your 3 cards so that it can program the total of the cards. Everything seems to be in order so far, but I do not know how to set …

Member Avatar for VernonDozier
0
94
Member Avatar for zzmgd6

help. I do everything in C++ with STL but I have to utilitize legacy C functions within my member functions (methods). The legacy C function signature is... extern int UF_DRF_create_label( int num_lines_text, [B]char text_string[ ][132+1][/B] , double origin_3d[3], UF_DRF_leader_attach_type_t leader_attach_type, UF_DRF_object_p_t object, double model_pos_3d[ 3 ], tag_t * label_tag); My …

Member Avatar for zzmgd6
0
194
Member Avatar for godlike111
Member Avatar for nachon

Hi Everyone. I'm kind of new. For some weeks I've been studying cpp using devcpp and it worked just fine. I changed my PC and now I am trying to program in Builder c++. I am reading a Builer tutorial and Im doing OK with the frames and all of …

Member Avatar for nachon
0
143
Member Avatar for iichi07

I really need your help..well we have a project and it is called Rational Class. Create a class called Rational for performing arithmetic with fractions. write a program to test your class. Use integer variables to represent the private data of the class -- the numerator and the denominator. Provide …

Member Avatar for iichi07
1
217
Member Avatar for chanda gul

Hy.... I am trying to read the boot sector of my C: drive formatted with NTFS...but i am not getting the right information....can any1 help me finding the reason behind it..thanx here is the code: [CODE=cplusplus]#include "stdafx.h" #include "sunday_version.h" #include <conio.h> HANDLE h; #ifdef _DEBUG #define new DEBUG_NEW #endif #define …

Member Avatar for mitrmkar
0
120
Member Avatar for emoaldrin29

hello,,im a Filipino student from Cabanatuan City Philippines.. Im just a Second year College student taking up Computer Science.. I would like to ask you something about sorting an alphanumeric character.. im just a student i would like to learn in advance programming.. can i have your yahoo email address …

Member Avatar for twomers
0
78
Member Avatar for ning

hi, i am creating a program that reads input from a file into a sudoku square. and my program is supposed to check all rows, columns, grids for any repeat numbers, and if there are repeat numbers, the program is supposed to tell me which number is being repeated in …

Member Avatar for iamthwee
0
116
Member Avatar for AutoC

hi, I've completed huffman coding..but there is one small issue...in my decoded file the character "ÿ" keeps appearing at random places...I checked the problem and a second parse of the input file gives some characters that are not in my tree which ends up adding a code 0 of length …

Member Avatar for AutoC
0
102
Member Avatar for Kidd87

When I excute my program and open up the text file, it only reads me the 1234 then junk below it. I have no clue what do. Anything is welcome. Below is my .cpp file my text file looks something like this 1234 jack hammer 75.00 .45 10 5678 Daffy …

Member Avatar for Ancient Dragon
0
90
Member Avatar for jthechemist

Hey all. I've made stacks aplenty in Java before; my C++ is a bit rusty though, so I thought this would be a good project for me. Turns out I was rustier than I thought! So here's the situation: I've made classes LinkedNode, jStack, and Test. Test simply holds an …

Member Avatar for ArkM
0
114
Member Avatar for mugun

Hello everyone...i need help with text file in c++,i know that we can append like ios::app and into a text file.....i need help in inserting a particular string to a particular line in a text file.....is that possible....So far i only knw tht it will append at the bottom of …

Member Avatar for mugun
0
177
Member Avatar for DemonGal711

I'm trying to read a line from a text document so I can move it into an array. So I've tried to get this to work out and it stops when it sees the "while" line. [CODE]void input (ifstream& file, int& end, string word[]) { int x = 0; string …

Member Avatar for DemonGal711
0
102
Member Avatar for DemonGal711

Okay, I have this program I have to write. I think I get the basis of the idea, but I'm a little confused about parts of the instructions. Here's the instructions. [B]Write a C++ program that uses bit strings to represent sets, and finds A^B, AUB, A-B, where A and …

Member Avatar for DemonGal711
0
116
Member Avatar for acoxia

Hello i have a quick question working on a hangman project and have most of it done but i was wondering how to count how many letters a word has in order to have the right amount of spaces wondering if a function or something exists or a link to …

Member Avatar for acoxia
0
112
Member Avatar for c++ prog

hi, im creating a simple game here...its a shooting game...so how can I make my program read the keyboard to control the player's movement around?tnx in advance

Member Avatar for Duoas
0
256
Member Avatar for aloplop

Hi folks, my problem is that I want to send to a Webcam connected in the port 80 of a remote machine an order to move itself from my application developed in C++. The company has sent to me this code: POST /pantiltcontrol.cgi HTTP/1.0(0D0A) User-Agent: agent_name(0D0A) Content-length: length(0D0A) Authorization: Basic …

0
51
Member Avatar for marivic
Member Avatar for chern4ever

i want to input 2 data into an array, then compare it. however, do user input the data will be minutes and seconds example : 5 minutes 30.4 seconds and 6 minutes 40.5 seconds cin >> minutes, second can i compare these two data without adding the minutes and seconds …

Member Avatar for ArkM
0
77
Member Avatar for asifjavaid

hi guys, i have declared a char pointer. i am using this in itoa() function to convert integer data into hex data e.g [code] char * hexData= NULL; itoa(1484820,hexData,16);[/code] this results in equalent of 1484820 in hex decimal and store it in hexData. now when I want to some process …

Member Avatar for ArkM
0
171
Member Avatar for asifjavaid

hi guys, I want to call win32 dll in C#. It has parameters encode(char *argv[]). what i have to write in in C# in the placa of char *argv[]. I have make my efforts see my code below but vain. [code] // in C++ int ConvertBinToAmt(char JFIF_NTSC_XML_File1[],char JFIF_NTSC_XML_File2[], char DestinationFolderName[],char …

Member Avatar for LizR
0
200
Member Avatar for abcd_nima

Is it possible for a function to return a string,an array of characters to the calling function? i mean something like char f1() { char www="nima"; return(www); } if not,please tell me how is this possible?

Member Avatar for ArkM
0
115

The End.