49,761 Topics

Member Avatar for
Member Avatar for risa

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 …

Member Avatar for risa
0
3K
Member Avatar for danishbutt

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

Member Avatar for Nick Evan
-1
29
Member Avatar for QuantNeeds

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

Member Avatar for Duoas
0
3K
Member Avatar for QuantNeeds

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

Member Avatar for QuantNeeds
0
98
Member Avatar for titaniumdecoy

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 …

Member Avatar for Duoas
0
137
Member Avatar for hacker9801

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

Member Avatar for hacker9801
0
112
Member Avatar for asad12

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

Member Avatar for Narue
0
77
Member Avatar for camproject

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 …

Member Avatar for Duoas
0
79
Member Avatar for msupstream

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 …

Member Avatar for Narue
0
150
Member Avatar for anuizath2007

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 …

Member Avatar for stephen84s
0
106
Member Avatar for sarehu

What do you think of this? [url]http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml[/url]

Member Avatar for Nick Evan
1
146
Member Avatar for QuantNeeds

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

Member Avatar for QuantNeeds
0
74
Member Avatar for chetan1989

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 …

Member Avatar for chetan1989
0
77
Member Avatar for lil_panda

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]

Member Avatar for titaniumdecoy
0
101
Member Avatar for swingkitty

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 …

Member Avatar for swingkitty
0
85
Member Avatar for ferzan

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 `;' …

Member Avatar for ferzan
0
143
Member Avatar for gregorynoob

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 …

Member Avatar for gregorynoob
0
185
Member Avatar for Clockowl

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 …

Member Avatar for Clockowl
0
170
Member Avatar for butt_usman

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 …

Member Avatar for Salem
0
164
Member Avatar for camthalion95

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.

Member Avatar for camthalion95
0
192
Member Avatar for jk_bscomp

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 …

Member Avatar for Salem
0
128
Member Avatar for lahom

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

Member Avatar for Duoas
0
123
Member Avatar for titaniumdecoy

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 …

Member Avatar for vijayan121
0
113
Member Avatar for yifli

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 …

Member Avatar for vijayan121
0
121
Member Avatar for nokeekon

I'm using Microsoft Visual C++ 2008. How would i play a sound file? Either .wav, .mp3, or .midi hopefully.

Member Avatar for CoolGamer48
0
828
Member Avatar for driplet

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 …

Member Avatar for MrGobroski
0
127
Member Avatar for lahom
Member Avatar for Duoas
0
170
Member Avatar for death_oclock

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

Member Avatar for death_oclock
0
188
Member Avatar for camthalion95

I want to make a bot for Counter-Strike called Counter-Bot. Does anyone want to help? A disassembler would be good, too.

Member Avatar for hacker9801
0
206
Member Avatar for akeem923

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

Member Avatar for mitrmkar
0
92

The End.