51,593 Topics

Member Avatar for
Member Avatar for beauty7

Hi there^_^, How can I create a class from this program? [code] #include <iostream> #include <ctime> using namespace std; int main() { // Obtain the total seconds since the midnight, Jan 1, 1970 int totalSeconds = time(0); // Compute the current second in the minute in the hour int currentSecond …

Member Avatar for beauty7
0
91
Member Avatar for krnekhelesh

I want to create a C++ Program to edit the Windows Registry. For example to change the home page of internet explorer. But I don't know how to read or edit the help. I am doing this program just for my own self and is not a part of homework.

Member Avatar for vijayan121
0
1K
Member Avatar for cursedbyfreud

Hi, this is my first post here, I searched the forum and google for my error and I found some results but they were not about exactly this error, if there is and if I missed it, I'm so sorry already. Here is my problem; const int flightNo; int ***Flights; …

Member Avatar for cursedbyfreud
0
169
Member Avatar for Jicky

how can i straem the usb so that i can design a device that communicate with computer hrougt usb

Member Avatar for Salem
0
68
Member Avatar for dotNetDummi

Hi all, (I apologise if this thread is out-of-topic) I need some ideas for my project. I have to develop a web application for some users to approve some documents. The problem I have is that I [U]can't[/U] give these people a login account (due to my project requirement). I …

Member Avatar for dotNetDummi
0
158
Member Avatar for artak
Member Avatar for einfoway
0
21
Member Avatar for juoyaf

Hi all, My cosin give me your site today when I called him, he kind of had the same problem. I have a file and i'm trying to read from this file as follow ID, first, last name and from the numbers (buyer.type) two things type, and how many pound, …

Member Avatar for juoyaf
0
88
Member Avatar for BigBen747

I am a newbie at coding C++. I have a program idea to make, like a audio media player or a DJ program...Kinda like windows media player and the others. If anyone could be able to help, that would be greatly appreciated.

Member Avatar for WaltP
0
180
Member Avatar for phalaris_trip

I have this code [code=cplusplus] CPoint* points; int numPoints (200); points = new CPoint[200]; [/code] I have another class called CPlanet, and a bunch of pointers like: CPlanet* pSun = new CPlanet; ... and CPoint and CPlanet call the same functions, so I would like to use -> to call …

Member Avatar for Duoas
0
109
Member Avatar for johnnyjohn20

**MY QUESTION IS BASED ON A COURSEWORK** I am trying to produce a sin wave using *'s to represent sample values for 1 cycle of the wave. For example when the user enters 7 the output should look like this: .........................................................* ..........................................................................* ..........................................................................* .........................................................* .......................................* .......................................* .........................................................* please ignore the …

Member Avatar for Jishnu
0
304
Member Avatar for almost_done

Ok so this is really annoying me...I'm trying to go through and parse a bunch of .csv files for content but I can't get past trying to open them. I want to read the directory contents and then open the specified file. I have the code working so it prints …

Member Avatar for almost_done
0
211
Member Avatar for sweety0

hi everybody!! does anybody have databases so dat i can have some idea abt them...:)

Member Avatar for sweety0
0
134
Member Avatar for ishwarbg

Hi friends, I have a problem where I am reading a string value from data file through my Record Set into basic string and then trying to convert it into LPCSTR or say LPSTR and where I am getting into trouble. The record set that i used is as follows: …

Member Avatar for vijayan121
0
2K
Member Avatar for IRSSRI

I am new to C++, and I am currently learning pointers. I am fully aware of the whole homework help restriction guideline stuff on this site. I am slowly understanding the logic of pointers. I just need help with the coding syntax. My assignment is as follows: I have a …

Member Avatar for Jishnu
0
109
Member Avatar for joshua.tilson

Hello, I am currently working off the sticky thread filled with practice problems etc. I have got a couple of the practice problems out of the way, and I am currently working on a program that will find the factoral of a number entered. So far i have an array …

Member Avatar for ioncrew
0
240
Member Avatar for boyz

suppose u r makin a class to carry out oprations on complex numbers... over loading the '+' operator for adding objects' made frm dat class is simple..... but how would u carry out this operation??? a= 10 + b; // it's not (b+10) where a & b are objects of …

Member Avatar for vijayan121
0
105
Member Avatar for joufaf

Hi, this is my first time writing a question but I'm usally get my answer from the fourms. I have a big project to do. one of the requiremnt is to use the array for two things and below some explain... ID, First Name, Last Name, and numbers 123, Cathy, …

Member Avatar for joufaf
0
204
Member Avatar for Biro

Hey, I am having problems with the double waistsize function, I am not sure where I have gone wrong..I am not getting the outputs I should be. waistsize should be user_weight divided by 5.7...adding 1/10 of an inch for each 2 years over age 28, so when it is 30 …

Member Avatar for danzona
0
132
Member Avatar for freakybeavis

I am trying to write something which takes user input (int) and doesn't cause an error if user inputs something other than an out of range int or an alpha. What I have actually works fine on my computer with XP but it causes errors on all 3 of my …

Member Avatar for freakybeavis
0
99
Member Avatar for jaepi

Hello there, any idea what function in the standard library corresponds to these win32 apis (GetPrivateProfileInt and GetPrivateProfileString). Thanks. :)

Member Avatar for vijayan121
0
166
Member Avatar for wicked357

Ok I have this tutorial for creating a hangman game. I started writing down what I needed to do. The only thing that sucks is I don't have the slightest idea on how to create a hangman game. I read over this tutorial like 3 times followed along with it …

0
82
Member Avatar for mafarjeh

hi for all pl, if any can do the folowing: " Write a cross-reference program which constructs a BST with all words included from a text file and records the line numbers on which these words were used. These line numbers should be stored on linked lists associated with the …

Member Avatar for ithelp
0
135
Member Avatar for wijitha

hi.. I'm new to ACE. I want to create a server which has multiple ports and clients should be able to connect with them simultaneously(one port is for only one client). There should be management port which can manage the server (adding new ports, changing properties of currently working ports(user …

Member Avatar for ithelp
0
87
Member Avatar for ithelp

What is the easiest way to create a libray from list of .o s that is libtest.a from a.o,b.o ...z.o I am looking for a command line option.

Member Avatar for ithelp
0
84
Member Avatar for ORA-MAN

[COLOR="Green"]Hello ppl! Hoping all of you is great! Ok, this is this first time to deal with VS2005 C++, and I need to help me that How could connect C++ with MySQL ?? please it is really important to me! any example will be helpful. dankie in Advance.[/COLOR]

Member Avatar for ORA-MAN
0
90
Member Avatar for Jicky

I have a web cam , I want to write a program that can stream images from the web cam and to display the image ,using c++ can anybody help me to solve with this?

Member Avatar for Salem
0
188
Member Avatar for Jicky

I tried to control device using outport() function but it did not work I used turbo c++ & i have os Xp media cntrtre can anybody get me a solution?

Member Avatar for Salem
0
71
Member Avatar for mark0420

hello everyone can anyone help me, i want ot have an installer for free of all programming languages that u have like VB.net, C++ and other languages and please upload that in [url]www.ripway.com[/url] here is my account and if you want to download that installer and help me here is …

Member Avatar for Duoas
0
89
Member Avatar for marvz

[B] plz give me more sample of formula convertion in c++ ex. x=ab3 sqerut of c a <<<<like dis......how to convert in C++ plzz give me more exmple.... im a first yr.....I.T student and i want 2 learn more......more power 2 dis site[/B][ICODE][TEX][/TEX][/ICODE]

Member Avatar for marvz
0
157
Member Avatar for mark0420

who can make me a complete list of codes like this scanf()- input a data printf()- print a stirng or data blah blah plz i want a complete

Member Avatar for mark0420
0
109
Member Avatar for helixkod

i am seeing this error: error C2106: '=' : left operand must be l-value here is the code [CODE]bool swap; int numTemp; char charTemp[30]; int count; do { swap = false; for (count = 0; count < (size -1); count++) { if (array[count] > array[count + 1]) { numTemp = …

Member Avatar for Duoas
0
92
Member Avatar for helixkod

Heres my current code: [CODE] const int SIZE = 100; //constant 100 const int COL = 30; //number of columns int testScores[SIZE]; //test score array char students[SIZE][COL]; //student names array int numTests; //the number of tests char *namePtr; //char pointer int *numPtr; //number pointer int count; //counter numPtr = testScores; …

Member Avatar for Duoas
0
113
Member Avatar for jrice528

OK, I finally figured out command line arguments... my program is called prime, in the console i need to type "prime 7" and the program will tell me if its a prime or not. heres my code: [code]#include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; int main(int …

Member Avatar for Duoas
0
115
Member Avatar for johnnyjohn20

Hello, i am trying to count from 0 - 7 and storing the values in an array. I have been trying to do this solidly for 2 weeks :'( my attempt: ************************************** int a[20]; int x; for ( x=0 ; x<=7 ; x++ ) { a[1] = x; cout << …

Member Avatar for Salem
0
101
Member Avatar for geckoo

I was wondwring can somebody help me with my problem: how can i run my .exe, created usnig bolrand c++ on another computer wich hasn't got C++ installed maybe its a silly qustion, but i just don't konw it. ...ooops I forgot the main reason for my qustion my program …

Member Avatar for Sturm
0
141
Member Avatar for amnajvd

Hi I Am Working On This Project I Which I Need To Send Jpeg Files Over The Lan Ports To Some Device. Can Somebody Please Tell How Do I Program My Lan Ports In C++ Orc Maybe??/ Thanx Amna

Member Avatar for Ancient Dragon
0
327
Member Avatar for jrice528

What exactly does this mean?? Your program must determine the user-specified lower bound and upper bound by using command-line arguments. You will need to use the strtoul() function (from the cstdlib header) to convert command-line arguments to int values.

Member Avatar for vmanes
0
116
Member Avatar for heav_yduty

Hi! I try to make a simple internet browser. I use document SDI and base class CHtmlView. And the problem is that I don't know how to make an address bar like in IE. Maybe somebody can help me? Sorry for my English (I mean "a question about VC++6") , …

Member Avatar for heav_yduty
0
73
Member Avatar for powellinthesout

I'm very new to C++ and want to start some beginner programs; but I also want a partner, to learn together. Post here :) ~powell

Member Avatar for Lerner
0
76
Member Avatar for joceyn226

HELP.. below is part of my code which i have trouble with it why when i choose 5 to exit.. it does not exit..but it will ask me to press any key to continue then when i press...it cum back to the main menu again.. thx for helping...really appreciate it …

Member Avatar for Ancient Dragon
0
98
Member Avatar for amitshukla

hi, I am working on a project and regarding that i want to know how can i send a file to a computer on the LAN using C / C++ program PLEASE HELP ME OUT

Member Avatar for Salem
0
139
Member Avatar for Biro

Hey I am new to c++, I am trying to work with programmer defined functions, I was wondering if someone could tell me where I went wrong with this: [code]#include "stdafx.h" #include <iostream> using namespace std; double hatsize(double user_weight, double user_height); // hat size function declaration int _tmain(int argc, _TCHAR* …

Member Avatar for Ancient Dragon
1
104
Member Avatar for samaru

Hey guys. I was thinking about writing a C++ tutorial. What do you think are the hardest topics to cover in C++? I know a lot of people have a hard time with pointers, but I was wondering what you guys think.

Member Avatar for Salem
0
401
Member Avatar for teddyzhai

Hi , There: I just have a simple question by programming. Looks like this: class A{ ..... ..... Public: copy(){ return *(this); } } in .cc file: for example we have a container list<A> list; A* a = new A(...); list.push_back(a->copy()); Why is this copy() better than not use it …

Member Avatar for Duoas
0
144
Member Avatar for cuddlerbes

hello can you help me with my program. Are you familiar with microsoft visual studio 6.0. I made a program in c++ but it will commit errors everytime it will accepts more than 10 integers.. or even large integers

Member Avatar for zandiago
0
85
Member Avatar for alcoheca

Hi, me again! I wish to tidy up strings from user input. I have done a bit of research and have most of this working except the tricky bit - converting all/any whitespace between words to 1 ' ' char. For instance, using hyphen to represent spaces.. ---John-----MacDonald- should end …

Member Avatar for alcoheca
0
118
Member Avatar for Knad

Hello, I am trying to impliment a guassian blur filter in C++, but i cannot progress asi keep getting a Floating point exception every time i run it. I am unsure as to why, i have narrowed the error down to somewhere within the function gaussian_mask() which creates the gaussian …

Member Avatar for Knad
0
292
Member Avatar for valdix

I have problem with my homework in C++ There is number n and numbers a1, a2, ... , an ( n<100 ) And I need to get thous number pairs, that are mutual prime. Also I need to use function, that calculates two number mutual primes. :S

Member Avatar for Salem
0
157
Member Avatar for np2100

I am still just a beginner and i made this average program. It worked out just fine. THen i decided I wanted to make it say like the grade you got such as an A+ or C. Anyway after I add all the grades and divide them by the number …

Member Avatar for np2100
0
302
Member Avatar for wambooman

what I want to do is replace the spaces inputted to '~10' text. I input a string a1. I change the string to a char array names SA so I can go through each char. if the char[i] is a space, I want to append ~10 to the sa string. …

Member Avatar for Duoas
0
125

The End.