51,593 Topics

Member Avatar for
Member Avatar for dcforshaw

Hi all, I am currently working analysising silicon pixel detectors for the LHC at my university. One thing i have to do is to find clusters of signal in a silicon pixel detector. I have directory of macros which handles the data and getting it ready, not important. My goals …

Member Avatar for dcforshaw
0
185
Member Avatar for Dark Byte

Sorry for the newbie question, but what are header files? What should they contain? Just classes and definitions?

Member Avatar for Dark Byte
0
183
Member Avatar for qutecynosure

I want to draw three circles within a pentagon in C++. I also want to give random movement to one of the circles within pentagon. Can anyone tell me the code alongwith the required header files for drawing this. regards

Member Avatar for damnigottajoin
0
1K
Member Avatar for Interrupt

Hi, I’m a 39 year old diesel mechanic desperate to change my career and have recently completed a HNC in electronics and computer technology. I’m thinking of doing a distance learning course that incorporates three parts MCTS 70-536 microsoft .net Framework application development Foundation; MCTS 70-562 microsoft .net Framework3.5 ASP.NET …

Member Avatar for lgriess
0
164
Member Avatar for hurbano

i have written the following code for an add fucntion for a linked list implementation. when i run it, it runs correctly. when i went to class today, i found i had made a mistake. my add function adds only a student data type, whereas the assignment was to make …

Member Avatar for hurbano
0
148
Member Avatar for deidara1512

Hi, i know this topic was here several times, but all threads are very old and codes from them are not working for me. So, I need to simulate mouse and keyboard events on my windows (moving mouse,clicking mouse, pushing keyboard buttons). I need to do this all from c++ …

Member Avatar for deidara1512
0
244
Member Avatar for shubhankarmayan

i have been given a series and ihave to find its sum. i'm just a beginner so pleese keep ur program simple; series is like this; 2^2 + ( 2^2+ 4^4) + (2^2 + 4^4 + 6^6).... take in number of terms from user.

Member Avatar for prvnkmr449
0
434
Member Avatar for XMasterrrr

hello guys, sorry if it's wrong topic name but in accelerated c++ book and in chapter 2 exactly i have a problem [CODE]#include <iostream> #include <string> // say what standard-library names we use using std::cin; using std::endl; using std::cout; using std::string; int main() { // ask for the person's name …

Member Avatar for XMasterrrr
0
149
Member Avatar for Matt_L

First I would like to say my knowledge of C++ is limited; most of my experience is in Java. Also this is my first post to daniweb, so please excuse me if I didn't follow proper etiquette (but please let me know). That being said, I have a need to …

Member Avatar for klemmerj
0
122
Member Avatar for Takeshi91k

This is my first post here on Daniweb and I intend to do things right. I actually did read the "READ THIS FIRST" thread and instead of posting 500 lines of code I whipped up a test program I aptly titled test.cpp First I will walk you through my problem. …

Member Avatar for Takeshi91k
1
139
Member Avatar for captainSheepdog

Hi everybody, I recently created my first full application and have since passed it along to my friend for testing. Unfortunately, on his laptop, the executable, when double clicked, will act as if it is launching, show up in task manager, remain in task manager, but will not launch. The …

Member Avatar for captainSheepdog
0
136
Member Avatar for amit kithana
Member Avatar for sree_ec
-1
162
Member Avatar for thr

hello I want too choose among c++ + qt + php and java for my programming language and platform please help me too choose best platform I want to choose a platform that has this features : speed, portable I am c++ programmer and familiar with java programming language i …

Member Avatar for Premsathishbe
0
341
Member Avatar for Ami_m24

HI everyone i wanna ask that how can i make the combo box readonly which is created using MACRO

0
29
Member Avatar for NicAx64

hi, Does someone have a good books(if free fine but commercial even oky) on code reviewing and industry c++ projects? I mean how I could do a professional code review according to the industry standards? I need to read a one and want to listen from the experienced ppl in …

Member Avatar for chococrack
0
189
Member Avatar for CodyOebel

Ok here is what I am doing! I got a game that I am hacking\creating auto healing macro. *I am using DEVC++ by BloodShed \ Also have CodeBlocks and Visual c++ *Using windows 32 API framework I understand some basics of windows API, and getting handles, and device contexts and …

Member Avatar for NicAx64
0
230
Member Avatar for XodoX

Hello, the compiler has a problem with my "std::string line". It's in there twice, but I didn't know how else to do it. The program is like a lexical analyzer. What's the best way to fix this? [code] #include <iostream> #include <fstream> #include <string> #include <iostream> #include <string> #include <cctype> …

Member Avatar for XodoX
0
92
Member Avatar for hurbano

Ive written this program yet have stumbled upon a problem. in this program, im supposed to make a linked list of students. i must then implement some basic functions. one is to add a student (which i believe is working properly) and another is to getStudent. i believe the code …

Member Avatar for hurbano
0
100
Member Avatar for nizbit

I'm trying to find duplicates in an array and removing them by shifting the array index using the same array. I can't figure out where in my code the problem is but I'm still getting a duplicate. Could someone please help pinpoint the problem? I've tried debugging it but I'm …

Member Avatar for dusktreader
0
538
Member Avatar for GooeyG

I had this working before, but I modified it and it stop working. So, I change the code back to when it was working and I'm not getting the same results. Here is what I'm getting. How many employees you want to enter? 3 Enter gross pay for each employee: …

Member Avatar for GooeyG
0
112
Member Avatar for PixelExchange

Does anyone know if it is possible to create a program which runs on windows.. but has a [b]Macintosh[/b] Window appearance? I would like to have a Mac. appearing window.. on windows.. Example: Instead of the close, minimize, and maximize being red, blue, and blue (Windows 7).. I would like …

Member Avatar for PixelExchange
0
102
Member Avatar for great_learner

hi, i know i m asking sort of stupid question, but i cant figure out my mistake. in winform c++, i have added two buttons and buttons' properties visible and enable are set to true but at runtime, both are not visible. can someone help me figure out my mistake... …

Member Avatar for Ancient Dragon
0
96
Member Avatar for shankarz

The graphics.h header file is not running in turbo c++ 4.5, why? [CODE]#include<graphics.h> #include<conio.h> void main() { int gd=DETECT, gm; initgraph(&gd, &gm, "c:\\turboc3\\bgi " ); circle(200,100,150); getch(); closegraph(); } [/CODE] Please give me a link to download c-graphics tutorial?

Member Avatar for shabbaz_paras
0
120
Member Avatar for vbx_wx

if you create an exception object on the heap and throw the pointer to that object, it will not be cleaned up. Can someone help me how to implement this ?

Member Avatar for Narue
0
71
Member Avatar for arshiyafatima
Member Avatar for great_learner

Hi, Can anybody tell me that how can i open file and write it in winform C++? i have googled alot and searched msdn but could not find appropriate help. I also tried using fstream's objects but they were declared unidentified on winform. what can i just do? what stream …

Member Avatar for great_learner
0
166
Member Avatar for Sinaru

You can use the following class to align text such as paragraphs to be centered, right, or left on a console. Also it supports some more methods. I have written this so it will be helpful for some and also for me. I'm not that pro so have wasted a …

Member Avatar for Sinaru
0
173
Member Avatar for chilambu

hoe to use the operator overloading in c++ using string cncept.especially << operator.

Member Avatar for Duki
-1
114
Member Avatar for ThrasherK

I have been working on a program that starts with the user entering an id (as in account id) and then a main menu pops up where they can choose between balance check, withdraw, deposit, and exit. The program is never supposed to end. It is supposed to keep looping …

Member Avatar for Duki
0
209
Member Avatar for DAlexNagy

I am writing a GUI in GKTMM for my own learning experience and to use on a personal project I have at home. The data will be stored in a MySQL database on a server I already have running in my home and which I use for some PHP/JavaScript code …

Member Avatar for DAlexNagy
0
160
Member Avatar for delle

I wrote a little test program to try to figure out some problems I am having in another program I'm working on. Code: [CODE]# include <iostream> # include <string> using namespace std; void ahoy(string nameEntered) { cout << "Ahoy, " << nameEntered << "!" << endl; } int main() { …

Member Avatar for Duki
0
210
Member Avatar for DAlexNagy

I am learning to write C++ code to access data in a MySQL database. My goal is to use a separate class to control the database access so I can use this class elsewhere. To facilitate my learning, I'm working on simple code to connect to a database (success!) and …

Member Avatar for DAlexNagy
0
503
Member Avatar for Babaty

Guys can u check this one out ? Q1: design a system that will read students information, display them in a table form, and implement some operation on them. The system must show the following: ========================================================================= Do you want to add new students? Do you want to display the student …

Member Avatar for Fbody
-2
88
Member Avatar for Sismetic

Im trying to do a screen-flashing application that flashes the screen depending on the audio(like an audio visualizer, but instead of a visualization like bars or something like that, just flash the screen). I already made the music player and know how to make the widget get full screen and …

Member Avatar for Kanoisa
0
237
Member Avatar for unsureandunclea

Hello, i'm currently creating a program that allows the user to input a sentince and then the program compares each word to the array to see if there is any matches. The program also is able to sort using quicksort and other sorts. however, i am not sure how to …

Member Avatar for Kanoisa
0
124
Member Avatar for techno2007

Hi all, I want to solve the dining philosopher problem in c++,linux. But i don't get any clue. Can anybody help me to solve this. I know the problem theritically very well. But having confusion to implement it. Thanx in advance.

Member Avatar for techno2007
-1
86
Member Avatar for ze_viru$

I've just started learning c++,so i want to take any challenge concerning c++.My question is where do i start when drafting a game program.Please ppl help me out.

Member Avatar for ruwaiz1028
-3
3K
Member Avatar for jsburkdc

I have a homework assignment that requires the user to input two equations from the keyboard. The user can enter any letter of the alphabet but each equation can only have a total of 26 letters. I created a class for the equations and I was able to validate the …

Member Avatar for prvnkmr449
1
452
Member Avatar for Jixz

To make a long story short here is the situation I'm in right now: I have one thread downloading a file from the web to a local file. I need the other thread to get the local file's current size AS its downloading. So, what would you guys recommend to …

Member Avatar for Ancient Dragon
0
153
Member Avatar for TGeorge824

I'm taking a graphics class, and we have just started using OpenGL. My professor gave us a simple program that draws a purple line, that we were supposed to compile. I took it home and tried to compile it, and i got a lot of undefined symbol errors. Any help …

Member Avatar for mike_2000_17
0
260
Member Avatar for scru

Is there a short way to determine how many digits are in an integer? I'm new to C++, and writing a program that's supposed to a number in one column, and its square in the next. I'm using setw to manipulate the width of the coulms. Here is those code: …

Member Avatar for Student level
0
476
Member Avatar for super-duper

//************************************************************************************* // This program keeps track of speakers' bureau. // It displays a menu, where the user can add info, // view the info of another speaker that's already in there, // and etc. //************************************************************************************* #include "stdafx.h" #include <iostream> #include <iomanip> #include <cstdlib> using namespace std; //************************************************************************************** // this is …

Member Avatar for super-duper
0
182
Member Avatar for onako

I wonder whether there is a faster way (faster then the obvious one a=a*a) to square the content of a vector of floats. I remember that bit shifting could be used somehow, but I'm not sure whether this works for floats. Any suggestions on how to achieve this are welcome …

Member Avatar for NathanOliver
0
80
Member Avatar for onako

My templated function look as follows: [code] template <typename MatTypeOne, typename MatTypeTwo> void funct(MatTypeOne& m1, MatTypeTwo& m2) { //here I would need to check whether m1 and m2 are of the same "type", //meaning that MatTypeOne is the same as MatTypeTwo } [/code] What is the way to check whether …

Member Avatar for LordNemrod
0
113
Member Avatar for XodoX

It's a program that works sort of like a lexical analyzer, but it's just supposed to pull any given data from a .txt file and display it. Nothing else. I'm not satisfied with the array I have so far. /**************************************************************** Array holding all keywords for checking. *****************************************************************/ char *keywords[]={"procedure","is","begin","end","var","cin","cout","if", "then","else","and","or","not","loop","exit","when", …

Member Avatar for LordNemrod
0
109
Member Avatar for rtdunlap

[CODE] #include <iostream> using namespace std; int main() { char a = 0, b = 1, ch1, ch2, ch3, ch4, chsum; float num1, num2, num3, sum, avg; cout<<"Enter Character 'a' or 'b': "; //asking user to enter character a or b cin>>ch1; if (ch1 == a) { cout<<"Enter three floating-point …

Member Avatar for LordNemrod
0
123
Member Avatar for ganesh_IT

Hi guys, what is the deference between ASSERT macro and Exception handling in cpp

Member Avatar for LordNemrod
0
74
Member Avatar for NervousWreck

Hi, I'm kind of embarassed to be asking this since I should be able to figure this out by now, but I'm writing a program to sort a vector of objects alphabetically by a string member variable. Can someone help me figure out why the bubble sort below won't work? …

Member Avatar for Ancient Dragon
0
87
Member Avatar for ToiNKieZ

example output: Meter number is: 124123ABC231 "what should i use to define something like that.... TurboC newbie here...

Member Avatar for Ancient Dragon
0
68
Member Avatar for DeweyFinn

I wanted to know if there is such a way to declare a variable at runtime or create a dynamic variable. I've done this in Python, but I didn't know if C++ allows this. Maybe I'm not explaining it that well so I will give an example. Say I have …

Member Avatar for Ancient Dragon
0
93

The End.