49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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? … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 : … | |
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 … | |
[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 … | |
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 … | |
[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 | |
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 … | |
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 … | |
| |
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 … | |
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 … | |
Is it possible to have a pointer to something (say a string) that is on the hard disk? | |
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 … | |
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. | |
Can anyone please explain what is 'public' and 'private' in oop and specifically in java? I am a bit confused. | |
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......... | |
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 … |
The End.