43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for abhaymv

Hi, I have this annoying problem in my project program.It simulates a Library.From the data stored in a binary file,the information about books are to be displated as: [U] Sl.no Book code Book Name Author no. of books[/U] 1 ES101 Sherlock.. A.C Doyle 10 2. SF200 Harry Potter J K …

Software Development c++ data-science display ios open-source
Member Avatar for abhaymv
0
266
Member Avatar for Geek_Cyborg

Hello, I want to add integer value in specify integer from mix character TextBox, For eg, I have two TextBoxes first's name Textbox1 and second's name Textresult1 Textbox1.Text = "blabla 2 bla" Now after a empty space and before a empty space i want to + 1 in integer value …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
90
Member Avatar for Sheltac

Hi guys! I'm pretty new to C++. I am currently on freshman year at college, and have a programming problem (not homework, it's actually a side project of mine) that consists on implementing some algebra-related functions on C++. I'll go straight to the point: [code] int switchlines(int i, int j, …

Software Development c++
Member Avatar for Sheltac
0
172
Member Avatar for Ultratermi

Hey :D I wanna make a small program which changes the Desktop Wallpaper. Ok ehm. I found many things but nothing is working! Maybe because of my os: Win 7 x64 Ok here is the code which should run when someone click on the button. [CODE=C++]SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,"C:\\wallpaper.bmp", SPIF_SENDCHANGE);[/CODE] Tried it …

Software Development c++
Member Avatar for Ultratermi
0
1K
Member Avatar for DarthPJB

Howdy, those of you who remember me may be happy to know my 2D game engine was finished and I'm now working on a 3D engine. My engine has been going rather spiffingly well, after some battles with DirectX and OpenGL i managed to get them working side-by-side. Wrote a …

Software Development c++ file-stream opengl
Member Avatar for DarthPJB
0
305
Member Avatar for EnjozLearniz..

[B]What I want to code:[/B] 1.Given: -A range of integers iRange from 1 up to iRange -A desired number of combinations 2.Find the # of all possible combinations and print it out. For example: Given: iRange = 5 and n = 3 # of combinations = iRange! / ((iRange!-n!)*n!) = …

Software Development c++
Member Avatar for EnjozLearniz..
0
130
Member Avatar for newbiec

Hello, I have an assignment to make a tic tac toe game using 1-9 in a grid (but without 1 l 2 l 3 and instead, 1 2 3 etc.). I'm having an impossible time figuring out how to redisplay the new x or o (see function comments). Is there …

Software Development c++
Member Avatar for Jiwe
0
102
Member Avatar for mcap61

Hey guys, I have to write a program to check the ranking of the top 1000 boy and girl baby names using linked lists and pointers. The POINT of the PROGRAM is if you enter a name it will tell you what the name ranks among the list if it …

Software Development c++ linked-list
Member Avatar for programmersbook
0
390
Member Avatar for HazardTW

I did make some attempts to search for this problem but was not sure exactly what to search for and being after 1AM my eyes wouldn't take reading through the 11+ pages of unrelated search results, so I will just ask the question... New to Java, want to use one …

Software Development java
Member Avatar for HazardTW
0
139
Member Avatar for qwertymk

I have a line of code that looks like this: [code] _data = new (nothrow) T[_size]; [/code] This code is inside a classe's constuctor The problem is that it initializes each element to zero which I don't want it to do. Is there to just have it reserve the memory …

Software Development c++
Member Avatar for qwertymk
0
120
Member Avatar for vtfan

I made a poker game and when I run it I get these errors... [CODE=syntax] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at PokerGame.Hand.getPairs(Hand.java:82) at PokerGame.Hand.whichHand(Hand.java:28) at PokerGame.DeckOfCards$1.actionPerformed(DeckOfCards.java:67) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) …

Software Development java java-swing
Member Avatar for vtfan
0
228
Member Avatar for StaticX

Hi Im having a problem when it comes to dynamic memory allocation.I have a program that lets me pick the size of my array,and then input numbers into it. That all works well,it is when I try to add another int to this array that im having problems with,could anyone …

Software Development c++
Member Avatar for StaticX
0
339
Member Avatar for ali8888

I have a question, and it is: How create win32 application in Microsoft Visual Studio 2008 ?? I do not want to select " Empty project " in " Additional options: ". i.e. I want use visual window for my program. Please help me. My language is C++.

Software Development c++ microsoft visual-studio
Member Avatar for ali8888
0
171
Member Avatar for pankaj.garg

Hello, Please help me in selecting a database to use with VB6. my application will store some 20-25 values each second (24 X 7) along with date-time stamp...and i would need to access this data for over 1 year period... Keeping this in mind...which database should i select? also please …

Software Development data-structure visual-basic
Member Avatar for pankaj.garg
0
126
Member Avatar for neosonic

Hi all, If I want to read an image and split them into pixel of rgb(red green blue) regarding their color. Is it possible to do it in vb? Or I need to use the different program? if you have any clue, please let me know, thanks.

Software Development visual-basic
Member Avatar for neosonic
0
100
Member Avatar for ffs82defxp

It won't work! [CODE]def get_user_choice(): from string import digits user_choice = input('Type a number, 1 to 6.\n\n') if user_choice == '': print 'Not a valid choice.' raw_input() main() check_if_true(user_choice) def check_if_true(): import random comp_choice = random.randint(1,6) if comp_choice != userchoice: print 'The computer won :(' return comp_choice, user_choice else: print …

Software Development python
Member Avatar for ffs82defxp
0
113
Member Avatar for Egypt Pharaoh

I want to creat a button that when I click on it it will generate a TextBox ,please tell me how

Software Development
Member Avatar for sknake
0
101
Member Avatar for JuvenileMango

Hi, I'm trying to write a hangman game program, but some things aren't working properly. [CODE]def hangman(): choice=input("Enter a letter: ") a=type.find(str(choice)) if len(choice)>1: print ("Only one letter please") hangman() elif a!=-1: b[a]=str(choice) print ("Correct") c=''.join(b) print (c) if type==c: print ("WINNAR!") else: hangman() else: d+=1 e[d]=choice if d==0: print …

Software Development python
Member Avatar for JuvenileMango
0
178
Member Avatar for python.noob

Hi everybody, I just started learning pyqt.. I referred it's wiki page and found some but only two links are useful.. I finished pyqt tutorial in zetcode.. It was really good.. I've downloaded cross-platform GUI programming with pyqt book.. But it's not an ideal book to start with for the …

Software Development gui python qt
Member Avatar for vegaseat
0
162
Member Avatar for Kippstah

Ok, uhh... I need help. My loop to keep the program running or to quit isn't working right. Can somebody help me figure it out? I tried a couple of methods, and they didn't work. Do anybody have any idea? By the way, this is for a blood drive program …

Software Development python
Member Avatar for Kippstah
0
1K
Member Avatar for StaticX

Hi, I am currently running on windows and have and issue when i try to read/write files,the problem being that it just doesn't happen. I know the code is correct because when I use a linux os and other windoze machines everything is ok..it just seems to be my computer. …

Software Development c++
Member Avatar for StaticX
0
109
Member Avatar for qk00001

Hi people, Do you have any good sites for C++ MySQL.Especially how the 'query' part works in the C++. Thanks a lot!!!

Software Development c++ mysql
Member Avatar for VernonDozier
0
158
Member Avatar for javaStud

Hi, I am trying to transfer some numbers that I have generated inside an array,but I have some mistake that I am not 'seeing'. The array contents are not the same as those generated. Any help please.. Thanks a lot. [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #define SIZE …

Software Development c++
Member Avatar for javaStud
0
93
Member Avatar for mcap61

I have to write a program to check the ranking of the top 1000 boy and girl baby names using linked lists and pointers. I have based most of my work off a tutorial from this website [URL="http://richardbowles.tripod.com/cpp/linklist/linklist.htm"]http://richardbowles.tripod.com/cpp/linklist/linklist.htm[/URL] And here is the link to the list of names. You probably …

Software Development c++ linked-list
Member Avatar for jonsca
0
230
Member Avatar for beforetheyknew

How do you write a driver class? i've never used one before and its sort of dropped into the spec of this program. It uses public static void main(String[] args){} right? i have 4 other classes, so what should i do?

Software Development java
Member Avatar for javaAddict
0
153
Member Avatar for hao90

i think this part got problem..anyone can guide me? [CODE]ifstream BanKing; BanKing.open("BankData.txt"); while (!BanKing.eof()) { BanKing>>loginName; BanKing>>password; if(loginName == loginName1 && password == password1) { menu(); break; } else { cout<<"\tUnregistered ID or you have enter a wrong password !"<<endl; cin.clear(); cin.ignore(); getchar(); return ; } BanKing.close(); } }[/CODE] i …

Software Development c++ ios
Member Avatar for hao90
0
176
Member Avatar for hao90

Can anyone guide me how to solve for the login problem..i think is the read file problem.. I try many ways but can't. here the code: [CODE]#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cmath> #include <windows.h> using namespace std; class bankAccount { private: string name, loginName,loginName1; float IDnum; …

Software Development c++ ios
Member Avatar for hao90
0
286
Member Avatar for jdrei

i'm trying to add two arrays and i can't seem to get my carry to work in my add function. for example, if array a has 1,2,3, and array b has 5,6,7, i should get 690. but since there is a flaw here, i get 680. why? can anyone point …

Software Development c++
Member Avatar for jdrei
0
86
Member Avatar for Darkmist

Hi, I am working on a program, it asks user for a file name and opens that file with that name, do some calculations and create a new file with the filename.output (.output is the extension) and save the contents into it. I have been working on it for a …

Software Development c++ ios
Member Avatar for Clinton Portis
0
269
Member Avatar for ericwshoemaker

Hi all, I have a c++ program i'm working on focusing on pointers in a circular linked list. I need to have the user specify the position of the "dog" in the line (the program is a mock dog show). Then a function checks for the specified position and returns …

Software Development c++ linked-list
Member Avatar for ericwshoemaker
0
82
Member Avatar for Darkicon

Awhile ago I made an app that uses Performance Counters to display info pertaining to CPU, RAM, hard drives, etc. kind of like Window's program (Forgot the name), but only displaying info people would really need. I want to continue working on that app and adding new stuff to it. …

Software Development vb.net video-card
Member Avatar for kvprajapati
0
100
Member Avatar for Hanyouslayer

I have been working on this for a bit, and I have made some great strides. However, there are just a few things bugging me that I can't seem to figure out. This is an assignment, and I don't expect anyone to toss out an entire program for me. However, …

Software Development java
Member Avatar for Hanyouslayer
0
317
Member Avatar for jmark13

I have some cnf files, which are txt files that are in a specific format for conjunctive normal form formulas. I want to take this file, which looks something like this: c The random seed used to shuffle this instance was seed=1755086696 p cnf 1200 4919 -35 491 -1180 0 …

Software Development python
Member Avatar for jmark13
0
4K
Member Avatar for wiss.dev

hi im creating an application that query data from fox pro, manipulate it and export it to excel. here is the code im using to creat excel object: Dim oExcel As New Excel.Application Dim obook As Excel.Workbook = oExcel.Workbooks.Add im getting excell.application underlined(error msg:new cannot be used on an interface) …

Software Development vb.net
Member Avatar for TomW
0
102
Member Avatar for zachattack05

I was wondering if someone could give me a quick hand with this. I have a text box that a user types a directory location in. Obviously the directory path includes at least one "\" character and could contain many more. Because the slash is the escape character and I …

Software Development
Member Avatar for zachattack05
0
96
Member Avatar for tig2810

Hi all I've been trying without sucess to write values back to my app.coonfig. I have put my config and code below as I am having zero luck but I have followed MSDN/google pages. Does anyone know where I am going wrong? thanks [code] config.AppSettings.Settings["FTPHost"].Value = tbFtpHost.Text; config.AppSettings.Settings["FTPUserName"].Value = tbFtpUsername.Text; …

Software Development xml
Member Avatar for tig2810
0
237
Member Avatar for daviddoria

Is there a way to see what a macro gets expanded to? I tried to put it in quotes and use printf, but of course printf just printed exactly the string. The result of: [code] #define SetMacro(name,type) \ virtual void Set##name (type _arg) int main() { printf("SetMacro(Test, int)"); } [/code] …

Software Development c++
Member Avatar for daviddoria
0
138
Member Avatar for rmatelot

Extract Blocks of Info from Log File New learner..this would be my first try at writing in Python that I can actually put to use: Have log file content that looks like [URL="http://i.imgur.com/RcU3J.jpg"]this[/URL] Basically - I only want to keep "slots" with the indicator "[COLOR="Red"]/* mysql */[/COLOR]" - the blocks …

Software Development python
Member Avatar for Namibnat
0
2K
Member Avatar for wiss.dev

any one knows how to set an excel object to instance type....thanks

Software Development vb.net
Member Avatar for wiss.dev
0
96
Member Avatar for whitetigerx8

Hello out there. I have been racking my mind around the below code since Thursday, but I can't seem to figure out why my Search function will not find any values in the map even though I type the exact name from the text file the map is suppose to …

Software Development c++
Member Avatar for whitetigerx8
0
101
Member Avatar for grib

Seems that I'm going to get hung up on every CandyBar exercise in this book I'm working through. Such is life. I'm doing something stupid, and I can't see it. Something appends garbage into my structure's first field when I try to give it the defaults. [code]#include <iostream> const int …

Software Development c++
Member Avatar for grib
0
149
Member Avatar for jwxie

Hi, my professor is asking a project. Overview: Get x number of students for a simple survey. Make a data analysis, including [1] name [2] gender [3] ID [4] Question 1 and data analysis - probability - % - distribution In this project, each student is an "object" I am …

Software Development data-science oop python
Member Avatar for jwxie
0
111
Member Avatar for zobadof

I would like to make it so you enter how much you will give in (E/G £20 and £15 in change) and then it tells you how much change you get back. I will post the code and if someone could fix it so you enter amount you'll pay and …

Software Development c++
Member Avatar for Clinton Portis
0
115
Member Avatar for songweaver

Hey guys, I'm trying to get this form to display in the listbox the address from the info from the textboxes, I followed an example that uses a class to do it, but it seems I am going wrong somewhere and I don't know where. Here is the code for …

Software Development vb.net
Member Avatar for me655321
0
351
Member Avatar for merse

If I have a template class: [CODE]template <class T> class myclass { public: T function(); }[/CODE] and it has a member function for example T function(), it is possible to define it separately for different kind of template parameters? So define somehow: int myclass::function(); double myclass::function(); mystruct myclass::function(); with totally …

Software Development c++
Member Avatar for merse
0
141
Member Avatar for Chris147

Hi All, I have a very simple DataSet linked to a ListBox. I need the User to be able to add Data and have used the following code (in a ToolStrip command button): [CODE]Dim newFileRow As DataRow = Database1DataSet.Tables("tbl_Files").NewRow() newFileRow("File Name") = fleName newFileRow("File Path") = flePath newFileRow("Times Opened") = …

Software Development dataset vb.net
Member Avatar for Chris147
0
1K
Member Avatar for Izzywizz

Hello I am a fairly new to Java, below I have created a program for calculating the distance between two cites that is inputed by the user. For the second part of my program I need to have a menu system and the constant SPEED value to change according to …

Software Development java
Member Avatar for Izzywizz
0
136
Member Avatar for Elvedon

Thanks for your input vegaseat. I have posted the code that is giving me the problem in the two scripts and I hope you can comment further. Thanks in advance - Elvedon. [CODE]#The script displayed below is only part of the larger original script.# #filename = 'firstScript.py' #!/usr/bin/python from Tkinter …

Software Development file-system image os-x python tkinter
Member Avatar for vegaseat
0
715
Member Avatar for wittykitty

I have a question about my logic in trying to code something. Let's say I have an array of 50 values. Now I want to find the values that are over (lets say 100). And I want to print "There are 11 values over 100" Now, my question is, I …

Software Development c++
Member Avatar for donaldw
0
119
Member Avatar for kolibrizas

As i paint any figure in Java, the lines don't look smooth and I clearly see pixels. Any not very difficult solutions?

Software Development java
Member Avatar for kolibrizas
0
112

The End.