49,761 Topics
| |
How can i demonstrate that inline functions have internal linkage ? | |
Firstly, Here's my code running in VS 2010 [CODE=c] #include <iostream> #include <fstream> #include <string> #include <list> using namespace std; class Student { friend ostream& operator<<(ostream&, Student); friend istream& operator>> (istream&, Student&); private: int stuId; string name; int gpa; public: Student(int, string, int); int getStudId(); }; ostream& operator<<(ostream& out, Student … | |
what is marco in c++ i have no idea about this plz give simple answer (im new to c++) thanx :) | |
Write a function whose prototype is string NumberToName(int x); that returns the string of english name of each digit of number x. Using this function, write a main program that reads a positive integer number and prints the english name of each digit of that number in a single line … | |
Hi every one . in default cursor move from left to right how can i change direction of cursor in my program int main() { char tile[NO_OF_COLS][NO_OF_ROWS]; char ch1,ch2; int counter = 0; system("MODE CON:COLS=80 LINES=50"); gotoxy(35,25); do { cout <<"#"; Sleep(200); ++counter; }while(counter <=100); | |
I currently have two C++ programs. Program1 takes some input and prints to screen a float. I can get Program2 to call Program1 using something like: system("./program1 input"); Currently, Program1's output goes to screen. Is it possible for Program2 to read Program1's output and use it? The only way I … | |
For whatever reason, I can't figure this out. I'm getting this error: [quote]error C2082: redefinition of formal parameter 'user' [/quote] In this code: [code=c++] #pragma once #include "Standard Libs.h" #include "Ability.h" #include "Spell.h" #include "Item.h" class Adventurer { private: string name; int level; int xp; int gold; int attack; int … | |
Hi, total beginner here, trying to learn at home. Just thought i'd get that in. if i have a number eg 123 trying to figure out a way of calculating all the possible cominations 123 132 213 231 312 321 can do it with pencil and paper but don't know … | |
Hi, Can cany one explain me virtual table architecture & functionality internally? | |
I am Working on Conecting to a database in windos forms C++. I use MVC++. here is a link to my DB file so people can see what i have tried to do in the DB. [URL="http://www.mediafire.com/?yfr52oqcknakk9g"]http://www.mediafire.com/?yfr52oqcknakk9g[/URL] you need access to see this. i have finaly figured out how to … | |
Hi folks, I am writing an application in C, but I have the OOP functionality that C++ provides. (i.e., I can only use C library functions). I have a function as follows in TSL1.cpp: [CODE] void TSL1_ExecuteTest (char *sCmdInt[]) /******************************************************************************* Name: TSL1_ExecuteTest Description: This function executes tests from current TSL1 … | |
i want code of diomand program..you know a code that give us this: 1 123 12345 123 1 | |
Hello, I wanna write an anticheat for a game. So it seems that the cheat itself is editing the memory (for example movement speed). So what I'm gonna do is make my anticheat tool to scan the memory offset and compare the value in the memory to the normal value … | |
Hi there. I am just learning vc++ and it's all new to me, so I need a bit of help. This could be a daft question, but where do i put my user code to initialize a USB port? I can see where the button click functions are, but where … | |
My friend and I were making a pac man console game in C++, and we can't seem to get the AI we wrote for our ghosts to work properly [code] #include <iostream> #include <Windows.h> using namespace std; struct Player { int x, y; Player() { x = -1; y = … | |
if (map[xPos][yPos] == map[xTPos][yTPos]) this works and does what I want it to do. But when I increase the traps. Multiple traps "5" display on the grid but only the last one (assuming) that is created will trigger my if statement. I was trying to add map(i)[xTPos][yTPos] but I'm having … | |
Hello All, I have the following doubt: Currently both the ipv4/ipv6 headers are such that they donot result in any padding. So it allows us to typecast the input stream to the ipv4/ipv6 header c structures. But don't you feel that this code is error prone ? [CODE]int Comp::getfield(uint8* pInPktStream) … | |
Please suggest me from where I can get the links and free tutorials for c++ . | |
Hi, i just finished my program but i am having problems on how i will create a setup that will install my program to another system. i use both microsoft visual studio 2008, and 2005. i will appreciate it if any one can help me. thanks | |
I seem to be having a few problems with pointers at the moment. At the moment I have a char pointer as a parameter in one class. The function is being used in another class and is being used to get an input file. [CODE] ClassA* CAptr = new ClassA; … | |
I need a source code of the following program in object oriented programming language.. (turbo c) write program that will demand password for three time. after that user can access the data of student of a class by entering name or roll number of the student Suppose a class has … | |
hellow!! i mworking in c++ managed on vsual studio c++ 2010 express edition but when i get the text from a text zone and use it in an other traitement it's gve me tis error: de 'System::String ^' en 'System::String ^[256]' nd there is my code: private: System::Void BGENER_Click(System::Object^ sender, … | |
Hi, Please help me spot where I go wrong. I cannot understand why the error. The Code with error and full error are below. Thanks Error:[COLOR="Red"] loaddll.cpp:6: error: invalid conversion from 'void*' to 'void (*)(wxString)'[/COLOR] lines 5, 6 and 7 [CODE=C++]typedef void (*helloSteve)(wxString);//takes string and Shows it! helloSteve myFunc = … | |
Hello. I'm having a bit of trouble with my programming. I'm giving a signal to my board and it will detect and display the maximum and minimum point of the signal wave. However, I'm not really sure if I wrote my codes correctly. Also, I'm getting this error : "operator … | |
I have a question about how to clean up certain thing, or if it's even necessary at all. Say I have a vector of objects. These objects have members that are pointers. When I remove one of these objects from the vector will everything be cleaned up automatically? Or do … | |
If I use classes, will this reduce my lines of code? Is this a good way? Should I use a header for certain functions? Thanks ( Just wondering, thanks [CODE]/* Ask how many sides a shape has, go to that shape, ask for values to do questions about the shape … | |
a1x1 + b1x2 + c1x3 = d1 a2x1 + b2x2 + c2x3 = d2 a3x1 + b3x2 + c3x3 = d3 create a c++ program that will accept the values for a,b,c,d and determine the values for x1, x2, x3. Display the values for x1, x2, x3... need help now!!!! … | |
In my code, I need to enhance the List class to throw an exception whenever an error occurs. I need to use exception specifications for all functions. I know it would be something like if .... throw (OutOfRangeException) I am just not sure where and how to incorporate this. Please … | |
I've been working with linked list and i'm currently trying to make my copyList template function work. It should return the head of the new list. Could someone give me some advice on how to fix it, currently i get no output when i try to print the copied list. … | |
if i have two strings say: string str1,str2; then how can i compare them by using strcmp function? |
The End.