43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nssltd

Hey there in may web browser program their is something i am struggling on. That thing is you know when you go on a log on website and the address bar goes green? Well that is what i want to do but i am struggling on how to determine whether …

Software Development display web-browser
Member Avatar for nssltd
0
124
Member Avatar for ÜnLoCo

Hello has anybody come across a similar control to this one. [URL="http://img138.imageshack.us/img138/875/23102010172021.png"]http://img138.imageshack.us/img138/875/23102010172021.png[/URL] if so then please give me a link. thank a lot edit : found this one [url]http://www.filebuzz.com/fileinfo/38822/Angulum.html[/url] any better suggs are welcome though :D

Software Development asp.net vb.net
0
109
Member Avatar for Chalandria

Again I have been given an assignment and have done it completely wrong. Please understand that I am completely new to programing and made the mistake of entering an accelerated class. I'm not looking for an A, I just want to pass and seek out help as often as I …

Software Development java unix
Member Avatar for Chalandria
0
354
Member Avatar for Tom83B

Hi all! This is from my code: [CODE]struct R3 { float x; float y; float z; R3(float, float, float); R3(); }; R3::R3(float a, float b, float c) { x = a; y = b; z = c; } R3::R3() { x = 0; y = 0; z = 0; } …

Software Development c++
Member Avatar for Tom83B
0
115
Member Avatar for Jsplinter

I've read the documentation [URL="http://msdn.microsoft.com/en-us/library/ms644906(VS.85).aspx"]link[/URL] and several threads explaining how to make a timer. Now after hours I still can't get my test to work. In the testDlg.h header I declare: [code] UINT_PTR m_uTimerId; CString textControl1; // Controls an Edit Control afx_msg void OnBnClickedButton1(); afx_msg void OnTimer(UINT_PTR nIDEvent); int myX;[/code] …

Software Development c++
Member Avatar for Jsplinter
0
1K
Member Avatar for gahhon

[CODE]struct NamesAtt { char student_Surname[20]; char student_givenName[50]; char gender[100]; }Summary; ... void Students_Absence_Report() { system("cls"); printf("Student Presence/Absence Report\n"); printf("===============================\n"); printf(" Name \t\t%%Presence %%Absence\n"); for(i=0; i<student; i++) printf("(%d) %s %s\t %.2f\t %.2f\n", i+1, Summary.student_Surname[i], Summary.student_givenName[i], Presence_percentage[i], 100.00-Presence_percentage[i]); printf("\n"); printf("------- END OF ATTENDANCE REPORT -------\n\n"); system("pause"); system("cls"); } void Barred_Students_List() { system("cls"); …

Software Development c
Member Avatar for N1GHTS
0
215
Member Avatar for LianaN

Hi! My question is how could I add the checkbox column to my table. Well, I've tried the following solution, however it provides error message (null), if the table field is empty: [CODE] tableModel = new QueryTableModel(); tableAttributesFormTypes = new JTable(); tableAttributesFormTypes.setModel(tableModel); tableModel.setQuery("select at_code, at_title, at_type from Attributes"); class QueryTableModel …

Software Development java
Member Avatar for LianaN
0
579
Member Avatar for musikluver4

I am using JFrame for my GUI and I want to be able to select a row of text of a bunch of rows of text, one at a time. Like in Microsoft Outlook, you select an email and it selects the whole line for you of all the different …

Software Development gui java
Member Avatar for JamesCherrill
0
1K
Member Avatar for Kiseki

hi guys, just wondering is it possible to set all the textbox align to center within a form using just only one line of code? Rather than using [CODE] 123TextBox.TextAlign = HorizontalAlignment.Center 456TextBox.TextAlign = HorizontalAlignment.Center [/CODE] for every Textbox. Thanks.

Software Development vb.net
Member Avatar for Kiseki
0
866
Member Avatar for Limiter

I want to shorten the lower half of this code into a loop statement. The only(x) function is an imported function that makes sure 1 to 9 occurs only once. [CODE] num_1 = str(raw_input("Enter set 1: ") num_2 = str(raw_input("Enter set 2: ") if not only(num_1): ##These two "if not …

Software Development python
Member Avatar for Limiter
0
157
Member Avatar for Bigbrain99

Hi guys, I know what is meant by vector <string> myvector as it will just take every inputs as string when we are trying to store the inputs in myvector. e.g. myvector.push_back(nick) but what about if we declare the type of vector become like vector <FLATMATE> myvector? Why it won't …

Software Development c++
Member Avatar for Bigbrain99
0
104
Member Avatar for garu525

I would like to program that reads a file with 6 lines that have 7 numbers on each line. The output should save a file with sum, average, max and min of each line. For now I just have to figure out how to get the max and min numbers …

Software Development c++
Member Avatar for garu525
0
315
Member Avatar for Bigbrain99

Hi guys, I just started to learn class in C++ and get confused by some of the codes [code]class FLATMATE { string name; public: FLATMATE() { name = "";} FLATMATE(string n){name = n;} string getName(){return name;} void setResident(string n){name = n;} }; //Below are the base class for different duty …

Software Development c++
Member Avatar for Bigbrain99
0
103
Member Avatar for AnAnonymousUser

Hey guys, i'm fairly new here. Just stuck on a program. It seems like it should be right, based on my pseudo code, but something went wrong. Edit: without using Math.pow; Edit: kind of not looking for the answer, just what i did wrong,, other wise, i wont know it …

Software Development java
Member Avatar for ChaseRLewis
0
89
Member Avatar for ssmokincamaro

I'm working on an a grading program that will require the use of a couple classes. The program contains a list of "program assignments" which there are 5, and 3 test scores. The Driver class contains the scores for the students. I'm stuck writing the average methods :$ Along with …

Software Development java mathematics
Member Avatar for ssmokincamaro
0
170
Member Avatar for cbebop7

The file that I am trying to read has the following contents: 192.168.1.1 48111 test.out 100 25 I am trying to use fscanf to read it line by line and storing each line in a variable. This works if I just have a couple of int variables, but it does …

Software Development c
Member Avatar for cbebop7
0
963
Member Avatar for JJHT7439

Hey, I have a homework problem in which I have to multiply two polynomials. I am assuming that the 2 polynomials can each be of any length so I am stuck as to how I am supposed to do that. My homework sheet derives how to do it like this …

Software Development python
Member Avatar for Gribouillis
0
3K
Member Avatar for javanub123

hai, i was wondering if you guys had any advice on getting into game programming with c++ i have a pretty basic understanding of the language and was trying to find out how to do this kind of stuff but so far i havnt been able to find out much. …

Software Development c++
Member Avatar for javanub123
0
217
Member Avatar for destruct0

Hi !!! I have two Windows Forms. In First Windows Form i have one Text Box and one Button. In the Second Windows Form i wish to call First Windows Form and get the value of Text Box. Is this is possible? When i create a object of the First …

Software Development
Member Avatar for ashishkumar008
0
427
Member Avatar for LevyDee

Im from a c++ backround so I am not sure exactly how to do what Im trying to accomplish. If myString1 = "hello" and myString2 = "hello\0\0\0\0\0\0\0" Im looking to trim off all of the null charecters. Thanks. Edit: So i was just trying to use the Remove method. I …

Software Development
Member Avatar for ashishkumar008
0
141
Member Avatar for pythonlearning

[CODE]list=[] list_start=[[1,2], [2,2], [1,3]] for element in list_start: list.append(element) list[0].append([2,3]) print "list=", list[/CODE] The result is, list= [[1, 2, [2, 3]], [2, 2], [1, 3]] instead of list= [[1, 2], [2, 3]], [2, 2], [1, 3]] If check: >>> list[0] [1, 2, [2, 3]] >>> list[0][0] 1 >>> list[0][2] [2, …

Software Development python
Member Avatar for pythonlearning
0
145
Member Avatar for Klaurac

Hey I have a videorental program and each video object should have an display image. [CODE]private Image VideoPicture;[/CODE] I searched the web for tutorials, but couldn't find any. I know how to use the file input dialog, but how do I assign the image to the CarPicture. I haven't figured …

Software Development image
Member Avatar for Klaurac
0
88
Member Avatar for Limiter

Hi guys, I am relatively new to Python. I am trying to code a program in Python and part of it involves checking that each input only have the characters 1 to 9 occuring only once. My code are as follow: [CODE] for i in range(1,3): num = str(raw_input("Enter row …

Software Development python
Member Avatar for TrustyTony
0
300
Member Avatar for Nidhi S.

[CODE]import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.io.*; import java.sql.*; class MyCanvas extends Canvas { Image img; public MyCanvas(Image img) { this.img = img; } public void paint (Graphics g) { if (img != null) { g.drawImage(img, 0, 0, 1000, 1000, this); } } public void setImage (Image img) { …

Software Development api java
Member Avatar for Nidhi S.
0
1K
Member Avatar for miturian

So, in the course of a simulation of a neural network I have two classes: neurons and synapses (which are basically the coupling between neurons). Synapses mediate information between neurons, so a neuron has to be able to speak to a synapse, and that synapse has to be able to …

Software Development c++
Member Avatar for Fbody
0
125
Member Avatar for canadiancoder

Hello folks, I've got a conundrum that Google was unable to fix, so here's hoping someone here knows how. I've got an application and a Delphi DLL and now what I need to do is write a C# DLL which exposes a number of functions the Delphi DLL will use. …

Software Development c c# c++ delphi
Member Avatar for canadiancoder
0
222
Member Avatar for girl.java

hi everyone this is my code. [CODE] public class Qustion3B{ public static void main (String args[]){ double sinx = Math.sin(0.5236); double cosx = Math.cos(0.5236); sinx = Math.pow(0.5236,2); cosx = Math.pow(0.5236,2); double sum=sinx+cosx; System.out.println("sine: " + sinx+"cosine: " + cosx +"sum: " + sum ); } }[/CODE] it continue to show …

Software Development java
Member Avatar for sharathg.satya
0
143
Member Avatar for mihird

I am stuck at one multithreaded app. Basically I am trying to update one control from background thread. There are two forms. 1) frmMain 2) frmLog frmLog has one list box (lstStatus) and one function as following [icode] Public Sub SetStatus(txt as string) as string lstStatus.Items.add(txt) End Sub [/icode] frmMain …

Software Development vb.net
Member Avatar for mihird
0
103
Member Avatar for Anuradha Mandal

The output of this code shows only one student's informations. But I want to display the all students' informations. Please find what is wrong?

Software Development c++
Member Avatar for vidit_X
0
90
Member Avatar for swathys

hi, below is my code. i want to get grand total based on boothID but i seems my code does not functioning. I still get same GRANDTOTAL even i have different BoothId in the sql. How do i do that. Do i need to add something in my code. PLEASE …

Software Development vb.net
Member Avatar for swathys
0
92
Member Avatar for Dha...1

I'm planning to buy a few books for C++. I want to learn C++ at it's deepest. You may say, I want to be C++ program developer. I'm currently having C++ in my study courses too. Which are recommended books? This thread has a huge list of books. Don't think …

Software Development asp.net c c# c++
Member Avatar for rsravi74
0
156
Member Avatar for jmcorpse

This is what I have to do. Write a program that has a Fibonacci number calculating function. The function will take an integer as a parameter which is the Fibonacci number to calculate, and return the Fibonacci number. Then use this function to calculate the sum of every Fibonacci number …

Software Development algorithm c++
Member Avatar for jmcorpse
0
104
Member Avatar for BryantFury

so im calculating the avergae of 5 numbers ive put in the array but when i compile i get a very large number heres my code [CODE]#include <iostream> using namespace std; int calcAverage() { int sum=0; int average; int TESTVALS[5] = {2, 18, 1, 27, 16}; for(int i = 1; …

Software Development c++
Member Avatar for BryantFury
0
115
Member Avatar for Sunshineserene

Hi, I am getting this error for my codes: Exception in thread "main" java.lang.NumberFormatException: For input string: "{ 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0}," at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224) …

Software Development java
Member Avatar for Sunshineserene
0
2K
Member Avatar for sirlink99

When I run this loading bar script the bar doesn't load and then it loads to the maximum. how come this load bar doesn't work thanks for the help. [code] // The "LoadBar" class. import java.awt.*; import hsa.Console; public class LoadBar { static Console c; // The output console public …

Software Development java
Member Avatar for sirlink99
0
166
Member Avatar for ASIWYFA

Hi, I have recently started Java in my course and I have been asked to write a program that finds the sum and average of 5 numbers. Its very close to working correctly but I cannot see where I am going wrong. Code: [CODE]import java.util.Scanner; public class average { static …

Software Development java
Member Avatar for ASIWYFA
0
427
Member Avatar for brendono978

Hi everybody. I decided to make an account here because I could use some help writing some code. This is what I need to do: Write a C program that will read in two lines of data. The first data line contains an integer N and the second data line …

Software Development c puzzle
Member Avatar for brendono978
0
184
Member Avatar for cosnersx

There is a sample program in my C++ book that uses the += operator, and doesn't explain how it works: [CODE]gold += silver / SILVERPERGOLD;[/CODE] What exactly does this mean?

Software Development c++
Member Avatar for Greywolf333
0
72
Member Avatar for jemimaloh

Hey. I've got a programme that processes the files in a given directory. However, it can only run those files if the programme itself is saved in the same directory. The error i am experiencing now is that once my programme runs, it also generates a class file which also …

Software Development file-system java
Member Avatar for jemimaloh
0
119
Member Avatar for berwick53

I've got to:4. Write a program that asks the user for two strings. The program should then compare the strings and display a message saying whether they are equal or if not, and which one is first alphabetically. For some reason it doesn't print out the parts in the if …

Software Development c
Member Avatar for berwick53
0
100
Member Avatar for Nathaniel10

An exercise in Stroupstrup's book is to write a program involving memory allocation with an infinite loop and let it run until it crashes. He says the crash will be due to [i]memory exhaustion[/i]. He also suggests researching the topic. I did and am frightened by what I found. The …

Software Development c++
Member Avatar for Nathaniel10
0
1K
Member Avatar for uzn

HI, I'm getting the object refernce not set to an instance of an object error in the code below. I couldnt figure it out, where I'm going wrong. Please help. [CODE] Public Function GetConnection() As SqlConnection Dim connectionString As New SqlConnection() Dim Conn As String = Nothing Conn = ConfigurationManager.ConnectionStrings("connectionString").ConnectionString …

Software Development vb.net
Member Avatar for uzn
0
146
Member Avatar for jae5086

Ok, I am having two issues with this program, and since I am new to the forum, yes, I am a beginner so I am sure the error is so common it makes you want to cry seeing it again, haha. Anyway, the program is supposed to keep working with …

Software Development c++
Member Avatar for jae5086
0
107
Member Avatar for blast

First of all, hello everybody :) I'm startint to learn Python and i have question about keyboard input. e.g. I want to enter grades (e.g. 10, 4, 4, 2) and calculate average. So i guess it should be: [CODE]grades = raw_input("Enter grades:") print "Grades:", grades[/CODE] And finaly - question.. How …

Software Development python
Member Avatar for woooee
0
652
Member Avatar for coastcode

I need help with this stack problem. I think I got it, but I dont. Basically its a program to figure out who will be eaten by the dragon from a village. Names, and <CHOMPED> will be in the "villagers-in.txt" file. Every line of the file is supposed to be …

Software Development
Member Avatar for coastcode
0
109
Member Avatar for uzn

Hi, I'm working on searching error files based on time. I have 2 folders which have permanent and temporary error files in it, and the only difference between permanent and temporary error files is creation time. I’m searching for error files in these 2 folders and my search should only …

Software Development vb.net
Member Avatar for uzn
0
127
Member Avatar for Perry31

Hi friends, I'm new to this community. i just want to read string from a file excluding punctuations like ',' ';' or newline character. Is there any way to read the string by specifying the terminate character.

Software Development c
Member Avatar for Martin B
0
127
Member Avatar for bufospro

Hi I am implementing a function that check if user is a man or woman. But it does not worl properly. I press e for example and appears two times Please press m/M for Man w/W for Also sometimes w/W/m/M are not recognised and appears the above. My cose is …

Software Development c
Member Avatar for bufospro
0
99
Member Avatar for pythonlearning

There is a list of dataset and I need to reshuffle them randomly then partition the dataset into n groups. I am using dictionary to store the list of dataset, but I am not sure how to partition items of a dictionary into n groups? What I can think of …

Software Development dataset python
Member Avatar for pythonlearning
0
161
Member Avatar for ukfreak

Hi, Can anyone help me on the requirements below? I dont have any idea on an inventory system...please help!!!! Objective Create an inventory system that allows records of company inputs and outputs, tht's viewable through daily, weekly, monthly, yearly report as well as online control over items. Aim To simplify …

Software Development vb.net
Member Avatar for prvnkmr194
0
106

The End.