49,761 Topics
| |
String functions like strcpy,strcat,itoa...shows warning as "declared deprecated" in Visual Studio 8.0 instead it suggests to use functions which are enhanced secure versions of the same such as strcpy_s,strcat_s,_itoa_s.....using this in my file removes those warnings but i am using this same file in visual studio 6.0 here it gives … | |
Friends i have the problem in plotting the graphs using c++ or Visual C Plz Help Me and Send me the Comlete code of programs | |
Help I am having the following error: error C2446: '==' : no conversion from 'int' to 'char *' When I tried the following it ignores my counter and I am not sure why. This is a serious problem because it creates and infinite loop that keeps printing. [code] if(char(seating[openSeat + … | |
Please help – I am having either some logic issues or formatting issues: My code is the following: [code] #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; using std::setprecision; #include <cstdlib> // contains prototypes for functions srand and rand using std::rand; using std::srand; #include <ctime> // … | |
The default copy constructor should work for the Polynomial class below because it does not contain any dynamic data types. However, when I create a new Polynomial via the copy constructor, it prints 0 for the value of each coefficient. How can I fix this? [CODE]#include <iostream> #include <vector> class … | |
Hey. What's better, i++ or ++i? Well ++i returns the value after it's incremented, but which is faster? (not necessarily for int, user-defined types with operator++ overloaded too.) | |
#include<iostream> using namespace std; int main() { int i,N=5,j; for (i=1; i<=N; i++) { for (j=1; j<= N-i; j++) { cout << " "; } for (j=1; j<=2*i-1; j++) { cout << j ; } cout << endl; } return 0; } the display i want is 1 121 12321 … | |
i have a dialog based application with a combo box that stores the names of a set of cameras.what i want to do is, play the video from the corresponding camera when i select a name from the combo box.the video has to be played in a vlc player.i use … | |
Hi, I have done some reading and searching without finding how subclasses relate to friend classes. Here is a little scenario: [code] class Dog; class Cat{ public: int getAge(){return age}; protected: friend class Dog; int age; }; class Dog{ public: Boolean foo(){return True}; protected: friend class Cat; }; class Puppy … | |
Does anyone know how to solve this question............ An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate number and the ballot paper.Write a programme to read the ballots and count the votes cast for each candidate using an array variable … | |
What do you think of this? [url]http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml[/url] | |
Is it possible to store * and # in an array? I thought I could do this through the data type char. On top of that I was wondering if I could check the array elements to see if the element equaled that character, but I don't think that's possible. … | |
I have got a C++ program that accepts a string and gives output as a string now what I need do is take the string input from the textbox on a webpage and then submit the result to a database? Submitting to database is a later case but first tell … | |
How would I go about deleting all '' characters from a string? [B]I am using the command line to pass parameters with parenthesis, so anyone who uses my program will need to use '\(', '\), '\[', '\]', etc.[/B] | |
I have an assignment for my class that asks to modify my previous assignment to include a function for both A and B. The function for A should have the quantity of numbers passed in as a parameter and needs to return the largest number. The function for B should … | |
Hello, I'm embarrassed for asking this question but for the life of me I cannot find an answer. This ultra simple code is giving this error as well as any other function that I'm trying to write. [CODE]a function-definition is not allowed here before '{' token expected `,' or `;' … | |
a mouse is trapped in a labyrinth.. and he has to find the cheese! the input is W and H (height and width), and a graph like this one: [CODE] ##...# C###.. ...... .####. .....M [/CODE] i'm supposed to calculate the shortest amount of steps he needs to make to … | |
Hey guys, I come over from C, wanting to learn C++. I have a nice little book but figured I could use a project to get me going. So I magicly crafted code, and ran into this problem: [icode]C:\Code\Rapture\World.h|7|error: ISO C++ forbids declaration of `Breeture' with no type|[/icode] With this … | |
Hello! All Well its a problem i have no idea about it ... check dis : i created a small graphics program.. like which draw a circle on screen.. it works very fine.. on other hand when i shift that code into my bigger program where i have used structers … | |
Menu.RC [CODE]POPUP "File" } MENUITEM "New", CM_NEW MENUITEM SEPERATOR MENUITEM "Save", CM_SAVE MENUITEM "Save As", CM_SAVEAS MENUITEM SEPERATOR MENUITEM "Exit", CM_EXIT { }[/CODE] I have another file with the definitions to CM_NEW, Etc. | |
Hello everyone!!! I just want to ask if is it possible to create a chat program that send and receive message, audio and video for Local Area Network... I want to create a program similar to yahoo messenger that includes the future of voice and video but the difference is … | |
hi i have an icon with atransparent background that i want to assign to an MFC dialog based application but the problem is that this icon appears to have a white background .... how to make it transparent ...... pleeease help | |
I have a template function as follows: template <typename T> int my_func(T& arg) T is expected to be of type map<T1, T2>. T1 is expected to be of a basic type (int, long, etc.) and T2 is expected to be of type vector<T1>/list<T1>/etc. I want to iterate over the contents … | |
The following code is a minimal example of what I am trying to do. When I compiled it with Visual C++ 2008 Express, I got the error: main.cpp(62) : error C2677: binary '*' : no global operator found which takes type 'Point<T>' (or there is no acceptable conversion) 1> with … | |
I'm using Microsoft Visual C++ 2008. How would i play a sound file? Either .wav, .mp3, or .midi hopefully. | |
Hi there: I defined several variables and assigned them values (nonzero) on a form. But I always got zero values of them when I cite them from another form. I am using BCB and never met this problem before even when I was doing the similar things. Can somebody give … | |
pleeeeeease can i get the full file path from specified file name (.exe) an arbitrary file (.exe) | |
I need to find the number of elements in an array passed into a function. The problem is in this case, sizeof() returns the size of the pointer itself. It only does this when passed through to a function. So here is that function: [CODE=c++] bool matchWord(TWORD *wordList, TWORD *word, … | |
I want to make a bot for Counter-Strike called Counter-Bot. Does anyone want to help? A disassembler would be good, too. | |
Hello all. I am new to the board and hope to build great relationships with other forum members. I am working on a program for class that is supposed to show the GCD. I used a text editor to make it, but when i put it in Visual express 2008, … |
The End.