49,761 Topics
| |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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........ | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
stepen=pow(2,bBita-1-i); in this function the compiler announces error 'pow':ambiguous call to overloaded function | |
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 … | |
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* … |
The End.