49,761 Topics

Member Avatar for
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
219
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
91
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
104
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
121
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
148
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
53
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
91
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
69
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
382
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
313
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
415
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
110
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
186
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
70
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
206
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
140
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
126
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
634
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
174
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
151
Member Avatar for Argo54325

Hello there, I need help on finding out how to count the number of extensions found using the Boost filesystem. How i get the extensions is with this: [code=C++]extension(iter->path())[/code] I now need to know how to store the type of extension and then the next time it comes around increase …

Member Avatar for Argo54325
0
209
Member Avatar for snoopy198520

i cant figure where i go wrong. the output is wrong. anyone out there can find out where my mistake at? really need yr help. thanks. My txt file the sentence are : How are you? We think in generalities, but we live in details. what about you? Who are …

Member Avatar for Ancient Dragon
0
76
Member Avatar for tonief

stepen=pow(2,bBita-1-i); in this function the compiler announces error 'pow':ambiguous call to overloaded function

Member Avatar for jephthah
0
61
Member Avatar for rEhSi_123

Hey! I am a newbie in windows form application in c++, so please guide me! As a practice I have created a new project in windows form using visual C++. I have added a button and listbox! Now say I click on button 1 and it opens a dialog box …

Member Avatar for rEhSi_123
0
272
Member Avatar for crh0872

Hello DaniWeb! I've created a function that parses a long string of text (JSON format, but that's not really important) for the specified JSON key/variable name, and it returns the JSON value as pointer to a char array. For example, [CODE=C++] //the function looks like: char* extract_key( char* buf, char* …

Member Avatar for crh0872
0
3K

The End.