49,756 Topics

Member Avatar for
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
90
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
68
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
381
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
409
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
74
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
69
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
202
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
139
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
125
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
56
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
633
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
169
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
Member Avatar for ellimist14

Ok I have my structure defined in my main function. And the I need to send an array of structures to a function as follows: [code] int fillStruct (ifstream& fin, ROPES ropes[MAXROPES], int n) int main() { struct ROPES { members }; return0; } int fillStructs (ifstream& fin, ROPES ropes[MAXROPES], …

Member Avatar for ArkM
0
107
Member Avatar for pranjalkumar

I have an assignment in which I have to create a 16-byte float, allocating bits to mantissa, exponent, sign of mantissa and sign of exponent at my own discretion. I have planned it to be as follows - Bits Purpose 1 Sign of mantissa 2 – 32 Mantissa 33 Sign …

Member Avatar for nucleon
0
136
Member Avatar for binamy1

I have been programming a compressor based on lz for my school project.When i used fixed block sizes there were no problems but now when i started using variable block sizes it crashes.The compression takes place without much problem but decompression crashes and debuggers does not report any error. Uncompression …

Member Avatar for binamy1
0
138
Member Avatar for lancevo3

Hey, I'm working my first program that includes structures. For some reason though I have having errors with my getline. [code=cplusplus] inFile.getline( studentar, 20 ); [/code] My getline is being used in a function, so I don't know if that effects anything. The studentar array is declared as type student …

Member Avatar for lancevo3
0
106
Member Avatar for snoopy198520

Do i still need to append? and do i get the string break. i try cannot only the first line break. how are you? I am fine. What about you? I fine too! the txt file is : How are you? I am fine. What about you? I fine too! …

Member Avatar for snoopy198520
0
117
Member Avatar for deedub

I need to write the while loop to terminate with a '|' character program does not terminate correctly when using two cin numbers in the same line or even on separate lines (i.e. cin>>num1>>num2;) when the program does terminate with ^Z it just scrolls a long list of the last …

Member Avatar for mvmalderen
0
2K

The End.