49,756 Topics

Member Avatar for
Member Avatar for sfuo

Hi, I was wondering if anyone could help me figure out how to see who is connected to you when you are hosting a game on a specific port via c++. I know you can use netstat in cmd prompt and it shows a bunch of info of who you …

Member Avatar for lashatt2
0
132
Member Avatar for BlackPhoenix

[B]Title:[/B] WinSock connect() problem. Client thinks it is connected even when Server is down As of right now, my program incorrectly displays the status of the connecting socket. Because of the if statements seen below, even when the server is down, my friends can access a part of the program …

Member Avatar for lashatt2
0
2K
Member Avatar for josephkamanzi
Member Avatar for IFEEL

Hi, why would this not work? (example) [CODE] fileA.h: // declare the function void methodA(); fileA.cpp: // define the function void methodA(){}; fileX.cpp: include "fileA.h" // call it methodA(); <--linker error, can't find the symbol[/CODE] All my headers have the #ifndef guard. Thanks!

Member Avatar for IFEEL
0
96
Member Avatar for lashatt1

[code]#include <windows.h> #include <commctrl.h> #define IDD_DIALOG1 101 #define IDB_TREE 134 #define IDB_FILE 135 #define IDI_ICON1 136 #define IDC_TREE1 1059 #define IDC_DELETE 1061 #define IDC_ADDROOT 1062 #define IDC_CHILD 1063 #define IDC_DELALL 1065 /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class name into a …

-2
137
Member Avatar for TomMan

I am trying to compile this, but when I run g++, I get this: tom@griffindor:~/Projects/wermz$ make g++ -c -Wall -O3 main.cpp -o main.o g++ -c -Wall -O3 wermz.cpp -o wermz.o g++ -c -Wall -O3 logger.cpp -o logger.o g++ -c -Wall -O3 win_funcs.cpp -o win_funcs.o g++ -c -Wall -O3 lin_funcs.cpp -o …

Member Avatar for dkalita
0
257
Member Avatar for Umar Ali

[COLOR="Green"]Hello I have a problem with this code. I'm trying to connect to local dns server in order to get the ip of the hostname( that user would enter). For now, i'm just trying to connect to the local dns server, and this code gives me following 8 errors.. [COLOR="Red"]client.obj …

Member Avatar for Umar Ali
0
250
Member Avatar for midhunnirmal

hello, I am Midhun... I am doing M.C.A 5th semester... I am doing a project in c++ files with graphics.. Is it possible to link the output data to MS-ACCESS... THE output page first consist of [U]MENU[/U] about the program... I am doing the Miniproject titled [U]HOTEL MANAGEMENT [/U]where a …

1
40
Member Avatar for srmcsclab

// try out //Program - 5.4 # include <iostream.h> # include <conio.h> void main ( ) { int x[5] = {1,2,3,4,5}, y [5] = {5,4,3,2,1}, result [5] = { 0,0,0,0,0 }; int i= 0; while (i++ < 5) result [i] = x [i] - y [i]; clrscr ( ); cout …

Member Avatar for tomtetlaw
-3
289
Member Avatar for starboy

Dear. everybody. when i progress the developing some functions using mysql db with vc++2005, i have the following problems i connected mysqldb and i runned the query to insert some records to my table in the DB, but i cant success in inserting. my sample code is followed as : …

Member Avatar for starboy
0
465
Member Avatar for venkat arun

Hello, I am trying to make a compiler. Don't ask me why because I am making it for fun and experience. I have made a lexical analyser in c++ (I didn't use flex). I now want to make the parser for which I want to use Bison. But I am …

Member Avatar for Nick Evan
0
127
Member Avatar for Toila

I have two question: 1. how to read the string below into token ? 2. how to include the query into the token without having to reprint it? I have made a thread earlier but i have fixed and this version is shorter so i hope one of you will …

Member Avatar for Nick Evan
0
178
Member Avatar for orium

Hi, I'd like to know how to draw a rectangle using the following: Prompt the user to enter the character to use for drawing the rectangle and promt the user to enter the number of columns and the number of rows for the rectangle. Furthermore, the max for the rectangle …

Member Avatar for maverick420
0
1K
Member Avatar for enkay13

Hey guys I needed some help on this problem that we have to do for our introductory computer science class PROBLEM: Write a program that reads a series of numbers (doubles) from the user, then prints the mean and the range. • You do not know ahead of time how …

Member Avatar for Sky Diploma
0
98
Member Avatar for Nicholas_Roge

Would someone mind helping learn how to multi-thread? I know this is asking alot, so I apologize in advance.

Member Avatar for dkalita
0
74
Member Avatar for Doughnuts

Hello all, I am working on an assignment and came across a problem. The assignment is to take a file with integers and calculate the average. Here is my code: [CODE]#include <iostream> #include <fstream> #include <stdlib> #include <conio.h> double calculateAverage(double Number, double Sum); void trimSpaces(char Filename[]); int main() { ifstream …

Member Avatar for Doughnuts
0
117
Member Avatar for kingbarry90

hi.. im a freshmen IT student.. we hav a problem with my group here.. create a program that will output number to its equivalent word maximum number is 9000.. can sumbody help me using c++ 3.0... thanks

Member Avatar for VernonDozier
-5
233
Member Avatar for vaati

I just started learning C++ today, and after a making calculator I found [URL="http://www.dreamincode.net/forums/showtopic49569.htm"]here[/URL] and succeeding, with some help from a friend, hence the other name) in changing it and adding a subtraction function, I was wodering if there is any code I can use to accept only the characters …

Member Avatar for VernonDozier
0
341
Member Avatar for klackey19

So I'm working on a project for a class in which we have to create a parser for a made up grammar. The input is read from a file. When I use input that is in the grammar, the program works. For certain input not in the grammar such as …

Member Avatar for klackey19
1
533
Member Avatar for program900

Can you please give me some ideas on how to start, i have no clue!!!! Create a program that will test the random number generator by generating 10,000 random numbers and graphing their frequency in a histogram. This program should produce numbers from 1 to 100 and should display a …

Member Avatar for Ancient Dragon
0
87
Member Avatar for khimura

hi im doing a project for my class and cant figure out how to code some of it. for the main .cpp file heres the code: [CODE]#include <stdafx.h> #include "derivedClass.h" #include <iostream> #include <string> using namespace std; string firstName=""; string lastName=""; int num; void getName() { cout << "\nEnter employee's …

Member Avatar for Ancient Dragon
0
111
Member Avatar for Dewey1040

Write a new program called paginate.cc. It should work like this: Usage: paginate [--lines-per-page #] [--columns-per-page #] [--tabstop #] file [...] Required command line parsing: The options may be given in any order, but must all precede the file(s) to be printed. Parsing the argument should simply deposit the associated …

Member Avatar for Dewey1040
0
210
Member Avatar for Toila

The code below is failed to let me input the data twice because im only able to open the text file and read it once. I have included a part of the file. [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> #include <vector> #include <sstream> using namespace std; class Record …

Member Avatar for Ancient Dragon
0
107
Member Avatar for gokhanxyz

[CODE] cout<<"Enter the first string:"; string first_string; getline(cin,first_string); cout<<"Enter the second string:"; string second_string; getline(cin,second_string);[/CODE] when the code is as above the there is nothing read through the strings. [CODE]cout<<"Enter the first string:"; string first_string; getline(cin,first_string); getline(cin,first_string); cout<<"Enter the second string:"; string second_string; getline(cin,second_string); getline(cin,second_string);[/CODE] however, if the code is …

Member Avatar for Ancient Dragon
0
81
Member Avatar for zemly

Can someone give me the complete code of the following problem: [B]Problem Statement: Movie Rental Store [/B] You are required to write a program for Movie Rental Store. The basic idea is that user/reader will provide customer information, movie name, and number of days. Upon this information your program will …

Member Avatar for mikiurban
-4
437
Member Avatar for risilliant

Hi guys can someone PLEASE give me the gnu C++ int class. Im trying to create a wrapper class to wrap the int class.

0
102
Member Avatar for ImMoRtAl-

ok im makeing a web browser in c++ and im relitvly new to it can some one tell me the codez to put in for these things [CODE]Notify Icon open and close *HotKey* [/CODE] * = i want hot key to Send The Url To the webbrowser when i hit …

0
61
Member Avatar for eranga262154

Hi all, First I create a dynamic buffer and set all element to zero. Then add a int value first to the buffer. Then after that int value add a string to the buffer, actually at the end of int value. But seems my code overwrite each other. Here is …

Member Avatar for kia_barghi60
0
259
Member Avatar for Phil++

This might seem really, really cheeky (shout at me if you want) but if anyone has the time and wouldn't mind reading through my assignment, telling me if the information looks OK (it's only for a pass so not much detail is required) I'd be more than grateful. Thanks :) …

Member Avatar for Ancient Dragon
-1
118
Member Avatar for edwar

i've writtn a code in c and it works well, so i tried to write the same code but in c++, ofcourse i need to change some functions to cpp, i did that, but when i run the program i got the follow error : (a function-definition is not allowed …

Member Avatar for Ancient Dragon
0
92

The End.