49,761 Topics

Member Avatar for
Member Avatar for mrectek

Im running a few tests for creating an MP3 player (very basic) and i'm having a few issues that I'm hoping somebody can help with. Right..... Im using mci for playback but what i need is the file path to be input by the user via a textbox. Ive created …

Member Avatar for mrectek
0
207
Member Avatar for daino

Hi Would anybody know what a Linker is. I understand it is to in some way bring together the Implementation, header and Main.cpp files though is that part of the compiling process. I'm using Dev C++. How would I construct a separate implementation file and header file from main and …

Member Avatar for daino
0
183
Member Avatar for knotholaze

I'm trying to display number on screen wihout using the exponential form (1x10e-7 etc) Unfortunatly as it converts the number to a string it converts the exponential format with it Code: double j; //as Long string s; //as String j=0.00000000001 ostringstream ss; ss<<j; s=ss.str(); cout<<s; The programme will display 10e-10 …

Member Avatar for knotholaze
0
104
Member Avatar for flasp

I need help with this problem. The assignment says: "Do programming Exercise 6, but instead of declaring an array of three CandyBar structure, use new to allocate the array dynamically". Here is assignment 6: [CODE]#include <iostream> using namespace std; struct CandyBar { char candyName[25]; double candyAmount; int twoCandyWeight; }; int …

Member Avatar for flasp
0
163
Member Avatar for Narue

This is an example of using a binary index file to speed up random access of lines in a file. The file is indexed one time, where the position of the start of each line is stored in an index file. Subsequent requests for a get the position from the …

4
363
Member Avatar for mindx

Polynomial hash code in hashing is used to convert character strings to numerical values. Use Horner’s rule to implement this algorithm, and also perform the character conversion using ASCII format. Conduct experiments to study the collision rates for this hash code by using different values (prime or non-prime numbers) for …

0
92
Member Avatar for jackmaverick1

I have been doing strait-up c++ for a while, now I want to learn VC++. What are some easy commands? like a show form command and some others. Thanx, JT

Member Avatar for jackmaverick1
0
139
Member Avatar for sankalp_999

i have written a program in c++ using the concept of file handling. this program is about managing a basic electronic hardware store stock and showing the sales report. i am not able to understand why the [B]contents of my file are not being displayed, modified, deleted, or even printing …

Member Avatar for sankalp_999
0
2K
Member Avatar for ac.morgan

I am a fifteen year old trying to learn c++ to program a scientific calculator that is simpler to use. Would it be okay if I asked for advice on different problems I am having with the calculator and how to program certain things on it without providing a code? …

Member Avatar for Narue
0
116
Member Avatar for abarnett

Need ideas for this program: Write a program that allows the user to enter the last names of five candidates in a local election and the number of votes received by each candidate. The pgoram should then output each candidate's name, the number of votes received, and the percentage of …

Member Avatar for kvprajapati
0
2K
Member Avatar for svatstika

Hi everyone! I'm reading a book and doing some exercises in this book. One of them is: define a class, which implements arithmetic (+, -, /, *) with arbitrary precision. This is a new type with just some arithmetic operations. With type double we also can do some arithmetic but …

Member Avatar for svatstika
0
185
Member Avatar for GRENDY

hi evey one my name is ahmmad and I,m learning c++ but there thing i don,t undarstan so can you help me in this !??? I leaing the struc in c++ and list but whene i see a list example i have proplm whene i use thr strut and lis …

Member Avatar for chikkupa
-1
222
Member Avatar for Naveen Haran
Member Avatar for chikkupa
-1
90
Member Avatar for Dark_Omen

Hello, I am new to make programs. So far I can just do logical stuff like math in a dos window. I now want to move on to making actual windows programs. Does anyone know how to make a GUI in C++ for a windows application? Any reading online or …

Member Avatar for kvprajapati
-1
4K
Member Avatar for Rookie09

Sup guys .. So , the thing is that i need to define a preprocessor directive so i can compile correctively an SQL pseudocode into C++ . VALUES (value1, value2, ...);//cant figure out a way to take the value1,...,valueX out value1,value2,...,valueX is string or integer typed expression for example : …

Member Avatar for Rookie09
0
170
Member Avatar for emreozpalamutcu

I making a all in one program using visual studio 2010 C++ language and my all in one program includes free programs like firefox, opera, microsoft security essentials and people who uses my program doesn't need to install them they can just run it through my all in one program …

Member Avatar for Ancient Dragon
0
86
Member Avatar for Mr_PoP

[CODE] #include "includes.h" MYSQL *con; con=mysql_real_connect(con, server,user, password, database, 0, NULL, 0); //mysql check: int act; int reb; reb=mysql_query(con,"SELECT * FROM cq_rebirth"); act=mysql_query(con,"SELECT * FROM cq_action"); if(act !=0 || reb !=0){ cout << mysql_error(con); return 1; } [/CODE] Error: Commands out of sync; you can't run this command now i …

Member Avatar for Ancient Dragon
0
208
Member Avatar for ethanbuckley

OK So I am learning c++ and I have created my design using the windows forms, I now have to do the coding, I have implemented a code which is returning a nice amount of 102 errors, Any help would be appreciated or rewarded. I look forward to learning from …

Member Avatar for jonsca
0
413
Member Avatar for knotholaze

[CODE]double i; i=pow(10,10); cout<<i;[/CODE] for this code i get in output 1e+10 but how i can get output 10000000000 using cout<< and double variable

Member Avatar for knotholaze
0
147
Member Avatar for mbouster

Dear all, I would like to ask you how to initialize the following: I want to initialize a class inside another class. How I will be able to do so? An example: [CODE]/*Class Date*/ class Date { public: Date(){} // default constructor int day;//day of the month valid till 31 …

Member Avatar for mbouster
0
285
Member Avatar for Weird Nerd

Hi everyone, I've been working with pointers for quite some time and I'm familiar with all the pointer-reference stuff. One of the things I don't get is the function of the delete keyword. I have used this code to find out what the delete keyword does. [CODE]int main(int argc, char …

Member Avatar for ShadowScripter
0
148
Member Avatar for Suramachandran
Member Avatar for Aqua_annie

The class should be capable of storing, manipulating and printing dates. Dates can be initialized by assigning 3 numbers - the day, the month and the year (initially restricted to any date after 1st January 1900 and before the year 3000) e.g. `Date d1(26,3,1999);` Dates will be printed by either …

Member Avatar for VernonDozier
-1
131
Member Avatar for Gen.Asura

Hi, my tutor has set a coursework for us and i need help with a small part of the coursework. A small program where some one tests new programmes or you can call it benchmarking :) Basically there are 20 programmes and he sets them each of them mark out …

Member Avatar for Gen.Asura
0
180
Member Avatar for tomtetlaw

Is it possible to have a pointer to something (say a string) that is on the hard disk?

Member Avatar for Narue
0
115
Member Avatar for Shift_

Hi, Im relatively new to C++, and in the book im currently reading, came across the topic of Polymorphism. Just wanted to ask a couple of questions: 1) Base* ptr = new sub; Kinda confused about this - and also, how/why it is useful to have a base class pointer …

Member Avatar for Suramachandran
0
131
Member Avatar for Plumpkin

Given the declaration double dbl_num = 123.456;, write a program that prints out the value of dbl_num in both floating-point and scientific notation formats.

Member Avatar for jonsca
0
71
Member Avatar for kangkan_14

Can anyone please explain what is 'public' and 'private' in oop and specifically in java? I am a bit confused.

Member Avatar for kangkan_14
0
274
Member Avatar for sivakumar.k

I am doing a Taskmananger code,every thing is ok but when i build the pgm One error is coming like"Fatal Error :RC1015 cannot open include file 'afxres.h'",please help me,why it occurse and what is the reason pls.........

Member Avatar for sivakumar.k
0
437
Member Avatar for zidaneez

Hi everyone, I'm new here ... haven't had my warm welcome yet ;P So i need your help with my program. I'm supposed to program a simulator of the reader writer problem without using threads. So i thought i could use a timer to interrupt the running process every 2 …

Member Avatar for VernonDozier
0
1K

The End.