51,593 Topics
![]() | |
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 … | |
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. | |
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; … | |
how can i straem the usb so that i can design a device that communicate with computer hrougt usb | |
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 … | |
I wnat some PHP C PaneL Free Hosting & PHP Skin For Weblog | |
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, … | |
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. | |
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 … | |
**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 … | |
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 … | |
hi everybody!! does anybody have databases so dat i can have some idea abt them...:) | |
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: … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
Hello there, any idea what function in the standard library corresponds to these win32 apis (GetPrivateProfileInt and GetPrivateProfileString). Thanks. :) | |
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 … | |
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 … | |
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 … | |
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. | |
[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] | |
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? | |
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? | |
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 … | |
[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] | |
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 | |
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 = … | |
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; … | |
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 … | |
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 << … | |
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 … | |
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 | |
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. | |
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") , … | |
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 | |
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 … | |
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 | |
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* … | |
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. | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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. … |
The End.