49,755 Topics
| |
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 … | |
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 && … | |
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] | |
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!!! | |
[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 … | |
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 >> … | |
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: … | |
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 … | |
[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] | |
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> … | |
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 … | |
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: … | |
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 … | |
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.... | |
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 | |
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() { … | |
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, … | |
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 - … | |
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 … | |
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 | |
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(); … | |
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? | |
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++. | |
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 | |
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 … | |
[code] main() { int a; a=message(); } message() { printf("\n C language"); } [/code] //what is the output and what return will return to a"; | |
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 … | |
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 … | |
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_; … | |
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> … |
The End.