49,766 Topics

Member Avatar for
Member Avatar for Clockowl

Hey guys, I have a class with a friend function and a member function with the same name. Calling the friend function from the member function gives me an error: it looks for <classname>::<function> while the friend function is of course simply <function>. In this case, MinGW GCC says: [code] …

Member Avatar for Clockowl
0
177
Member Avatar for vddmanikanta

Hai everyone I need a clarification on the following issue Why does C++ compiler doesn't allow, to initialize static member function inside a class And please do tell me about what is meant by initializing a function (member function) Please help me in getting it clear thank you Have a …

Member Avatar for vddmanikanta
0
125
Member Avatar for RaghuBV

Hi folks, Can I insert multiple entries into a single bucket in a hashtable. It ll look somethin like this Key Hash value Bucket Browser B Browser->Search Brawn->F1 Car Bread->Wheat dish . . Cat C Cat->Animal C++->Language Please help me

Member Avatar for RaghuBV
0
63
Member Avatar for jct3u

I have to write a program that does this Write a complete C++ program to solve the following problem. PROGRAM DESCRIPTION: An unknown number of integers, but no more than 25, are to be read from the file exam.dat. (Yes, this means you have to open that file.) Calculate and …

Member Avatar for DemonGal711
0
222
Member Avatar for ScienceNerd

I’m trying to code a program that displays letters in alphabetical order. It complies but the problem is that when it compiles, the letters [characters] don’t show up. The only thing the text file has is some random letters {A E C B D O). [code=cplusplus] int count(char input_filename[]); void …

Member Avatar for WaltP
0
125
Member Avatar for booker

Hello is this normal that the application I am running crashes when I try to instantiate e initialize a int matrix[512][512] where for smaller values doesn't? I just can't understand why. I could create I vector of vector but I want to use a pointer pointing to Aoo. Thank you

Member Avatar for tux4life
0
223
Member Avatar for ghost305

I need major help, I'm trying to create three functions to search through a list container: one is to search, one is to flip and the other is to modify. It's an information manager which has card that contains information such as first name, last name, address, occupation and phone …

Member Avatar for ghost305
0
93
Member Avatar for DaveD3

I am working on an application in Visual C++. I needed to generate a message box so I went to the help files and found the C++ example to do this task. I copied and pasted it into my code. When I built the application this code from the help …

Member Avatar for DaveD3
0
106
Member Avatar for valtikz

for example you have a: string test; [CODE] void ExampleWindow::on_clicked(){ ofstream myfile; string test; myfile.open ("/home/ws14/Desktop/trunk/minisip/minisip/share/test.txt"); mydialfile << test; mydialfile.close(); } [/CODE] how can I just add or insert a value on the file(test.txt). not just overwrite the file(test.txt) when the function(on_clicked) is being called. All I need is if …

Member Avatar for valtikz
0
122
Member Avatar for Skainstein

Hi all. Could anyone please put comments on each command that Ancient Dragon posted? It's just to be sure what each of them means. I'm having trouble compiling this (it's not what Ancient Dragon wrote!!): [code=c++] //blabla char OutFile[100]; FILE* fp; sprintf(OutFile,"wind%d", date); fp = fopen(OutFile,"w"); OutFile << "Longitude\tLatitude\tDirection\tVelocity\n";//here appears …

Member Avatar for William Hemsworth
0
149
Member Avatar for kashmir323

So I'm trying to create an easy Trig-Functions calculator where you plug in an angle and a sig and it'll give you the other sides and angles back. In c++ is there a way to use sin, cosin, and tangent? I havent started this project yet but i was wondering …

Member Avatar for tux4life
0
54
Member Avatar for skisky

ok....so i have code that will return whether or not the string im searching for is found. Which is fine and dandy, but i also need the array index, for where the match was found. (names are read from a txt into an array, then the array is searched with …

Member Avatar for skisky
0
92
Member Avatar for DaveD3

I am new to .Net and I am having some problems. I have read the Kate Gregory book for visual C++ .net and successfully implemented her application to look up employees in a database table. I followed the same format to write an application I am working on. The adapter …

0
70
Member Avatar for Siaa

hello every1..... i need ur help........im looking 4 a program which uploads a picture of the galaxy....then detects and counts the total number of stars in it.......can any 1 help me with this........ its really urgent.......its my assignment n i need to submitt it very soon........ waiting 4 ur replies........

Member Avatar for nucleon
0
383
Member Avatar for skisky

I am having trouble converting a string, stored as input, to all lower case.....and save the lower case in a string, search. perhaps my idea is flawed? [code] search = tolower(input); [/code]

Member Avatar for Narue
0
316
Member Avatar for nexocentric

This i the background to my problem, which is stated in bold text. I am currently working with a SAFEARRAY. I've declared a two dimensional array in VB6 and I'm trying to store data from a C++ dll in it. I have used the resources listed below to learn how …

Member Avatar for nexocentric
0
418
Member Avatar for dinamit875

Hi there ever1. I have written a bracket checker program using stack, seems to me its working ok, but still I have one problem with it.Well, it compiles ok,but when you are entering value, it just doesn't show you any results, but it supposed to give you the results.Any help …

Member Avatar for vmanes
0
111
Member Avatar for booker

Hello I think this is easy for experienced C++ users. I want to define and initialize a [512][512] matrix. The problem is that when I do int matrix[512][512] I get an error and the program it shuts down. I think this has to do with max reserve memory. What can …

Member Avatar for booker
0
187
Member Avatar for leid999

hi there: In a model system, I need to access data generated by a class but stored in another class. For example, I have a class called DataCenter, which is used to store all data produced in a process (Class MODEL). Now I have another class called NEW. How will …

0
42
Member Avatar for burger87

I am trying to read data from an ini file. I have read the MSDN website regarding this function, but I don't have the slightest idea on how to implement the syntax. Can anyone post a sample code on reading a simple ini file? Thanks.

Member Avatar for Ancient Dragon
0
73
Member Avatar for bit9435

I once again have a homework assignment I need some help with. Since I'm not too great at explaining, i'm going to put the directions that are in the book... A retail store has a preferred customer plan where customers may earn discounts on all their purchases. The amount of …

0
76
Member Avatar for pranjalkumar

I am making this project in which I have to make a 16-byte float datatype manually. So, as per the specifications, 32 bits are for the mantissa, and the rest for the exponent(including sign). I'm planning to store it in this form - `unsigned char num[16];` I can get the …

Member Avatar for ArkM
0
71
Member Avatar for bryanhjkim

I am a novice trying to use MS Visual C++ to record data through COM1. The data source is a sensor streaming ASCII characters, and the sensor and the COM1 settings were both checked with hyperterminal. In the code, I set the CreateFile to open COM1 with normal attributes, and …

Member Avatar for bryanhjkim
0
217
Member Avatar for Beginerman

I need a little help with the below if statement. What i would like to have happen is for the loop caused by the first if statment to also be conditional to a second if statement that will pause the loop output and require user interaction to either continue displaying …

Member Avatar for Beginerman
0
144
Member Avatar for spring sun

i have a problem i can write a c++ program with no syntax errors but it always have many logical errors how can i know the right logical solutions for the problem after reading it ?? thnxxx

Member Avatar for cause&effect
0
128
Member Avatar for vicky_menonsky

hi alll,, i want to read a text file character wise and write to buffer till the occurance of first space... can any1 giv me a sample code snippet plzz

Member Avatar for jencas
0
57
Member Avatar for delifion

Hi guys, I need a help on my assignment. [B]Background[/B] A data transmission system typically breaks a large message into smaller packets. In some systems, the packets can arrive at the destination computer out of order, so that before the application requesting the data can process it, the communications program …

Member Avatar for ArkM
0
636
Member Avatar for cassie_sanford

I have 2 functions: one has to calculate the total number of days spent on a trip and the other has to calcualte the time of departure on the first day of the trip and the arrival back home on the last day of the trip. In the first function, …

Member Avatar for siddhant3s
0
493
Member Avatar for johnray31

Hi guys, I need a solution. I have a uint32_t variable say var1. I need to store current time value in this variable, and somewhere in my code i need that time in proper timing formet i.e hour minute and seconds . is this possible? Any other solution for storing …

Member Avatar for johnray31
0
179
Member Avatar for mini programmer

Hello to every body I hope every one keep in best state. I want to help me in solve this problem in my Sheet . I use recurrence functions in like list.( with ADT file ) by modify the search function and adding Printing function in a Reverse Manner. the …

Member Avatar for mini programmer
0
152

The End.