49,757 Topics

Member Avatar for
Member Avatar for mcook228

I'm working on this program that implements the Horspool string matching algorithm. The program reads in a text file and searches for the pattern text provided in main.cpp. The StringMatcher class is supposed to return the index of the first letter of the pattern in the text and count the …

Member Avatar for iamthwee
0
2K
Member Avatar for blademaster

Does anyone have any idea how I would code this I'm having some trouble coding it, I would appreciate it very much if you could provide a code in C++. Been trying ot figure out this for couple days but keep getting syntax errors for some reason. 1.) let the …

Member Avatar for blademaster
0
61
Member Avatar for yaoyaolin

I'm in an entry level c++ class. My professor wants us to write a array project that keep a frequency count of each of the italic alphas, also keep a frequency count of other characters entered (numbers and symbols). The project output a frequency count of each italic alpha, and …

Member Avatar for Lerner
0
89
Member Avatar for kaun

I download turbo c++,but I can`t use ther a SHIFT key :cry: ( I can`t do // or #)it just ignore shift. :sad:

Member Avatar for Narue
0
708
Member Avatar for Dj Enjoi

ok, i kinda feel like an idiot asking this, but here it goes simple setup for example purposes.: [B]#include<iostream> #include<stdio.h> using namespace std; int main() { system("cd\") return 0; }[/B] ok, as you've prolly already noticed, the CD\ will return an error saying that there is an invalid terminator because …

Member Avatar for iamthwee
0
104
Member Avatar for jto

i have a *.dat file which is i am sending as attachment can any body help to convert this file in to text file or any other database format such as access /oracle etc

Member Avatar for Ancient Dragon
0
163
Member Avatar for asnairwin

to start with c++, I got to know what is required to be added for starting c++ builder in a system where visual studio is installed

Member Avatar for Narue
0
65
Member Avatar for sansista

I'm developing an application in C++ that extracts each sentence dispalyed in a browser, translates it and then displays the translation in the webpage. I am using IHTMLDocument2 to do this. When the translated text is complete I write it to the browser using IHTMLDocument2::write(), and I can see the …

0
50
Member Avatar for dp601

I have a question that i am having difficulty with. The question is to write a function that creates the following pattern given the height(number of rows)which must be even. Please help! * *** ***** ******* ********* ********* ******* ***** *** * Here is the code i have so far …

Member Avatar for SpS
0
135
Member Avatar for kevjeffers

I need help. Here is the homework problem: Write the definitions of the functions to implement the operators defined for the class dateType. Here's my code: Header: [CODE]#ifndef dateSType_H #define dateSType_H //dateType name changed to dateSType class dateSType { public: // ************ Mutators follow ************ void setMM(int month); //Function to …

Member Avatar for kevjeffers
0
102
Member Avatar for Foda_Bett

Hi y'all! I found this forum through google and I was hoping that I could get some help!! I've been assigneda rather odd assignment by my C++ teacher. I have a 2d array of names (names[17][20]) which has to be sorted alphabetically via selection sort, we can not use pointers. …

Member Avatar for Narue
0
2K
Member Avatar for ZenaNqld

New Problem... it keeps outputting both under and over par grrrrrrrrrr whats wrong with my if statement??!! [code] if (StrokeCount == 5 ) { cout<< "You are on Par Way To Go!!"<<endl; cout << endl; } else if (StrokeCount < 5) { Par = 5%StrokeCount; cout <<" You are "<< …

Member Avatar for WolfPack
0
87
Member Avatar for ZenaNqld

Ok heres the problem ( and no laughing at my code!! ) I need it to change the value of the strokedistance to the holedistance when the strokedistance makes the holedistance less than zero. Any suggestions, ideas, tips, and it doesnt have to be specific to my problem maybe just …

Member Avatar for ZenaNqld
0
147
Member Avatar for comwizz

Hello everyone, I am having some problem in reading the data inputted in a file correctly using linked lists. I think this might be because of having pointer next of type password class. Thanks, comwizz. The code is posted below. You may directly see the section if (reply==3) as that …

Member Avatar for comwizz
0
158
Member Avatar for Podge

I have been working with the new Studio 2005. I am creating several apps, one with multiple documents and some others that are more dialog box type apps. I have done some MFC in studio 6 (C++) but I would like to understand when it is better to use MFC, …

Member Avatar for eggsy84
0
314
Member Avatar for Saint48198

I'm trying to pass the valuee from the arrays for age, sex, and wTime to the cal_Fitness_Level function, but I can't seem to get it right. I either get the same level for everyone or garbage. code and data follows. [code]#include <fstream> #include <string> #include <iomanip> #include <iostream> using namespace …

Member Avatar for Saint48198
0
224
Member Avatar for Acidburn

Hell ive written some code : [php] #include <iostream> #include <string> using namespace std; int main() { string a; string b; a = "ABCDEF"; b = "$"; a +=b; cout << a; if(a.find == 1 , "$") cout << "FOUND" << endl; else cout << "NOTFOUND" << endl; if(b.find == …

Member Avatar for Bench
0
148
Member Avatar for newgurl

hello, Thanks to previous help which has gotten me this far. However, my lovely program, although looks great in theory doesnt do what its supposed to do. When I type in 3 words, it doesnt put them in order as it should. Can someone point out to me where I …

Member Avatar for WolfPack
0
302
Member Avatar for bg123

I am having trouble understanding classes, I'm new at this and have not had any problems with c++ until now. This is what I have so far. I was supplied the driver and cannot make any changes to it. Any help would be appreciated greatly. Thanks. [CODE]#include <iostream> using namespace …

Member Avatar for bg123
0
237
Member Avatar for viet_mafia

Hi guy, I need to create a program that sorts 3 words entered into order from shortest to longest. So far I have the following done but when I run it, it only displays the first two words in order of length and doesnt show the 3rd word. Can anyone …

Member Avatar for Lerner
0
284
Member Avatar for almared_6

[B]Hi everyone, First I want to say hello to everybody in this site and I hope that you'll welcome me as one of your nice members :o . I've just started learning C++ language, and now I have to make a small program that counts the average grade for a …

Member Avatar for Bench
0
135
Member Avatar for pferreira

Hello, i'm developing a SNMP NMS with Visual C++, i'm having troubles with getting the oid's name from their value ANS.1 notation. It's better this way: oidName = snmpGetOidName ("1.1.2.3.4.5"); print oidName; .................................................... the print value would be for example sysDescr. I'm hope you can help me. Regards, Paulo Ferreira.

0
52
Member Avatar for kklowanshi

[COLOR=DarkOrange]Hi , Please give me example for xml file parsing in c++ using xerces libraries(xerces-c_2_3_0.lib).Please give me the simple example of parsing the example xml file and how generate sax tree print on screen. Thanks Krishna kant lowanshi [email]kklowanshi@gmail.com[/email]

Member Avatar for kklowanshi
0
116
Member Avatar for totalnewb++

Hello all, Thank you ahead of time if anyone answers this. I am new to c++ and am having some difficulty understanding my assignment. I wrote some code that does what the teacher has requested but according to her it does not utilize a function. I know that I have …

Member Avatar for destin
0
119
Member Avatar for shdjsm

Does anyone know how to set up columns and rows for an unbound datagrid in VC++.NET? I looked for a way to set the amount of columns under the Datagrid "properties", but no luck. I keep finding examples of how to bind the grid to a database, but that's not …

0
48
Member Avatar for yassine

I'm looking for a source code using the LSI technique (Latent Semantic Indexing) for information retrieval. Any help would be very appreciated!

Member Avatar for guill
0
313
Member Avatar for DrJD

I have just finished a PhD in Algorihmic Techniques, all written in C++. I would now like to work from home, with an option of commuting to London once a week. Could anyone suggest how I could get my first paid contart within algorithms.

Member Avatar for DrJD
0
94
Member Avatar for Tiffiney_v24

Write an interactive C++ program that prompts the user for ten (10) real numbers and calculate the sum, average, and prints the result. Hint: you may use an array to store the data. > Program requirements: > - The program must contain a class in which all the required private …

Member Avatar for orko
0
104
Member Avatar for iamthwee

Does anyone have any links/ tutorials about writing complex classes. U know stuff like overloading operators, using friend function. Or am I best to get a book on this. If so which book is good . ThanQ

Member Avatar for iamthwee
0
129
Member Avatar for fiska

Hi, I was lately interested in creating dll from C++ and using the functions in C#, I've came across one tutorial where the guy is creating dll in C++ and using them in another c++ project with VS 2003. I've tried the same with my VS 2005 but I didn't …

Member Avatar for fiska
0
275

The End.