49,755 Topics

Member Avatar for
Member Avatar for rumala13

question is that In computer networking, a Media Access Control address (MAC address) is a unique identifier assigned to most network adapters or network interface cards (NICs) by the manufacturer for identification, and used in the Media Access Control protocol sub-layer. The original IEEE 802 MAC address comes from the …

Member Avatar for Ancient Dragon
-1
110
Member Avatar for Robert1995

Hello , I have tried several ideas , times and ways to do this but all fail on the site's test , could any1 give me an idea or something [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=98&page=show_problem&problem=1415"]Problem[/URL] [CODE] #include <iostream> using namespace std; long int q,n,i,point,casenr; long int marbles[10000]; int main (){ while(1==1){ cin>>n>>q;casenr++; if(n==0 && …

Member Avatar for Robert1995
0
125
Member Avatar for vbx_wx

Hi all,i am using function COpyFile() to copy a file to windows directory,but the function return error code 5: [CODE] char win_path[MAX_PATH]; char reg[MAX_PATH]; GetModuleFileName(NULL , reg ,MAX_PATH); GetWindowsDirectory(win_path , MAX_PATH); bool x = CopyFile(reg , win_path , true); if(!x) cout << GetLastError() << endl; [/CODE]

Member Avatar for vbx_wx
0
108
Member Avatar for yaoc1987

1>c:\documents and settings\joe\desktop\spring 2010\csc 212\hw\hw #5\rec_fun_test.cpp(25) : error C2065: 'outs' : undeclared identifier i keep getting this from one of my codes it is from a prototype void binary_print(ostream& outs, unsigned int n); is there a #include needed for that or something???? please help!!!

Member Avatar for vbx_wx
0
134
Member Avatar for des6043

[CODE]#include <iostream.h> #include <conio.h> int main() create s push (s, '#'); while (not end of infix input) { ch = get char; if (ch is an operand) add ch to postfix expression; if (ch is a '(') push (s, ch); if (ch is a ')') { pop (s); while (ch …

Member Avatar for des6043
0
96
Member Avatar for gregarion

Hey guys , i would like to ask some question regarding checking if a string is all integer. First off, i wrote a program to check if the value i enter contains strings. [CODE]string str; int n = 0 ; cout << "Enter the letter please "<< endl; cin >> …

Member Avatar for Robert1995
0
180
Member Avatar for alexRivera

having trouble with the print and the main [CODE] #include <fstream> #include <iostream> using namespace std; struct Item { int value; Item *next; }; class Queue { protected: Item *fill; Item * remove; public: void addingtoqueue(int); int takeaway(void); bool empty (void); Queue (void); }; class Merge: public Queue { protected: …

Member Avatar for alexRivera
0
124
Member Avatar for 2koolguy

Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student Worker Student_worker [COLOR="Green"]Write a program that asks user to input information (student, worker etc) and creates a list of persons. Give …

Member Avatar for WaltP
0
93
Member Avatar for techstu

[QUOTE]hi all...i have just started to work in visula c++ and i have to create a program to read a txt file...but as i am debugging my program, it is giving an error on line[/QUOTE] [CODE]#include<fstream.h>[/CODE]

Member Avatar for techstu
0
83
Member Avatar for bullsfan127

i have to write a program that takes input from the user and displays a simulated check we have to write the dollar amount in words and i cant figure out how to go about doing that. this is my code so far. [CODE]//******************************************************* // Include Files //******************************************************* #include<iostream> #include<iomanip> …

Member Avatar for vmanes
0
190
Member Avatar for chinnaedu

Hello all, i have a small problem with my application and i am stuck now.... i have data coming on a particular port and i need to trasnsfer that particular data that i received to another port on a different machine... The data that i receive is over udp and …

Member Avatar for chinnaedu
0
155
Member Avatar for xclusv-aj

Hi, Im using Dev-C++ for my program although i have fixed most of the errors i still have a few errors which i dont know how to fix and was looking for some help with them. The errors which i am getting are: [CODE]Compiler: Default compiler 5:C:\Documents and Settings\XclusV\Desktop\MY PROGRAMMING\/cruise.h: …

Member Avatar for Ancient Dragon
0
86
Member Avatar for virgin199

hello how are you ?? I sing here because i know that you will help me.:) I have a difficult:( assignment and I have to give it to the teacher tomorrow at 9 am, It’s about the class and it says A. Some of the characteristics of a book are …

Member Avatar for jephthah
-2
560
Member Avatar for deanus

Hi I've just started out in c++, can anyone tell me how to use pointers which hold addresses of objects ? How do you access the object fields from this type of pointer, especially strings (array of chars)... I'm using a Dev c++ 4.9.9.2 compiler....

Member Avatar for deanus
0
106
Member Avatar for tennis

I am not quite sure if I understand the meaning of the question very well I am thinking the answer is yes since we can use dynamic binding? Is this the right answer? Thanks

Member Avatar for Narue
0
78
Member Avatar for d883956

Im tryna get my code (as seen bellow) to print both the variable "jax" with two decimal places, and the full value opf the variable "jax" so the out put should be: [B]8712.65 8712.654[/B] [b]How do i do this? [/b] [code]#include <iostream> #include <iomanip> using namespace std; int main() { …

Member Avatar for Narue
0
121
Member Avatar for Lukezzz

Hello, I am opening a new Form in my application and want to pass along a variable to Form2. I think I am pass along it correctly but are not sure how to receive it in Form2. How will that be possible ? [code] String^ ForwardVariable; private: System::Void button1_Click(System::Object^ sender, …

Member Avatar for Lukezzz
0
178
Member Avatar for wittykitty

I have been trying to figure out for the life of me what I am doing wrong here, and I am coming up blank. My operator is returning the correct value in temp - as you can see highlighted in red, however, when I use the operator in main - …

Member Avatar for wittykitty
0
114
Member Avatar for CodyOebel

So far no one has been able to tell me why this code is not working, or what I need to do to THIS code to make it work. Can someone simply show using MY code below where the problem is, and why it's not working properly? Problem: I am …

Member Avatar for n.cramp
0
2K
Member Avatar for roin14

using switch and if ... else statements, write the two grading programs. consider the following grading system; 70-100 A 60-69 B 50-59 C 40-49 D 0-39 F

Member Avatar for Robert1995
0
114
Member Avatar for johndoe444

In the following code: [CODE]#include <iostream.h> class Base { public: Base(){ cout<<"Constructor: Base"<<endl;} ~Base(){ cout<<"Destructor : Base"<<endl;} }; class Derived: public Base { //Doing a lot of jobs by extending the functionality public: Derived(){ cout<<"Constructor: Derived"<<endl;} ~Derived(){ cout<<"Destructor : Derived"<<endl;} > }; void main() { Base *Var = new Derived(); …

Member Avatar for Narue
0
163
Member Avatar for johndoe444

In some c++ source code I wrote this: [CODE]#include <iostream.h> using namespace std; [/CODE] [CODE]error: iostream.h: No such file or directory[/CODE] I compiled it using g++. But when I changed it to #include <iostream> it started working. Why?

Member Avatar for craig_ka
0
141
Member Avatar for johndoe444

Does endl do the same thing as %n in java and print the platform dependent end of line ('\n', \n\r' or '\r')? If not then is there anything similar in c++.

Member Avatar for Narue
0
72
Member Avatar for prade

hii i just downloaded a dev c++ compiler...& wrote the basic hello world program...whenever i try to compile ..my quickheal antivirus deletes it as a trojan...please help..i reinstalled it but gives the same result

Member Avatar for Ancient Dragon
0
167
Member Avatar for theABCasian

hey everyone ok so i have reached another road block any pointers are much appreciated the program will not compile due to eclipse not liking the int Password::passwordNumber(int i); int Password::passwordCapLetter(int i); in the .h any ideas demp.cpp [CODE] /* File Name: Demo.cpp Chapter No. 12 - Exercise No. 12 …

Member Avatar for mitrmkar
0
171
Member Avatar for sejalpastagia

[code] main() { int a; a=message(); } message() { printf("\n C language"); } [/code] //what is the output and what return will return to a";

Member Avatar for Ancient Dragon
-1
105
Member Avatar for Ginkan

Hi all, Im new to this forum and also very new to C++, Im tring to write something with DirectX, but once I use DirectDrawCreateEX(), VC++ give me: --> error C3861: 'DirectDrawCreateEX': identifier not found My environment is Windows 7, VC++ 2008 Express Edition, Installed DirectX SDK FEB 2010, Any …

Member Avatar for kenji
0
81
Member Avatar for natomiast

Hello, I have to do simple program which will be work like Deterministic Finite-state Automaton. DFS will be accept some language describe by regular expression (e.g. (a + b)*). Program will read word from text file and analyse it. If word is acceptable program will give info to user. I …

Member Avatar for donaldw
0
127
Member Avatar for ischuldt

I wrote this distructor one way, but the person who code reviewed it seems to think it's better and more readable the other way. I disagree. It's probably more a matter of preference, but what do you think... [code] RfPrinter::~RfPrinter() { if (!hub_.empty() && !name_.empty()) { clearbuf(rfunitlock); rul_hub = hub_; …

Member Avatar for Fbody
0
133
Member Avatar for allaboutdrew

I am recently new to C++ and I wondered if someone could show me how to modify my program below. I want the program to test if there is more than 1 day that has the highest rainfall and susequently to output those corresponding days. Than you :) [CODE]#include <iostream> …

Member Avatar for gnarlyskim
0
119

The End.