64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ah124131

After completing my code I got an error message at the second to last closing bracket that said I was missing a return statement, I looked in to it online and found that some said to put return 0; but that didn't work it just gave me a new error …

Member Avatar for ah124131
0
339
Member Avatar for ryno365

Hello again DW. Tomorrow I have an interview and I'm trying to make a jar of my latest project. Using netbeans, I've created a jar and everything looks fine. I can see all the card IconImages in the Jlabels and it looks fine. But when I repaint the frame, the …

Member Avatar for ryno365
0
126
Member Avatar for Samyx

I have this code, but instead of implementing class enumeration I want to create an anonymous class in the method getEnumeration that does the job right in the return, hwo do I do that? [code] // File: TestList.java (Module 10) // // Author: Rahul Simha // Created: Nov 2, 1998 …

Member Avatar for Samyx
0
92
Member Avatar for A Tripolation

Hey all. I'm really new to programming and would like some help, if you all don't mind ;) I'm not actually having trouble with the programming, but rather, what I'm being asked to do. Here is what I'm supposed to do (and yes, it is an assignment, but I'm only …

Member Avatar for A Tripolation
0
168
Member Avatar for Goalatio

So, I was trying to re-create the CMD command "set /p", where it prompts the user to type text, and is ended by a carriage return. Upon trying this, however, I found that a word (dw) will only hold the last thing passed to it. You can type "abcdefg", but …

Member Avatar for Goalatio
0
159
Member Avatar for nateysmith

[CODE]#include <iostream> using namespace std; int main() { int TESTS = 0; int testScore[TESTS]; int testNum = 0; int a; double total = 0; double average; testNum = 0; cout<<"How many scores are there? "; cin >> TESTS; cout<<"Enter a score: "; cin >> testScore[testNum]; while(testNum < TESTS && testScore[testNum]) …

Member Avatar for nateysmith
0
2K
Member Avatar for xxunknown321

Write a C++ program that ask the user for the name of a file. The program must have a function that prompt the user to enter a file name and open the file. The program should display the last ten lines of the file on the screen. Each line of …

Member Avatar for xxunknown321
0
187
Member Avatar for phouse512

Hello, I've been using a book to learn php, and when I try to make it work for my own use, there seems to be an error when I try to login. First it says that the log in is invalid, and it comes up with this warning message: [b]Warning: …

Member Avatar for phouse512
0
233
Member Avatar for ivankenny

Hello it's me again i'm having problem with the database subtraction for my POS Project im using ado database and i know that you just have to change the value from the selected and voila it would update the database but mine doesnt work: ' txtqan is connect to the …

Member Avatar for AndreRet
0
146
Member Avatar for Alicito

hello my friends I need a little help over here : im workin on a calculator that should provide the user with these services: • Read a big integer number up to 300 ( use arrays ) . • Sum two big integer numbers (with using the carry). • Product …

Member Avatar for Antenka
0
186
Member Avatar for leegeorg07

Hi, I am trying to make a twitter bookmarklet that will tweet the current page, I currently have this code: [code] javascript:window.open('http://twitter.com/?status='+self.location) [/code] but when I try it, it changes the page its tweeting to just show [object Window] how can I fix this?

Member Avatar for leegeorg07
0
114
Member Avatar for baltazar

Hello, I am having a problem with the jQuery Cycle plugin. I am trying to create a slideshow of images that change(fade) when an element in the pager nav is hovered on. (This is supposed to be possible as per the jQuery Cycle Plugin docs <http://malsup.com/jquery/cycle/pager2.html>) My setup: I have …

Member Avatar for baltazar
0
210
Member Avatar for jessicamelillo

Hi! I'm currently taking a computer programming course at Wagner college and I have a project due this week that I am completely stumped on. these are the guidelines: [I]This will be a something like a “compatibility program”. 1) You will ask the user their name, and store it. 2) …

Member Avatar for jonsca
0
104
Member Avatar for whiteyoh

Hi All, Im attempting to make a simple java menu system. the psueo code is as follows 1. user is presented with menu 2. selection is made 3. that action is ran, i.e make a new user (i have this code seperate, which works) 4. the user is returned to …

Member Avatar for whiteyoh
0
119
Member Avatar for dandixon

Right im very new to php and kinda learning as i go, here is my code. What it is, is when i search a part number it has to be matching the case e.g if i search a6725 it doesnt work but if i search A6725 its returns the result. …

Member Avatar for dandixon
0
87
Member Avatar for AdRock

I have got an example for cplusplus.com for converting a string into a char array so i can split in into tokens and adds to a vector and it works fine in the main method but if i try and create a separate function and pass a string as a …

Member Avatar for iamthwee
0
754
Member Avatar for quaifp1

Hi, I want to create a line on a canvas ( similar to a visio connector but not as fancy) which will allow a mouseover event to be trapped ( this would trigger a property sheet to display the atributes of the line - a microwave link in my case …

Member Avatar for quaifp1
0
121
Member Avatar for FengG

[CODE]import pygame pygame.init() def main(): screen = pygame.display.set_mode((640, 480)) pygame.display.set_caption('game') background = pygame.Surface(screen.get_size()) background = background.convert() background.fill(pygame.color.Color('yellow')) box = pygame.Surface((100,100)) box = box.convert() box.fill(pygame.color.Color('red')) t = True clock = pygame.time.Clock() while t: for event in pygame.event.get(): if event.type == pygame.QUIT: t = False elif event.type == pygame.MOUSEBUTTONDOWN: posi = pygame.mouse.get_pos() …

Member Avatar for FengG
1
128
Member Avatar for Malinka

Dear all, may be someone can help me to find a solution to the following problem: I have a list of patterns (len=5) that are presented as tuples in a list, e.g. patterns = [('w1','X1','w1','Y1','w1'), ('w2','w2','X2','w2','Y2'), ('w2','X2','w2','Y2','w2')] I want to go through all sentences in a text file (one sentence …

Member Avatar for Malinka
0
101
Member Avatar for JRabbit2307

Help! The only thing I seem to not get is the initials from the substring........... any ideas? public class Name { //Data Members private String firstName; private String middleName; private String lastName; private String initials; //Default constructor Name() { firstName = null; middleName = null; lastName = null; } //Constructors …

Member Avatar for JRabbit2307
0
132
Member Avatar for whiteyoh

Hi All, Hoping you can help with the following. The psuedo code is: 1. Menu is displayed 2. User inputs a selection 3. That item is ran 4. on completion, the user is returned to 1 above. the code i have so far is as follows, but its still exiting …

Member Avatar for whiteyoh
0
125
Member Avatar for sfrider0

I'm drawing a sphere and some ground. I used GL_POLYGON to draw a rectangle and colored it green. When I added a sphere, my ground just turned black. Is this because the sphere is a 3d object and the polygon is 2d or is there something else? Here is the …

Member Avatar for sfrider0
0
162
Member Avatar for samarudge

Hi, On my websites, I encrypt passwords using a combination of hashing algorithm (Which I am obviously not going to post on a forum but its along the lines of [icode]md5(substr(whirlpool($Value), 0, 7));[/icode]) What is blowfish, how do I use it and how much more secure is it than a …

Member Avatar for digital-ether
0
175
Member Avatar for PixelHead777

At the easy risk of asking something already asked a hundred times... Curses doesn't work for me. I use 2.6 on a Vista It gives an error saying it can't call up a part of the module that came with the program. ... Uhm... help.. T_T ~Pixel

Member Avatar for PixelHead777
0
320
Member Avatar for vinodgnkm
Member Avatar for sam023

i m getting this bug.. and i still cant understand why this happening..?? here is my php code [code=php] $query1 = "call new_user('$cardDigits','$cardNo','$amount','$traiff','','','','','$creator',@_lastname,'$customer','$firstName','$email','0','0')"; $result1 = mysql_query($query1) or die('query_error'.''.mysql_error()); $lastname = mysql_fetch_row($result1); // Generate New User $query2 = "genrate_user('$lastname[0] ','$creator')"; echo $query2; $result2 = mysql_query($query2) or die('query_error1'.''.mysql_error()); [/code] Procedures are working …

Member Avatar for sam023
0
9K
Member Avatar for Cemils

Hi, I hope someone can help me creating a sql for the purpose i have. I have a table named case_score_t with these columns: id, case_id, user_id, score, created_date I am interested in picking the rows with the greatest created_date, for a certain user_id. I now this SQL with give …

Member Avatar for Cemils
0
73
Member Avatar for nikichu

Hi alll...... i am trying out a login form where in which i have multiple users... i have redirect each user to differnt pages..... ....but im stuck in the middle....... please help me out..... <code> page1 session["user"]=txtuser.text page2 welcome text(A label which is used to specify the current user) Thank …

Member Avatar for mail2saion
0
113
Member Avatar for mcap61

Hey guys, I'm trying to write something to a .txt file from within my program using ofstream. I have this function names show_results() which is a bunch of cout statements that are connected to a class and a bunch of member functions. But the function show_results is all cout statements. …

Member Avatar for jonsca
0
94
Member Avatar for mr_scooby

hi guys, I would like to be able to take all the output of a order form and the database output of the selected items and return it to a xml document. I tried the file_get_contents and that just took the actual code from the php page. My website is …

Member Avatar for mr_scooby
0
85
Member Avatar for johnbach

I have around 2 million vouchers of some fixed denomination (say 10 and 20)[CODE]create table vouchers(pin varchar2(20) primary key ,amount number,status char(1),extra_value number); create index IDX_AMOUNT_STATUS on vouchers(amount,status);[/CODE]Typical values [CODE]amount,status ,count(status) 10 N 1000000 10 U 700000 20 N 300000 [/CODE]For each payment transaction,I fetch one voucher wrt.transaction amount and …

Member Avatar for johnbach
0
169
Member Avatar for fawadkhalil

Hi I have a datagirdview with a checkbox placed in header.How can i check or uncheck all checkboxes by clicking on checkbox that is in header.

Member Avatar for fawadkhalil
0
159
Member Avatar for samsons17

i not sure what is the single quote means... the example like this : if (value=='a') Thank you 4 helping :)

Member Avatar for mrnutty
0
80
Member Avatar for COKEDUDE

Right now my code runs just the way I want it to. I would like the [CODE]Enter a sentence or phrase[/CODE] part to continue until the user enters "quit". I would like to use a while statement. Every way I have tried to enter phrase not equal to "quit" has …

Member Avatar for COKEDUDE
0
199
Member Avatar for Ri0o

hi, i'm new in python programming i'm trying to write a simple program that processes a text file containing grades for a class, extracts the desired grades, count the number of grades in each grade segment and genrate a pie chart for grades,(A1) . [url]http://pages.cpsc.ucalgary.ca/~zongpeng/CPSC231/assignments/A3/a3.pdf[/url] any help would be appreciated …

Member Avatar for Ri0o
-1
124
Member Avatar for kool.net

hi, i have a mdi form named MDIParent2 in my application and it has many child forms. child form 1 named frmClient has 3 child forms now i want to call them in MDIParent2. can any one tell me how to i call sub child & sub - sub child …

Member Avatar for kool.net
0
132
Member Avatar for Bunda350

ran into a problem i know this is asking for me to calculate the product of a coulmn and row but im not sure where to begin. I know that rowData tells us the value in a row and nRows specifies the number of rowData and the same with nCols …

Member Avatar for axed
0
211
Member Avatar for OSiRiSsk

Hello, is me again, im trying to improve my program with another function it should print as many senteces on one line in the output, as user will enter as the parameter in the command line sentenece is characterized with sign '.' if you have sentences wchich ends with '...' …

Member Avatar for automart
0
151
Member Avatar for jesseb07

hey, had a question that I couldn't figure out. I'm writing a program for linux and I need to save things to a person's Desktop. Because of that, I need to know their username. I am aware of the linux commands whoami, id, etc, but they only print the current …

Member Avatar for jbennet
0
8K
Member Avatar for styles_p

[CODE][B] DataTable dt; private void Permissions_Load(object sender, EventArgs e){ dt = new DataTable(); dt.Columns.Add("Feature", typeof(string)); dt.Columns.Add("None", typeof(bool)); dt.Columns.Add("ReadOnly", typeof(bool)); dt.Columns.Add("ReadWrite", typeof(bool)); datagridview1.Datasource=dt; } private void btnSave_Click(object sender, EventArgs e){ [COLOR="Red"]in the grid when i'll click on the any checkbox i want to pass parameter to this function [COLOR="Green"]SetPermission( , , …

Member Avatar for DdoubleD
0
180
Member Avatar for sravan953

Hey All, I have some code here, the problem is in line 82-83: [code='python'] import smtplib import wx window=wx.App() class pymailer(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,"Py-mailer",size=(500,700)) try: self.s=smtplib.SMTP("smtp.gmail.com",587) self.s.starttls() except: wx.MessageBox("Error 001: Could not connect to the internet, please try again later.","Internet Connection Error") self.panel=wx.Panel(self,-1) menubar=wx.MenuBar() filem=wx.Menu() filem.Append(201,"Quit") self.Bind(wx.EVT_MENU,self.Quit,id=201) viewm=wx.Menu() viewm.Append(202,"About") self.Bind(wx.EVT_MENU,self.About,id=202) …

Member Avatar for pythopian
0
619
Member Avatar for shaan07

Hei..i am novice to programming. How to generate beautiful html pages from a text file. My idea is to generate XML first and then generate it to html. Generated html page should contain all the information that the text file contains..like tables,pics,body,headings. I dont have a clue what to do …

Member Avatar for pythopian
0
132
Member Avatar for axed

I wrote a program to solve a system of linear equations. It works fine with the VS compiler. But when I try to run it using Cygwin, I get a seg fault(core dumped). But it does not say where the seg fault is. I am using the following commands: to …

Member Avatar for axed
0
370
Member Avatar for efecto
Member Avatar for efecto
0
248
Member Avatar for eggmatters

Not really sure how to phrase the question. Essentially my issue is this: I have a Form that when the user clicks a button, it invokes a JFrame that populates a datatable with a sql query. The datable frame also has a button. The user can select a cell in …

Member Avatar for Ezzaral
1
138
Member Avatar for dima shawahneh

Hello every one.. I have this exception while trying to execute an insert command into a simple sql database [CODE] string myChar = charNameTextBox.Text; string command = "insert into data (char,Entropy,Uniformity,stadev,smoothness,skewness,kurtosis) values(" + myChar + "," + entropy + "," + uniformity + "," + standardDeviation + "," + Smoothness …

Member Avatar for dima shawahneh
0
159
Member Avatar for simpatar

This is my program: [CODE]def main(): print('This is a program to calculate the setprod') print() userinput = input('Enter two sets separated by a comma: ') value1, value2 = userinput.split(',') mylist1 = eval(value1.strip()) mylist2 = eval(value2.strip()) print(mylist1 + mylist2) main()[/CODE] If I enter following: [CODE]>>> This is a program to calculate …

Member Avatar for simpatar
0
107
Member Avatar for apo

Hi, I'm trying to create a quick and small programs that works when you press F9, it should create files on my desktop using "ofstream" from A to Z. I can't get it to run when i put ofstream in a [B]for[/B] cycle. Here is the code to see it …

Member Avatar for niXman
-1
186
Member Avatar for abhaymv

I am a student in C++.We undertook a school project to develop a library information system.We are only allowed to use Turbo C++ version 3 compiler.We cannot use ANSI/ISO C++(Not in our syllabus.)The following is my problem: In my project, I have a class books.When the program is first run, …

Member Avatar for abhaymv
0
193
Member Avatar for Mouche

So, I created this fun little Tic Tac Toe game all on my own. It was a tough project, and I know I used some inefficient strategies in the coding. Just like the other things I've posted, this could use a lot of suggestions in the areas of clean code …

Member Avatar for vegaseat
0
1K

The End.