49,756 Topics

Member Avatar for
Member Avatar for jan1024188

Hello, I edited a source code I found on a net and now it compiles well. I get a linker error. [CODE]1>Linking... 1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main 1>C:\Users\jan\Documents\Visual Studio 2005\Projects\YAST server console\Release\YAST server console.exe : fatal error LNK1120: 1 unresolved externals 1>Build log was saved at "file://c:\Users\jan\Documents\Visual …

Member Avatar for jan1024188
0
158
Member Avatar for smiles

Hi !!! I am doing a first C++ program, the way is getting the best choice between choices by comparison, here is my code [code] #include <iostream.h> #include <conio.h> #include <stdio.h> int main() { int i,n,m,k,j,tem,te; struct ways { char w[20]; } myArray[15],temp; int a[8]={0}; int b[8]={0}; textbackground(1); textcolor(15); cout …

Member Avatar for smiles
0
92
Member Avatar for jan1024188

Hello, I have made a "server" using winsocket. Its a console application and I already added wsock32.lib to liker. Here is error I get (by linker) [CODE]1>Linking... 1>server.obj : error LNK2019: unresolved external symbol __imp__mciSendStringA@16 referenced in function _main 1>server.obj : error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function …

Member Avatar for jan1024188
0
494
Member Avatar for superlox3

I have the following code for a slot simulator that I am trying to make; however the if statements don't seem to be working. Could someone please help me find out what is wrong? [code=cplusplus] // Slot Simulator.cpp : Defines the entry point for the console application. /* (%) Cherries.1 …

Member Avatar for Ancient Dragon
0
106
Member Avatar for aasi007onfire

i know some basic programming in C... now C++ is a necessity for me.... i dont have any problem with syntax... my problem is i want to know what all i must study to get accustomed to C++ i.e. the concepts that C++ has and C doesn't....

Member Avatar for vijayan121
0
165
Member Avatar for zandiago

Product expiration dates are often encoded using numbers and letters which encode the month day and year. A common technique is to use letters instead of numbers in the dates. Assume that ACME Bakers encodes the months using letters "A" through "L", each digit of the expiration date as the …

Member Avatar for zandiago
0
115
Member Avatar for Knightfall13x

i am using visual studios 8 and have added the Platform sdk include and library files to visual studios. and i am when i debug my programs i get the following errors. (the program is just a simple shell program) the code for it is as follows: [code=cplusplus] // include …

Member Avatar for Ancient Dragon
0
111
Member Avatar for zandiago

I need to write a C++ program that can be used to calculate the date of any Easter Sunday which can be computed as follows; Let X be the year for which it is desired to compute Easter Sunday. Let A be the remainder of the division of X by …

Member Avatar for zandiago
0
349
Member Avatar for Cleong

can someone give me some example code to develop a multitasking program consists 3 lines. lines one produce A and B where line 2 receive A and line 3 receive B... im new in C , can someone show me a example for reference.. TQ

Member Avatar for Ancient Dragon
0
27
Member Avatar for tomotao

everything seems to go fine except when i get to the search. either the program runs with a runtime error ,and it cannot be excuted. [code] /***************************************************** Program Filename : post.cpp Date : May 27, 2007 Purpose : NC code convert Input from : a cls data file Output to …

Member Avatar for tomotao
0
326
Member Avatar for hray35

I need help so bad. I don't understand enum and I have tried to take the code below and change it from the Switch to using an enum & an array to supposedly make it easier. I don't know how to take the user input that is string and put …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for quintoncoert

Is the common language runtime the only way to develop graphical user interfaces in c++? That had been what I thought until I read a gaming thread( how to develop board games in c++ ). A dll, which i have to use, refuses to work with the clr (i am …

Member Avatar for jan1024188
0
141
Member Avatar for kinggarden

Hi, everybody. The question is : if the user input a set of numbers, you don't know how long the set is, like 1, 2, 3, 4, 5, 5, 5, 6, 1, 3, -1, -12141, 123, -1...., you are asked to find the dumplicate numbers in this set. I mean …

Member Avatar for vijayan121
0
704
Member Avatar for amitmistry_petl
Member Avatar for fahima.s

How to make my Pocket PC Application run in background such that when some event occurs it displays a notification and if i click on it, the applcn window should show.

0
41
Member Avatar for Kashif

i want to calculate the running time of my program in C++ compilier TC300, please explain each point

Member Avatar for Kashif
0
78
Member Avatar for reedla

SO I am trying to write a program in C++ that take in Grades 1-5 and how many cans they collect. This program needs to add the cans they collect then print them. I am very new to C++ and I am better at writing Pseudocode than actual C++ languange …

Member Avatar for quintoncoert
0
105
Member Avatar for radskate360

I have to write a program for class and it is suppose to read in an unknown number of employee records from a text file and each employee string has 47 characters, which includes name, employee number and hours worked, rate, overtime, and a few other variables. The problem I …

Member Avatar for iamthwee
0
324
Member Avatar for Xenobius

Hi all, I already know 60% of the BASIC syntax of c++. I would like to experiment with creating a GUI application however I have no clue were to start. Could you kindly provide me with a name of a good book which focuses on Simple GUI creation and simple …

Member Avatar for phalaris_trip
0
134
Member Avatar for Ortal

i wrote this program to input 12 intigers (mustuse linked lists), sort it while its being inserted, then take the average, then take out the numbers that are greater then the average and make a new lists, then take a second list of 12 intigers, then lastly merge those 2 …

Member Avatar for thekashyap
0
147
Member Avatar for lotsofsloths

I am trying to make a program that already have a picture in it(picturebox) and finds the brightest pixel and labels them(label) I am programming in Microsoft Visual C++ Express edition if that helps at all

Member Avatar for Swapnil6623
0
133
Member Avatar for phalaris_trip

They seemed to make sense to me, until I read somewhere than an example of a constructor is [code] std::ifstream myFile("filename.txt"); [/code] ..the author went on to say that (obviously, in this example) they can be called after an object is instantiated, ie: [code] std::ifstream myFile; // some code here …

Member Avatar for phalaris_trip
0
108
Member Avatar for kylcrow

Ok I am wanting to [URL="http://www.daniweb.com/forums/thread81491.html#"]download[/URL] the newest version of the gcc compiler and emacs or gedit to run with PowerShell. I was hoping that someone could give me detailed instructions on how to do so. I am using Windows XP. I believe this is the right place to ask …

Member Avatar for kylcrow
0
147
Member Avatar for kylcrow

My work uses Powershell, I was wondering if someone can explain to me how to write c++ with it, if I even can, also what compiler to get for it, and where I can get it. Thanks -kylcrow

Member Avatar for kylcrow
0
91
Member Avatar for Covinus

im making a timer program. that when a user dont input something in a specific time. the program will go to another menu so far in my research. threads would be the solution to this. but in my current status right now as a c++ programmer. i dont think im …

Member Avatar for Salem
0
107
Member Avatar for JRM

I'm trying to solidify my understanding of some vector concepts. 1) interators are "smart access" in that they can keep track of the array position and size. 2) the access element operator [] is the "dumb" access to the vector. Also, I was experimenting with ways to dump the contents …

Member Avatar for Narue
0
226
Member Avatar for nottoshabi

Guys I'm trying to see if I can use DEV to write plugins (DLL) for my animation program Maya. I'm having a little bit of trouble getting started. Once I create the DLL project I tried doing a build to see what I would get just with on empty project …

Member Avatar for Killer_Typo
0
93
Member Avatar for bops

How can I execute a command like for example using system(); but execute so the program does not need to wait until the function returns before it continues. Also when executing a command using system(); can you make it so that the console window does not pop up onto the …

Member Avatar for thekashyap
0
2K
Member Avatar for doraemon

I'm studying C++ beginner book for a while and now I'm learning a function call by reference. I understand how but I don't understand why.... I solved the problem which is in my book. Problem: Create a void function called round() that rounds the value of its double argument to …

Member Avatar for doraemon
0
132
Member Avatar for bala24

Hi guys and Gals, Have some trouble digesting some facts about Casting in C++. 1). Why can't we use a static_cast for safe downcasting on a polymorphic class? 2).Consider this snippet.. [code] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] A {};[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] B { public: B (A a) {} };[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]A a;[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]B b=a;[/COLOR] [/COLOR][/COLOR][/code] [COLOR=green]How …

Member Avatar for thekashyap
0
114

The End.