49,761 Topics

Member Avatar for
Member Avatar for revenge2

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 …

Member Avatar for jbennet
0
162
Member Avatar for nandakishore

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 …

Member Avatar for Salem
0
199
Member Avatar for kpack08
Member Avatar for Salem
0
207
Member Avatar for katzumi_r

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 …

Member Avatar for vijayan121
0
152
Member Avatar for winbatch

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. …

Member Avatar for vijayan121
0
350
Member Avatar for rapperhuj

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 …

Member Avatar for Sturm
0
78
Member Avatar for avi_new

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) : …

Member Avatar for Ancient Dragon
0
188
Member Avatar for revenge2

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?

Member Avatar for iamthwee
0
109
Member Avatar for Zuecafajm

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 …

Member Avatar for ~s.o.s~
0
92
Member Avatar for sirkraven

[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]

Member Avatar for John A
0
103
Member Avatar for Duki

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& …

Member Avatar for Duki
0
120
Member Avatar for Matt Tacular

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 …

Member Avatar for Infarction
0
99
Member Avatar for kendell

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 …

Member Avatar for Lerner
0
92
Member Avatar for kendell

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?

Member Avatar for Lerner
0
94
Member Avatar for tajkera

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 …

Member Avatar for Salem
-1
67
Member Avatar for raj157

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 …

Member Avatar for vijayan121
0
284
Member Avatar for CRD

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

Member Avatar for GreenDay2001
0
79
Member Avatar for civil1

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 …

Member Avatar for civil1
0
209
Member Avatar for pjakubo86

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 …

Member Avatar for vijayan121
0
397
Member Avatar for squinx22

what site could I get complete tutorials in making a program for symbian application?? your help is highly appreciated.. tnx...

Member Avatar for vijayan121
0
97
Member Avatar for Eko

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 & ) ; …

Member Avatar for GreenDay2001
0
111
Member Avatar for it_dude

[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 …

Member Avatar for thekashyap
0
90
Member Avatar for Dado++

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 …

Member Avatar for Day Brown
0
121
Member Avatar for squinx22

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 …

Member Avatar for John A
0
193
Member Avatar for CRD

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 …

Member Avatar for WaltP
0
211
Member Avatar for raj157

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 …

Member Avatar for raj157
0
104
Member Avatar for youngone

[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 = …

Member Avatar for John A
0
197
Member Avatar for Duki

hey guys, could someone explain why you include string::size_type or string::npos? What do these do?

Member Avatar for Rashakil Fol
1
13K
Member Avatar for complete

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 …

Member Avatar for Ancient Dragon
0
101
Member Avatar for example303

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.

Member Avatar for John A
0
86

The End.