49,766 Topics
![]() | |
[B]i hav a task to make a program,,the program is like this make a video rental system. instead of putting a struct use a importing and provide documentation for the video rentalsystem .Aside from this code provide explanation about this program & how to use it..pls can u help me..[/B] | |
Hi guys, I'm trying to solve this interview question: "Write a function which, given n, prints all well-ordered integers of n digits. A well ordered number is one where the value of the i-th digit is less than the value of the i+1 digit." I've written the code where if … | |
I would like to automatize for example Java Installer to install Java without any additional user input. When I run Java Installer.exe I see following picture (attached, 100.png) I would like my program (whatever, console or something else - I don't know what) to automatically press Install button and bring … | |
I'm writing a pennies game in which a player and the computer take coins from a pile until only one remains. The trouble is I keep getting an error saying "warning C4700: uninitialized local variable 'nuCoins' used" though I thought after the user input a value it would be. Any … | |
[code=c] #include<iostream.h> #include<conio.h> #include<string.h> void main() { char s1[30],d[30]; int l; clrscr(); cout<<"Enter your name: \n"; cin>>s1; cout<<s1<<endl; l=strlen(s1); cout<<l; d=strupr(s1); cout<<d; getch(); } [/code] When i run this code , it shows Lvalue required error please help | |
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 … | |
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. | |
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 | |
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, … | |
Can i use borland c++ 5.5 to design graphic programs? if yes, please reference a book that i can use(ebook please). | |
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 … | |
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) … | |
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 … | |
[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 … | |
i try to do several exercises about c++; but nothing else? | |
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! | |
[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 … | |
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 … | |
[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 … | |
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 … | |
// 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 … | |
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 : … | |
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 … | |
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 … | |
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 … | |
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 … | |
Would someone mind helping learn how to multi-thread? I know this is asking alot, so I apologize in advance. | |
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 … | |
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 | |
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 … |
The End.