132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gangsta gama

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++
Member Avatar for gangsta gama
0
125
Member Avatar for mampam

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++
Member Avatar for Ancient Dragon
0
82
Member Avatar for Aelphaeis

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
Member Avatar for Aelphaeis
0
401
Member Avatar for ganmo

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
Member Avatar for ganmo
0
128
Member Avatar for clutchkiller

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++
Member Avatar for clutchkiller
0
229
Member Avatar for gotm

[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
Member Avatar for woooee
0
96
Member Avatar for king_786

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
Member Avatar for tux4life
0
244
Member Avatar for serkan sendur

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
Member Avatar for dickersonka
0
112
Member Avatar for kavithabhaskar

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++
Member Avatar for siddhant3s
0
149
Member Avatar for mg0959

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
Member Avatar for mg0959
0
160
Member Avatar for kerek2

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 …

Software Development image vb.net
Member Avatar for Teme64
0
99
Member Avatar for tomtetlaw

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 ); } } …

Software Development c++ opengl
Member Avatar for MosaicFuneral
0
66
Member Avatar for JeyC

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
Member Avatar for woooee
0
119
Member Avatar for Malestryx

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
Member Avatar for woooee
0
1K
Member Avatar for Samuelandjw

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
Member Avatar for Sky Diploma
0
125
Member Avatar for ammonation42

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
Member Avatar for nucleon
0
105
Member Avatar for ptaylor965

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
Member Avatar for ptaylor965
0
923
Member Avatar for srk619

does anyone know how to test a recursive bianry search to check if it works

Software Development python
Member Avatar for srk619
0
173
Member Avatar for BestJewSinceJC

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
Member Avatar for BestJewSinceJC
0
202
Member Avatar for venugreddy

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
Member Avatar for venugreddy
0
97
Member Avatar for everard

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
Member Avatar for MrSpigot
0
367
Member Avatar for yingfo

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++
Member Avatar for Nick Evan
0
159
Member Avatar for acoxia

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++
Member Avatar for acoxia
0
96
Member Avatar for Martin310

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
Member Avatar for Martin310
0
510
Member Avatar for carolinepoland

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++
Member Avatar for tux4life
0
119
Member Avatar for testing321

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
Member Avatar for BestJewSinceJC
0
136
Member Avatar for abd640

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 …

Software Development api gaming java
Member Avatar for JamesCherrill
0
141
Member Avatar for TheBeast32

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
Member Avatar for Narue
0
197
Member Avatar for badboizEnt

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++
Member Avatar for badboizEnt
0
145
Member Avatar for FREEZX

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++
Member Avatar for FREEZX
0
294
Member Avatar for dollycharm

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
Member Avatar for xml_looser
0
114
Member Avatar for TheFueley

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
Member Avatar for TheFueley
0
118
Member Avatar for perumar

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++
Member Avatar for tux4life
0
286
Member Avatar for danishamman
Member Avatar for tux4life
0
112
Member Avatar for vishy_85

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 …

Software Development c c# c++ session
Member Avatar for vishy_85
0
151
Member Avatar for dragon_vn_101

i need the code of funtion "gets" in class "string.h". thanks a lot

Software Development c++
Member Avatar for ithelp
0
76
Member Avatar for Ravi Kant

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
Member Avatar for debasisdas
0
112
Member Avatar for locsin

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
Member Avatar for debasisdas
0
67
Member Avatar for Behi Jon

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++
Member Avatar for siddhant3s
0
127
Member Avatar for rana03

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

Software Development perl unix
Member Avatar for rana03
0
788
Member Avatar for beanryu

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
Member Avatar for jephthah
0
126
Member Avatar for spec80

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
Member Avatar for spec80
0
121
Member Avatar for mushbucket

What's the easiest way to open a directory in windows explorer?

Software Development c++
Member Avatar for mushbucket
0
91
Member Avatar for 1newguy

[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++
Member Avatar for siddhant3s
0
169
Member Avatar for Dragonsfire

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 …

Software Development c++ puzzle
Member Avatar for vmanes
0
151
Member Avatar for tojas

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 …

Software Development assembly video
Member Avatar for lewiscowles
0
273
Member Avatar for manfree

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
Member Avatar for manfree
0
715
Member Avatar for Hatz2619

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
Member Avatar for Hatz2619
0
925
Member Avatar for u8sand

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
Member Avatar for u8sand
0
156
Member Avatar for shadowmann2330

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++
Member Avatar for ArkM
0
142

The End.