49,766 Topics

Member Avatar for
Member Avatar for Scharl

I am using libhash++'s getHashFromFile() as seen in [url=http://hashlib2plus.sourceforge.net/example.html]this[/url] example to get the hash from files. When the file is a simple text file I get the same result as I get with md5_file() in PHP and the program [url=http://www.pc-tools.net/win32/md5sums/]md5sums[/url], but when it is a binary file I don't get …

Member Avatar for rbross
0
88
Member Avatar for VasquezPL

I have a question. I worte frontend application to manage Active Directory. It uses AD commands like "dsquery,dsget etc" I use them this way: system ("dsquery *"); What i need to do is to write a code that will capture all text viewed by commands in system("") or to capture …

0
45
Member Avatar for zabra

Morse code Converter Morse code is a code where each letter of the English alphabet, each digit and various punctuation characters are represented by a series of dots and dashes. Write a program that asks the user to enter the string: “Yesterday, I slept most of the night. I saw …

Member Avatar for daviddoria
0
2K
Member Avatar for do vale

[CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int num[5],high=0,high_num=0,low=0,low_num=0,a=0; for (int a=0;a<5;a++) { cout<<"enter number "<<a+1<<":"; cin>>num[a]; } for (a=0;a<5;a++) if(num[a]<high) { high=num[a]; high_num=a; } cout<<"highest number is.."<<high_num<<"\n"; cout<<"highest number is.."<<high; getch(); return 0; }[/CODE] please CORRECT this Code the problem is.. "PROGRAM THAT CAN ACCEPT 5 …

Member Avatar for Moschops
0
191
Member Avatar for remuladgryta

Hi, i'm a new learner of the ways of COM and, when trying to recode a code example found in [I]Automating Office[/I] by Lori Turner from just a demo of Word interaction into a c++ class (which i will be using in my program) i come across these linker errors: …

Member Avatar for DJRoss
0
3K
Member Avatar for iwannalearn

hey i am in a great confusion plz help me out.I have done basics of c++,and now i am in a confusion that whether i should continue c++ or to start with java???? plz suggest me

Member Avatar for Moschops
0
145
Member Avatar for youLostTheGame

in my C++ class we were given an assignment (as follows) and i only have one last objective with it. the user is given an option to be able to see the entire queue list and i don't know how to get the program to show that. does anyone know …

Member Avatar for youLostTheGame
0
147
Member Avatar for uclaEE

Hello all! I am having trouble writing this code where I am supposed to take integers and output them as strings. When i try a number like 67 it outputs it correctly like sixty seven. However, when i try 467 it only outputs four hundred sixty. Suggestions appreciated! [CODE]#include <iostream> …

Member Avatar for ravenous
0
122
Member Avatar for svatstika

Hi everybody! In my TMemo (name: MemoMain) there are following datas: 3 0 1 1 1 0 1 1 1 0 I must read them to a variable int and an array int A[][]; After reading: n==3; A[0][1]==0 A[0][2]==1 A[0][2]==1 A[1][0]==1 A[1][1]==0 A[1][2]==1 A[2][0]==1 A[2][1]==1 A[2][2]==0 I did like this: …

Member Avatar for svatstika
0
290
Member Avatar for w1mark

Hi, I have been working on this program for a while, and it is just getting plain frustrating. I'm trying to make a class(called numberType) which can take a number with up to 100 digits using a 100 integer character array and then be able to add that class with …

Member Avatar for w1mark
0
122
Member Avatar for kamotekid08

Hi there somebody please help me to create a record file using c++.. The project is similar to a record. Ex. A product(goods) record. Where you can search for a certain product using the code number of the product, add product, remove product and view all the records. the task …

Member Avatar for jonsca
0
3K
Member Avatar for cppgangster

I am getting the same problem with the languege. How to craete graphical user interface on windows platform without Qt? MCF is not anymore included in Visual C++ isn't it?

Member Avatar for jonsca
0
113
Member Avatar for caut_baia

Hi everyone i'll keep it brief.Say i have [code] template <int k> struct A { enum {key=k}; }; template <int t> struct B { std::vector <A<y>* > vec; B () { vec.push_back (new A<y> ()); B <t-1> (); } }; template <> struct B <0> {}; int main () { …

Member Avatar for caut_baia
0
97
Member Avatar for danijela123

Hi there, in my binary file i want read something but from 4th byte. i need to read data as 2 bytes int. i have this code but im not sure if its ok: some of my files should have some values less than 0, and im not getting any..so …

Member Avatar for MasterGberry
0
119
Member Avatar for Lemonader

Hi. How do I develop test cases for this code? Like, you know, testing the methods. I don't really know. If there was a "return", I could do it that way, but there isn't. So, you make a skeleton of tests, then adjust each test so that it actually tests …

Member Avatar for Lemonader
0
157
Member Avatar for ableg02

How can I write a for loop that will help me run this twice so that I won't have to re-type code for other data type Student variables? Student S1, S2; for (int x = 1; x < 3; x++) { cout << "Enter First Name: " << endl; getline(cin,Firstname); …

Member Avatar for ableg02
0
99
Member Avatar for c++probeginner

Please Help Me! I cannot figure out what to do. I get an error that I don't understand. I posted my code and error below: #include <iostream> #include <string> #include <iomanip> #include <cctype> using namespace std; //prototypes int read_dials(char &d1, char &d2, char &d3, char &d4, char &d5, char &d6, …

Member Avatar for arkoenig
0
156
Member Avatar for nerdygirl118

I am making a wheel of fortune game and have successfully figured out how to change the word that you're trying to guess into astricks *. However, I cannot figure out how to change it back once the user inputs a correct letter. The puzzle comes from the user inputting …

Member Avatar for dmalach
0
216
Member Avatar for Hojjat.Mojallal

Hi this program calculate the differentiation of a polynomial by using a tree structure. It's assumed that the variable is x and valid operations are +, -, * and /. The valid operands are x and digits.The program doesn't check the validity! e.g. x*x*x-2*x+7 (valid) x*x*x-12*x+15 (invalid) But I need …

Member Avatar for Hojjat.Mojallal
0
628
Member Avatar for MDiak47

I have been informally studying programming with C++ for roughly 8 months now. I understand the majority of the language, but I am becoming extremely bored with building trivial programs and running them in console. I am quickly losing interest and would like to know where to move next...I have …

Member Avatar for mike_2000_17
0
163
Member Avatar for KazenoZ

Hello, I'm currently writing a program in which I need to check wether a list is empty or not, though that produces me crush in the program when I operate the empty() function on it. Project.h [CODE]class Project{ public: friend class Map; bool isProjectOpen; list<Map> maps; list<Map>::iterator it; string Name; …

Member Avatar for KazenoZ
0
671
Member Avatar for imobby

Hi, i am working on visual C++ Express Ed and winforms to make a simple Word processor. What can be the basic functionality like spell check etc i have to put in it and algos to follow? is there any help on the Internet that u know can help me.

Member Avatar for jonsca
0
742
Member Avatar for shabbo_03

im doing a college project in c++. it is a token system of bank(line,queue..).it waits for a enter key and then it creates a token with entry time and expected leaving time,cashier to attend to and token no. whenever i compile the program it gives no error but after runing …

Member Avatar for mbulow
0
357
Member Avatar for david09436

Create a program that will calculate the CFRS and the letter grade equivalent of a list students using an array of structures. your inputfile:"students.in" and your outputfile must be:"students.out".im confused in filestreaming. my specifications. Student as the name of my structure. Student_List as my array of structure. my structure named …

Member Avatar for Red Goose
-3
149
Member Avatar for crv_great

hiiiii its 12th science student.IN THE FOLLOWING PROGRAM I REALLY DONT UNDERSTAN THE LINKER ERROR.I HAD ALREADY SPEND 4-5 HOURS IN SOLVING 50IES OF ERROR BUT THIS ERROR I REALLY DON'T ABLE TO UNDERSTAND. SO PLEASE HELP ME OUTTTTTT. AS EARLY AS ANYONE CAN...... [code]#include<string.h> #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdio.h> #include<fstream.h> …

Member Avatar for group256
-1
2K
Member Avatar for fia tariq

plzz help me how to find the largest and 2nd largest number among n values through while loop

Member Avatar for prvnkmr449
-1
83
Member Avatar for RolandTheNerd

Hello, My whole life I've wanted to make a video game. I've been influenced by notable programmers; Shigeru Miamoto and Tetsuya Nomura. I'd like to learn how to do C++ programming so I can make a game. I'm only a freshman in high school, so you can imagine, I don't …

Member Avatar for vinayakgarg
1
197
Member Avatar for koundinya

hello guys i knw this is an old thread but the exact solution isnt given yet.i have the small problem of pipeline error after i installed tcwin45.even though this is an old version it shoudnt give any problems rite?i ve installed it 3 times and then deleted it 3 times …

Member Avatar for koundinya
0
123
Member Avatar for vbx_wx

I am trying to send a structure via tcp/ip,i dont know if i am doing it good,it prints a strange chaarcter in my screen.Here is my code that i am using to send and recv: [code] void Send(const void* buffer, int size) { int n; if((n = ::send(desc, (char*)&buffer, size, …

Member Avatar for gerard4143
0
144
Member Avatar for Crzyrio

Hi As part of an assigment i am needed to write a C++ Program to solve a system of equations using Gaussian elimination with scaled partial pivoting method. Now our prof has told us to simple use the pseudocode found in the book. I did my best to finish it …

Member Avatar for daviddoria
0
3K

The End.