49,761 Topics

Member Avatar for
Member Avatar for MattyRobot

in openGL how can I make the left of the screen = 0 and the right to = 10 or somthing, and the top = 0 and the bottom = -10. because i dont like working with numbers only ranging from -1.0 to 1.0. i read [URL="http://www.opengl.org/resources/faq/technical/transformations.htm"]here[/URL] that the coordinate …

Member Avatar for mrnutty
0
82
Member Avatar for dophine

Hi all, I am not sure whether the member variables of singleton class should be protected for multhread since I just read some code from colleague. I think it should be.

Member Avatar for Tom Gunn
0
41
Member Avatar for jbp117

DNS_STATUSWINAPIDnsQuery_W( IN PCWSTR pszName, IN WORD wType, IN DWORD Options, IN PIP4_ARRAY aipServers OPTIONAL, IN OUT PDNS_RECORD * ppQueryResults OPTIONAL, IN OUT PVOID * pReserved OPTIONAL );In the Options what is the difference between DNS_QUERY_BYPASS_CACHE and DNS_QUERY_STANDARD? please explain me clearly

0
47
Member Avatar for vaati

Im nothing special, im just here for if I need help as I learn C++ :) Currently im at college doing construction and... Well, im not really sure its for me. I can do it well, Drawing, QSing.. All of it. I just dont have any real intrest anymore. So, …

Member Avatar for Azmatraz
0
126
Member Avatar for tkud

Can i use borland c++ 5.5 to design graphic programs? if yes, please reference a book that i can use(ebook please).

Member Avatar for Ancient Dragon
0
98
Member Avatar for geg13

Hello, I am looking for some help with a program i am writing. It is supposed to ask you for the name of an object and the 'create' said object. It ends with an error message saying that the hard drive was wiped. The only problem is that i can't …

Member Avatar for Phil++
0
108
Member Avatar for snapppy

Having trouble finishing the if else statment. Help would be so greatly appreciated. Do i need more const? Just confused all and any information is apprieciated Input if home use, commercial use, or industrial use Clear screen IF (home use) $5.00 plus 0.0005 per gallon used else if (commercial use) …

Member Avatar for Grn Xtrm
0
111
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
197
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
258
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
251
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
291
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
473
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
128
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
99
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
295
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
342
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
112
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
108

The End.