51,593 Topics

Member Avatar for
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
289
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
140
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
119
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
123
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
317
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
99
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
106
Member Avatar for Mr T.

I have been working on this code for a banking program I am trying put together. Trying to test my ability to grasp this stuff on my own. I am stuck on this part and maybe it is my non-math mind that is causing a block. Can someone help me …

Member Avatar for orko
0
188
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
130
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
291
Member Avatar for kjones2k1

I'm in an entry level c++ class. My professor wants us to write a function that counts the number of words in a string. The stipulation to this is, [I]A WORD IS DEFINED TO BE ANT CONTIGUOUS GROUP OF ASCII CHARS THAT START WITH THE LETTERS A THROUGH Z AND …

Member Avatar for orko
0
178
Member Avatar for johnray31

Hello friends, i am doing programs in c++....and think that my progress is good .. but here is very serious problem with me ..i need a c++ graphics simulation source code for generating huffman tree....plz if you peple know any link for source code or have that program ....let me …

Member Avatar for orko
0
101
Member Avatar for Tiffiney_v24

Im trying my best but I keep gettting this Error. Somebody please Help me. Its error C2447: '{' : missing function header (old-style formal list?) Im New to C++ I really need Help, Let me know if Im on the right track with my HomeWork Please!!!Write an interactive C++ program …

Member Avatar for Ancient Dragon
0
125
Member Avatar for sandra2005

[B]Hi every body, I'm a student in Open University and I face a big problem with learn the C++. So I wish that all of you can help me in this course. We work in C++ Builder 5. And I want to ask you one question that if I get …

Member Avatar for sandra2005
0
128
Member Avatar for newgurl

Hello, I am one of those new assignment people, BUT I have tried to resolve this for a while now. Cant find much on google or other C++ sites. I am trying to compare string lengths of 3 words and then display them in order of length. My code is …

Member Avatar for orko
0
7K
Member Avatar for ZenaNqld

Ive been working on this assignment for ages now and its almost working.. well its working but since my output isnt right there must be something wrong lol. problem... I have to select an object to hit a ball.. the distance the ball travels is done using rand according to …

Member Avatar for orko
0
94
Member Avatar for madonnamama

I am having a huge problem with writing this program. Every time I ask the teacher for help she is too busy helping someone else. so she just tell me one thing and runs off to the next person without checking if it worked and what other help I might …

Member Avatar for madonnamama
0
1K
Member Avatar for Acidburn

[code] #include <iostream> #include <string> #include "scanner.h" using namespace std; void program(string &sym); void body(string &sym); void stmt(string &sym); string sym; int main() { openfile(); sym = getsym(); program(sym); return 0; } void program(string &sym) { stmt(sym); //cout << sym; if(sym!="$") { cout << "Parser failed" << endl; } else …

Member Avatar for HackWizz
0
98
Member Avatar for princess_lia

Hello everybody, I have recently joined this forum. I am facing a problem of which I cannot see any solution anywhere. :sad: Please help. I am trying to write a C program in MSDEV(VC++6.0). [B]My problem is "FindFileData.cFileName" is picking only the first letter of the existing filename, and so …

Member Avatar for Ancient Dragon
0
285
Member Avatar for gropedersen

Hi all, I am working on an assignment on creating a program that recognizes whether an expression has balanced parentheses or not. The program has to use ADT (Abstract Data Type) stacks. The user should input all data in form of an algebraic expression, fx (a+b)/(d-e) or ((a+b). The program …

Member Avatar for Lerner
0
753
Member Avatar for lsu420luv

I am completly lost with arrays. I have scoured my book and the exaamples it gives are way to simple. I can wrerite them like those in the books, but I cannot seem to get the real problem to work. Also I am doing ifstream and ofstream so I cannot …

Member Avatar for Lerner
0
668
Member Avatar for lanario

I need to validate the numbers 1-16 within the given array. Any numbers that are duplicate or are outside of the range need to be outputted. While if all numbers 1-16 are inputted only once then the boolean value is true. The numbers for the array theSquare are inputted previous …

Member Avatar for WolfPack
0
244
Member Avatar for Dani

[b]Necessity for Repetition [/b]Loops allow particular segments of code to be executed over and over again. For example, suppose a program wants to keep doubling the value of a number until a boolean condition is met. Or suppose one simply wants code to execute a set number of times. Repetition …

Member Avatar for anupam_smart
0
376
Member Avatar for jglw

Can anyone tell me why the following ligitimate code does not work, creating a linked list of characters from stdin? struct Nodec { char element; Nodec *edge; }; void Nodecin(Nodec *N) { char c; Nodec *tmp; if (N == NULL) {N = new Nodec;} tmp = N; do { c …

Member Avatar for orko
0
279
Member Avatar for janito2008

April 6, 2006 I have school project that I am working on. I got it to run and it displays the first form. The problem is that I am having trouble figuring out how to get to to display all three forms I need. Here are the 3 forms: 12/25/2005 …

Member Avatar for Ancient Dragon
0
160
Member Avatar for HelpMeImLost

Hey guys How can I input a data field into a class Is it with the use of ([I]int[/I])? Here is the question [B]Design a job class with three data fields--Job number, time in hours to complete the Job, and rate per hour charged for the Job.[/B] [I] #include<iostream.h> #include<conio.h> …

Member Avatar for HelpMeImLost
0
113
Member Avatar for Roadkill

just wanted to say heya to everyone first, ok im doing a C++ assigment on linked list but im stuck. i need to write a program that reads records from a text file and then stores them in a linked list. i can read the data from a text file …

Member Avatar for Roadkill
0
107
Member Avatar for joyjit

hi all, i m facing an issue which is mentioned here: i m using a xp 64 bit machine i have a register function defined in a 32 bit component which is running on a 64 bit machine using wow64 support i need to call this register function from a …

0
43
Member Avatar for Saint48198

I'm having trouble with a program. The program needs to do a selection sort of last names. I have the program sorting the names correctly, but I can not get the correct first name to appear next to its last name. I've tried a loop and either get the same …

Member Avatar for Saint48198
0
170
Member Avatar for darylesha

Hey ya'll, I am working on this assignment that has me that is as follows: /* Modify the following shell sort to use the fibonacci sequence, instead of the sequence h = 3h+1. Hint use dynamic programming to do this. */ #include <iostream> using namespace std; #include <stdlib.h> #include <fstream> …

Member Avatar for SpS
0
602
Member Avatar for jlouang

ok so i need to make a program that where the user enter a day, month, year. has to be 3 ints, functions must display months name I have no clue where to start

Member Avatar for jlouang
0
373
Member Avatar for Acidburn

hello, ive got my code but ive split it up. however i keep getting the following errors: [quote] --------------------Configuration: main - Win32 Debug-------------------- Compiling... main.cpp interpreter.cpp D:\language systems ica\interpreter.cpp(16) : error C2065: 'Code_table' : undeclared identifier D:\language systems ica\interpreter.cpp(16) : error C2109: subscript requires array or pointer type D:\language systems …

Member Avatar for Lerner
0
233
Member Avatar for Asif_NSU

I am trying to access files in a folder. The folder name and location will be given - the program will search inside the files in that folder for a specific pattern(yup like grep). However, I am not sure how to actually let my program know what are the files …

Member Avatar for Ancient Dragon
1
263
Member Avatar for Spasticmoose

Hi, i was wondering if anybody could give me sum help with ideas for programs. Ive been programming in c++ for a while, but im not really very advanced yet. At the moment im making things to output random messages, like a magic 8 ball, using arrays, but thats getting …

Member Avatar for Spasticmoose
0
173
Member Avatar for robase

Hi, I am having problems with my problem 4.This is what I have as my code. I have 7 compiler errors in it. I don't know how to put the ATM into my program. My project is due wed night and I am cramming to finish this. But I need …

Member Avatar for Ancient Dragon
0
150
Member Avatar for javamum

I'm trying to find the root of the following equation using the bisection method: x*(1 + (k*n)/(1 + k*x)) - L = 0. the user inputs the values for k, n, and L and the program should solve for x. Can anyone tell me why my program isn't working? The …

Member Avatar for WolfPack
0
146
Member Avatar for magikman

Hello, everyone: I have ventured into the world of windows API programming, unfortunately, my window is foggy at the moment. Maybe someone can clean it for me. :eek: I feel as though this is something i should have taught myself before this point. But, at any rate, here is my …

Member Avatar for magikman
0
117
Member Avatar for DotNetUser

I'm coding in VC++.NET. For some reason, my messagebox is displayed below my application and is therefore hidden from the user. I can't get it to be modal either. Any ideas?

Member Avatar for DotNetUser
0
100
Member Avatar for tyczj

i need some help with figuring out how to check diagonals in my 3D Tic-Tac-Toe board. i have the horizontal, vertical and depth done fine but i cant figure out how to get diagonals. i only put in the check part since the full code is really long. the peoblem …

Member Avatar for Drowzee
0
1K
Member Avatar for prof.thakur

how can we display a panel or small image in the desktop screen before starting our application and after some time it should display the window pertaining to it solution is welcomed in any lnaguage c/c++/java

Member Avatar for Ancient Dragon
0
161
Member Avatar for grunge man

just incase no one saw it in the other window here is two questions i need help with o now i get it thanks your trigering back my memory um but hey i have another question what does endl mean and what would happen if you put the values 4 …

Member Avatar for grunge man
0
363
Member Avatar for grunge man

um i have been to many tutorials and none of them talk about making forms with c++ and recieving the inputed info withc++ with buttons,text boxes,ect like in html so is there any functions or whatever that could achive this, and im not talking about the cin and cout ones

Member Avatar for grunge man
0
152
Member Avatar for weehoong

Hi there guys! Just want to say these communities are great! i've really benefited alot from the forum and its tutorials. Special thanks to [B]FireNet [/B] and his file handling tutorials. It really helped me alot! Not forgetting, thanks alot to all of the members here too. :idea: :cheesy: anyway, …

Member Avatar for Drowzee
0
407
Member Avatar for YoTaMiX

Hello to you all , I have been assigned to in C to build a function which will take 2 strings and count (in recursive way) how many chars are alike (case sensitive). I have setup the main and also a function which recieves the input from user . I …

Member Avatar for YoTaMiX
0
179
Member Avatar for dors_zone

#include <iostream> using namespace std; // allow use of standard names like cin, cout, etc. int main (void) { //variables char answer1, answer2, answer3, answer4, stall; // capital letters selected by the test taker. int numberCorrect=0; // to determine the IQ cout<<" "<<endl; cout<<" ******************************************************************************"<<endl; cout<<" * *"<<endl; cout<<" * …

0
83
Member Avatar for tsubasa

i want to find the length of a string but by using string.length() or string.size() well i don't really get the length of the string coz if i have a space well it won't read further. Eg "Hello world!!!" will return me 5 coz it will stop at the space. …

Member Avatar for tsubasa
0
138
Member Avatar for heavyc

I have this problem where I have to create a process and then when I am all done i must delete all processes that are created. I have tried to set up a linked list to do this but when i go to implement it it doesnt work>> I have …

Member Avatar for WolfPack
0
148
Member Avatar for gampalu

Hi! I'm building a Class for matrixes. I have already built several funtions for adding, subtracting, transpose, multiply,.. Now I'm trying to do a function to calculate the inverse... Can anyone help me? [CODE] class CMatrix { public: void Identity(); void SetMaxColRow(int nRow, int nCol); void SetElement(int nRow, int nCol, …

Member Avatar for iamthwee
0
255

The End.