49,761 Topics
| |
i want to clear a doubt... please check out the following codes.. [CODE]int function (int p[]) { //sm code } [/CODE] another style is : [CODE] int function (int *p) { // sm code }[/CODE] here i am passing an array to both the functions...and one receives it through p[] … | |
Hello, I searched most of yesterday online for an answer to this question and was unsuccessful. please help. What I am trying to do, I have an emulator.exe application which is totally external from any project of my own. I want to create a control (custom control, activex control???) on … | |
Hey, Any Idea why this section of code would give me these linker errors using Visual Studio 05 in a console application and using winsock2.h: error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "void __cdecl CloseDevice(void)" (?CloseDevice@@YAXXZ) error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "void __cdecl CloseDevice(void)" … | |
i am getting error like " [Linker error] undefined reference to `WNetOpenEnumA@20' " How i can solve it? | |
I am having a problem in knowing where to start with my project that has to ask a user to enter a string of characters.. you can limit the size of characters and u decript those characters u can print them backward or u can change them into numbers depends … | |
If I want to make a method to return an object's type, what type should the method return? A string, the object itself? Any suggestions? | |
im starting a sub proceedure to test program once its worked through earlier processes. however to test the program, i have copied and pasted pieces of the program before hand, and because ive used the same variables they need to be declared again. but since things are stored in these … | |
Hi I want to make a pure c++ application which is used to retrieve ip address of all connected users of LAN(local area network). I am using Dev c++ IDE. please any buddy have any idea to solve this problem? Thanks in advance! | |
Hi, i'm new in C++ i was asking to get an input from user, eg. 12 -8 7/8 6 D. Valid input is type of whole number and fraction, and D marking end of input. i'm doing the input validation. if there is an error input, eg. 4 92 1/2 … | |
I apologize if this does not sound clear. I will show the assignment and what the output is supposed to look like along with the code that I have so far.....My problem is pretty much typing this xxx to exit....I have always used numbers for this so a string would … | |
I'm a student enrolled in a University beginners programming course. The problem is: [B]Write a program capable of using month and day of a given date to calculate the number of days from january 1 that it represents. Make the program capable of computing values for as many as 20 … | |
Hello:) I have a problem that keeps repeating. I work in Visual C++ 6, and i deleted a class, i erased it from program files/microsoft visual studio/my projects/bla bla.. and i deleted the code in it(the header and cpp file), and it dissapeared from the class tree in my workspace, … | |
I wonder how it is possible to open 2 instances at the same time of a Form. Normally when you ex press a button to open another form, one instance of that form is opened. If I put these 2 lines inside a buttoncontrol, first one instance is opened and … | |
I HAVE AN ASSIGNEMENT IN WHICH I GET STUDENT DATA AND SAVE IT A SEPARATE TEXT FILE , THE MAIN PROBLEM IS THAT IT TAKE ALL THE VALUES BUT DONOT STORE VALUE OF SEM,ADD-NO AND BATCH . KINDLY PLEASE HELP ME . Coding is :- [code=cpp]#include<iostream.h> #include<conio.h> #include<fstream.h> struct stud … | |
I was wondering if anyone could help me with this little problem. What I am actually trying to do is implement 'picking' into a game I'm doing, but I'm actually stuck with some of the maths, thats why this isn't in the game forum. I'm trying to work out a … | |
hello. i have a question. i am quite new to visual c++ programming, and i was wondering how can i use glut in a mfc appwizard profect, and not only in a win32 application. for example i need to draw a sphere and i would like to use the single … | |
I am getting a whole bunch of these: warning C4996: 'vsprintf' was declared deprecated see declaration of 'vsprintf' Message: 'This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. I put this at the top of my code: #define _CRT_SECURE_NO_DEPRECATE but nothing changed, I … | |
Take (10) integers, store them in 1D array then do the following: 1. find the max and min number of them 2. find the average 3. sort these numbers in ascending squence the first two questions are quite easy but my problem is in sorting those numbers...anyways, i came up … | |
For some reason when I compile my code the hypotenuse returns to just 0 and it returns an integer and not a double and was wanting to know if anyone had any suggestions........ [code=c++] #include <iostream> #include <cmath> using namespace std; double Calculate_Hypotenuse(int length_one, int length_two); int main() { int … | |
I have been trying to figure something out ever since I started doing C++, My goal is to code my own game and coming to think of that.... I have read many articles about how U go about on doing that and as far as I have read C++ is … | |
can anyone please point out what is wrong with my seeForward function? My program run fine with the option 2 ... however,, seeforward isn't working .... thx [code=cpp] # include "Name.h" struct Node { Name name; Node *link; }; typedef Node* NodePtr; void head_insert(NodePtr& head, Name* inName); void output(NodePtr head); … | |
Hello everyone, I am making a program which acts like a library system. There are two classes: Book and List. The List class contains all the linked list information; [CODE] struct ListNode { ListItemType item; ListNode *Next; };[/CODE] Now, my problem is in the Book class file (Book.cc). I have … | |
After looking at compile errors because I was not overriding this function ( although being convinced that I was) I have a query for all you C++ buffs in the audiance. What does the ^ do in the following line. [CODE] virtual System::Object ^ Clone(void) override; [/CODE] I know this … | |
Hello everyone, I am a new memeber, and I need help in c++ code. Actually I had a code that need kd tree data structure in order to find the nearest neighbour, so I found a kd tree that had been written in c++ as class and there is a … | |
hello everybody, i'm niitian:) have been familiar with this community for quite some time, it has help me solve quite some problems, though now i think it's time i join too:) i'm a beginner at c++, don't really think it's way hard, but i do have alot of unanswered questions. … | |
Just when i thought this class could not get any harder i get this assignment. The last few lectures i have watched in my class on pointers have gotten me totally confused. Now i have this assignment due in 6 days that i seriously do not even know how to … | |
Hi All, This alam from delhi and asking for some confusion which i have. actually i want to make my career as a C,C++ developer in Linux and Unix platform . friends i am totally new in this field...i know basic concept of C, C++ and Unix system.... So, what … | |
Hello All, Its me again with my quirky questions. I am writing a program for homework and the idea is to sort the top 3 runners by their finishing time. Also a requirement of the homework is to gather the names of the runners along side their times. The user … | |
I have all the way to this part of displaying the board and now I need help on how to play it. I don't want someone to just give me the code, I want to learn what to do. Thanks very much. p.s.= using array [CODE]#include <iostream> using namespace std; … | |
Hello everyone, I am VERY new to programming. I have downloaded and installed the Dev-C++ compiler and I am using it with the C++ for dummies book and when I try to compile my simple "This is my computer talking" program, I come up with 70 library based errors. Is … |
The End.