49,761 Topics
| |
Hello there, I have started learning c++ and the book im reading shows different ways of writing the "hello world" programme, i just want to know how and why these are different. [CODE] #include <iostream.h> int main (); int main () { cout <<"hello world!!"; return 0; } [/CODE] in … | |
i am receiving and sending data between pc-chipcon board through serial port .the incomming data is link quality packet.i want to check the value of link quality and by observing the value i should send another signal to increase power in the chipcon board . iam having problem with the … | |
Warning 1 warning C4390: ';' : empty controlled statement found; is this the intent? | |
hi, im new in programming and C++ and i have a homework and i need a little help on how to do it will u please just tell give me some suggestions on what i should do and ill try to do it myself This is what i have to … | |
Is there a way using file handling functions to search within a text file to find the position of certain text WITHOUT having to read each character/line and evaluating it? For example, let's say I have a file of 'messages', where a message has a distinct start and end characters. … | |
Ahmmm .. I'm a newbie in C++ programming, and my BOSS wants me to do a program that accepts a COUNTRY CODE and its output must be the COUNTRY NAME of that COUNTRY CODE and following on the COUNTRY NAME is there Biggest TELEPHONE OPERATOR..:?: ****************************************************************** OUTPUT: Please Enter Country … | |
Hi Everyone I am new to vc++ 6.0 graphics programming. I am getting some errors of a program which i am trying to compile. i have added all the dependencies but not able to figure out why I am getting the following errors. Any suggestions. Threading.cpp C:\Programming\Projects\MX - MSVC6\Threading.cpp(2118) : … | |
Hello there. which compiler would you recommend out of these 1. bloodshed dev c++ 2. Visual c++ express edition 3. code: blocks studio one more question whats the .net framework? | |
Here is what I'm trying to do: Create an Auction class that contains data members for an auction. store these as heap variables. instantiate an auction object on the heap Allow two people to have an auction using a console application once one of the bidders meets the reserve price … | |
[COLOR=#555555]Hey, I’m trying to put a c++ project together using Dev-c++. Is there any reason why I can’t define 2 NEW different classes in different .h files in the same project? [/COLOR] | |
This program works unless I input 's' for marital status. Does anyone see my logic error? #include <iostream> #include <iomanip> using namespace std ; void getData ( int& numChild , double& grossSalary , double& penPay , char& maritalStat ) ; double taxAmount ( int& numChild , double& grossSalary , double& … | |
Is there an easy way to determine if a value is at all present in an array? In python you can type: [code]if value in list: do this[/code]But how could i do that in c++? I would like something like this: [code]if(value "is present in" array1) { do this; }[/code]Thanks … | |
hay i am reading strings from a file and I have to store the first six char into string array. I used this to get the file and the first six char input. while (getline(inFile, list )) { line.substr(0, 6) } there are also some blank lines for the first … | |
hay i really need some help here.First i need to know how to have a live chat with someone. Can someone please give me the direction on how to do that? | |
can anyone please help me to solve my program.....its saying write a program that determines your weight on another planet.The program should ask for the users, weight on earth. then present a menu of the other planet in pur solar system. the user should choose one of the planets from … | |
Can someone help me to start this assignment. i am totally lost on what needs to be done .. can someone provide me with some input ... would be great help .... not asking for someone to write me the code .. just tell me what needs to be done … | |
I read someware that DEV-C++ was either IDE or something else. But I don't remember where or what someething else is or how to get thier . Could someone Please help me with this confusion? Dick | |
hi,this sandy patel i have problem related to random number genre. ter . i don't understand from which is number from i have to start my program? and,upto witch number i have to go? The following steps describe the algorithm. Step 1: Enter an odd 4-digit integer seed number that … | |
Hey guys, I was hoping you could help me with a little problem I'm having. I'd like to create a priority queue from the STL of Node objects. Node is a class I've written myself. From what I understand, the STL uses the < (less than) operator (well, it uses … | |
what site could I get complete tutorials in making a program for symbian application?? your help is highly appreciated.. tnx... | |
I have a class , named Set,and I want to overload the operator - so I can get the difference between 2 Set object. [COLOR=Blue]i.e. A={1,2,3,4} , B={ 3,4,5,6} , A-B={1,2} [/COLOR] In header file I declared the operator function like this : [code] Set operator-(const Set & ) ; … | |
[B]Help with C++ project[/B] 59 Minutes Ago | [URL="http://www.daniweb.com/techtalkforums/reputation.php?p=343564"]Add to it_dude's Reputation[/URL] vbrep_register("343564") | [URL="http://www.daniweb.com/techtalkforums/report.php?p=343564"]Flag Bad Post[/URL] | #[URL="http://www.daniweb.com/techtalkforums/post343564-1.html"][B]1[/B][/URL] I am a beginning [URL="http://www.daniweb.com/techtalkforums/thread75095.html#"]programmer[/URL] and urgently need help with a project that requires me making a game consisting of a "gameboard". It looks something like this: 1 2 3 1 … | |
Hello, im having abit of a problem, I'm trying to compare two strings for matching characters, so far I have used the '[B]strpbrk[/B]' function but this is only returning the first instance of a match. Can someone please tell me what I could use to find all the matches. thank … | |
below is my program. I want to link the implementation file to main function. // implementation file // imp.cpp #include "myClass.hpp" #include <iostream> using namespace std; int display(void) { cout<<"hello"<<endl; } // main function //main.cpp #include "myClass.hpp" int main() { myClass sub; sub.display(); return 0; } // header file. //myClass.hpp … | |
I am trying to write a program to print a file to a printer. havent gotten fery far till I started to go ary, here is the listing so far. [code=c] // This Program is to print a file listing with line numbers to Printer. #include <stdlib.h> #include <stdio.h> #include … | |
i have a question Write a function that returns a pointer to the maximum value of an array of floating-point data: double* maximum(double a[], int a_size) If a_size is 0, return NULL. first of all i don't want the code for the entire program .. can someone tell me how … | |
[code] #include <iostream> // stream #include <cmath> // math functions #include <cctype> // toupper using namespace std; int main() { int jul1; int jul2; int diff; int jdate; int toupper; char ans = 'Y'; do { jul1 = jdate(); /* Term does not evaluate to a function */ jul2 = … | |
hey guys, could someone explain why you include string::size_type or string::npos? What do these do? | |
What I am looking to do is to provide the user (who runs my program) with a list of devices that they can pick from. You can do this with an Open File dialog if you click on "My Computer". What I want to know is how I can set … | |
My code dose not work its: *//Extract code1.exe to... *//Extract code2.exe to... *//Extract Intro.wav It wown't extract and if you wanted to know why the code is so short its because i did it all in 2 other code files. |
The End.