132,726 Archived Topics
Remove Filter ![]() | |
Hello all, My code isnt working. It is supposed to be a RPG World of Warcraft game lol. 1) When I have [code=c++]if (inventory.size() == MAX_ITEMS) { inventory.push_back("Rusty Armor"); } else { deleteItem(); } [/code] 2) My deleteItem() function dosnt work, is their another way to do this? Here is … Software Development c++ | |
I have a main that I want to use getline to get the user's words after i do a strtok to eliminate these delimiters (" ,.-") and then find the soundex code of each word and insert the words into my hashtable. i made an attempt but i was not … Software Development c++ | |
Hey, I'm a high school student who is fairly programming and I was curious as to how to input a single character without entered an End of Data marker (e.g. newline character/Enter) [CODE] #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main () { char ch; switch (toupper(getchar())) { case 'A': … Software Development c | |
Hello, I've written a delete function to delete any integer value based on in parameter. The problem I have now is that this function deletes the values, but leaves the Node position intact with some huge int value instead. So my question is, do I need to rearrange the Node, … Software Development c++ linked-list | |
When I declare an event table in a class a.k.a DECLARE_EVENT_TABLE(); then try to compile, i always get this error: [Linker Error] undefined reference to `vtable for Utility' (utility being my class) What does this mean and how do I fix it? All research on this has turned up dead … Software Development c++ | |
[code=python]#!/usr/local/bin/python #Scott Landau #CS 380 #Assignment 1 Programming Portion in Python #Created - 4/6/09 #Last Edited - 4/7/09 #n is going to be equal to 4 for this queens problem. n = 4 #Assigning the empty list to initialState. initialState = [] #Making an allDirections list. allDirections = [[-1,0],[1,0],[0,-1],[0,1],[-1,-1],[-1,1],[1,-1],[1,1]] #declare … Software Development python | |
Write a Java application that displays factorials for a user input specified number. The factorial of a number, n, is the product of all of the positive integer values between 1 and n, and denoted by the ! symbol. For example, the factorial of 5, 5!, is calculated by multiplying … Software Development java | |
hi guys, is there anyway of catching exceptions globably in a windows application similar to way we handle exceptions using global file in asp.net aplications? thanks. Software Development asp.net | |
Hi I am learning C++ and i coded this program but it isnt working as it was supposed to.. [CODE] #include<iostream.h> using namespace std; class furniture { protected: int color,width, height; }; class bookshelf : public furniture { private: int no_of_shelves; public: int accept() { cout<<"enter color"<<endl; cin>>color; cout<<"enter width"<<endl; … Software Development c++ | |
Hey guys, I have a python script that I need to run on a windows machine when the computer boots up but before a user logs in. It is the server side of server/client program. The program needs to be able to write and read files, as the server program … Software Development client-server python windows-server | |
Hi alls, I need help regarding this method...actually i have display image from database into picturebox using memortstream...then i need to copy this image and save it into file as jpg or bmp......i'm already insert contextmenu for rightclick function to copy image but not working...anyone can give the idea plzzz?..Tq … | |
I am doind a tutorial, here is my code: [code=c++]#include "functions.h" #include <glut.h> #include <stdlib.h> //this is the function with the error: void HandleKeyPress ( unsigned char key, int x, int y ) { switch ( key ) { case 27: // escape key exit ( 0 ); } } … | |
All, I am using a python script (v2.0) to call a batch file. 1. The python script should wait until the batch file is finished. (So that rules out os.startfile, os.popen etc.) 2. For unknown reason, os.system does not work ... So I am using os.spawnv(os.P_WAIT,BatchFile, BatchFile) where Batchfile =r"E:\..... … Software Development python | |
Good evening everyone, I am once again posting a question. My school project is done. And I appreciate all the help you gave me. The following code is a working program. The only thing I have absolutely no real good idea to do is calculate the Overtime Rate with my … Software Development python | |
I use VS C++ 2008, and I have the following code [code=C++] int main() { int maze_size=5; int[3][2] oppo_pos = { {maze_size-1,maze_size-1}, {maze_size-1,0}, {0,maze_size-1} }; return 0; } [/code] When I compiled, VS gave out the following error messages: 1>c:\dev\visual studio 2008\projects\test\main.cpp(4) : warning C4091: '' : ignored on left … Software Development c++ visual-studio | |
hi i am at uni an i have a project in which i have to create a backgammon game can anyone give me a helping start on how i would go about creating the board states? thanks Software Development c | |
I have been working on a project using Visual Studio.Net 2005 and Windows Mobile 6.1 After several builds and installers it has started throwing up an error during the build stage. Any help would be appreciated. Thanks The error contained in the output list: ------ Build started: Project: Stock - … Software Development vb.net visual-studio | |
does anyone know how to test a recursive bianry search to check if it works Software Development python | |
I have a JTabbedPane inside a JFrame. I've been having a lot of problems with resizing and things like that. . how do I get the JTabbledPane to resize with the JFrame? So when the user drags the window open to a larger size, the JTabbedPane should be dragged to … Software Development java | |
Hi All - I am using Hibernate Transactions in our project . The flow is as follows. JSP --> Actions -- > Business Layer --> Component Layer --> Persistence Layer --> Data base Currentl I am doing Transaction management in Persistence Layer. Can I do it in business layer ? … Software Development java | |
I have the following codes: [code=cplusplus] void CLOGFILE_INTERPRETERDlg::OnBtnLoad() { AfxGetModuleState()->m_dwVersion = 0x0601; //corrects the differences in MS DAO UpdateData(); m_Loading = _T("Loading..."); UpdateData(FALSE); UpdateData(TRUE); //UpdateData(); int length = 0; try { char strFilter[] = { "Log Files (*.log)|*.log|All Files (*.*)|*.*||" }; CFileDialog FileDlg(TRUE, ".log", NULL, 0, strFilter); if ( FileDlg.DoModal() … Software Development c++ open-source | |
Hi I was wonder if anyone could help with this problem I am receiving. My program is suppose to read in any character frequencies from a file, even spaces and /n. My problem is that is reading an extra character that I can figure out. I had inputed a text … Software Development c++ | |
hello I been working on a swap program and this is about my third one trying to get it working now I'm having a problem i keep getting 0's added into it right now the output is 4, 0 , 5, 0 ,16. Could anyone tell me where the 0's … Software Development c++ | |
Hi guys, I've got a windows form with a datagridview linked to an access database. The third column in the datagridview is a list of numeric values. On load up I would like a textbox to display the average of all the values in this column. Can't quite figure it … Software Development linked-list | |
Dears! My name is Caroline and I come from Poland. I am looking for help in my C++ problem. Sorry for my poor English, I hope You will understand me. This is my problem: I have to make some program: Make a recursive function which have a parameter - array … Software Development c++ | |
how wud i create a code tht wud display letters of a string entered by user according to the number being odd or even? so say user enters sentence: i like ice cream. the even output : ilkiecem odd output: the rest of the letters (tht are at odd positions) … Software Development java | |
Hi Guys, i really need your help. i have a nia ocz product(that use your brain signal and your muscle movement for performing some actions)... this product generate EEG signals(alpha and beta) and from it you can do some actions. it is used in gaming, and it is designed for … | |
Hi, I want to learn assembly and have looked at tutorials I found on google. It's really freaking complicated, so do any of you know of any good tutorials on assembly? I'm on Windows XP 32 bit with an Intel CPU. Software Development assembly | |
please am having a problem with my code below. am actually want is when a numebr lesser than 0 and greater than 99, it should output an error message till the correct value is entered for the three numbers. please would be very greatful if my code could be edited.. … Software Development c++ | |
Hello all! I have a task to code a program that would find the last non-zero digit of the factorial of a given number n where 1<n<10000 so far i got this: [CODE=c++]#include <iostream> #include <string> #include <sstream> using namespace std; int main() { int a, xxx; unsigned long long … Software Development c++ | |
7. Track number of ‘All Blues’ song on ‘Kind of Blue’ CD 8. Name of second track on ‘Cookin’ CD 9. Total cost to purchase all 3 CDs (UK prices) Please see attached file for XML.... I need to have code for XSL..... I couldn't figure out for number 7 … Software Development xml | |
Hello, I'm having trouble writing to a file. I can open notepad ok, but I cannot write a string to it. What am missing here? TIA. [code=vb] Imports System.IO Module Module1 Sub Main() Dim start_info As New ProcessStartInfo("notepad.exe") start_info.UseShellExecute = False start_info.ErrorDialog = False start_info.RedirectStandardInput = True start_info.RedirectStandardOutput = True … Software Development vb.net | |
Write a program that accepts a string input from the user and reverses the contents of the string. Your program should work by using two pointers. The “head” pointer should be set to the address of the first charter in the string and “tail” pointer should set to the address … Software Development c++ | |
Plz also teel how it is used in C++ Software Development c++ | |
hello all , i have my idl defined as follows : [code=cplusplus] #ifndef schedule_Mgmt_idl #define schedule_Mgmt_idl module schedule_Mgmt { //*************************** Structures ******************************* struct planData { string planName; string planDescription; string scriptExec; string startDate; string startTime; string stopDate; string stopTime; string delayInt; boolean repeatDelay; boolean notOnWeekend; boolean validity; string tempTime; string … | |
Hi Friends ! I want to create DSN automatically with common dialog to choose database. I don't want user have to go to control pannel \ Administrative tools \ ODBC Manager for create DSN. I am using MS Access as My Database. How can i do it ? Plz help … Software Development visual-basic | |
Greetings! i am using date in my program. My databasefield <draw_date> declared as shortdate in msaccess. when i use in the programs .Open "Select *From numgroup Where Draw_date = '" & DateValue(vdrawdate.Text) & "'", strconek, adOpenStatic, adLockOptimistic I received error message.. Data Type mismatch in the criteria and sometimes Error … Software Development visual-basic | |
What is the difference between this two codes for Complex class ? What is the preference of code that written by pointers ? Thanks ... First code with pointers : [code=cplusplus] //Complex.h #ifndef COMPLEX_H #define COMPLEX_H class Complex { public: Complex ( double = 1, double = 0 ); void … Software Development c++ | |
Hi I want to map a network drive on Windows platform and i am running my script on Unix machine; What are the possibilities by which i can map network drive in perl Please reply thanks in Advance, aNa | |
Hi guys, I have a simple noob question for you. say we got a header file called test.h and it contains the following content: [ICODE] #define BOOL [/ICODE] and in my c file test.c I want to see whether BOOL is defined, can I use the if statement to test … Software Development c | |
Hi, I am trying to use recursion and count to find the number of times the number 5 appears in an array. I have the following code: [CODE]public static int countfive(double[] array1, int beginarray, int endarray,int count) { int next; if(beginarray==endarray) { if(array1[startIndex]==5) return 1; else return 0; } else … Software Development java | |
What's the easiest way to open a directory in windows explorer? Software Development c++ | |
[code]//This program reads a course score and prints the //associated course grade #include <iostream> using namespace std; void getScore(int& score); void printGrade(int score); int main() { int courseScore; cout << "Line 1: Based on the course score, \n" << " this program computes the " << "course grade." << endl; … Software Development c++ | |
I appear to need some help with a sudoku solver I'm working on. It's supposed to check the row, column, and grid. When I run my program it displays the puzzle, but then it ends abruptly. I was hoping someone can take a look at my functions and see if … | |
Hello! 3 weeks ago I started to search the secrets of vesa programming... and now I can forwrd with this problem.. :( I know I learning very slow, but... I think the important is that I want to learn :mrgreen: So here is my code: [code] section .code start: mov … | |
Hi all, The following code can popup a particular Outlook contact detail Click button 1, it opens Tom Lee contact detail Then, close the Tom Lee contact detail Click button 2, it opens Sam Green contact detail It works fine ... However, if I am going to open both contact … Software Development microsoft-office | |
![]() | Sorry guys, I'm a rookie at the whole Python thing so please forgive me if the following questions are easily answered. I'm working on my final project for class and I'm just stuck. I have no clue what's going on with this program. It isn't running properly in IDLE at … Software Development python ![]() |
Well, i thought everything was perfect since my last post. But i have the strangest error. Maybe its because i don't completely understand references... So anyway here is my string class: [code] class StRiNg { public: StRiNg(); StRiNg(const char* const); StRiNg(const StRiNg&); ~StRiNg(); StRiNg& operator=(const StRiNg&); char &operator[](int); char operator[](int) … Software Development c++ visual-studio | |
do { cout << "and how many of the 4 opponents would you like to play aganst?"<<endl; cin >> numberofopponents;//were the user inputs the number of opponents if(numberofopponents==1)//the if statment that plays the game if the user choses 1 opponents { cout<<"1 opponent......really????? ... noob"<<endl; cout << "round one!"<<endl; cout … Software Development c++ |
The End.