64,152 Solved Topics

Remove Filter
Member Avatar for
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

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 …

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

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] …

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

Member Avatar for N1GHTS
0
215
Member Avatar for muloki

hi all trying to set up an online shop BUT.. cant get javascript to accept "£" so having to use "$" instead..not good for a uk site lol

Member Avatar for MartinRinehart
0
66
Member Avatar for shadiadiph

How can I change the current text style at the current position of the cursor without chnaging the whole div id's font style? [code] document.getElementById('message').style.fontWeight='bold'; [/code] This changes all the previous text styling in the textarea i have been trying to find a way aboutit but can't seem to find …

Member Avatar for shadiadiph
0
107
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 …

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 …

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.

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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. …

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 …

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 …

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, …

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 …

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 …

Member Avatar for TrustyTony
0
301
Member Avatar for vaibhav1983

Hi All, I am trying to implement a directory like url rewriting in php. My URL goes like this [url]www.xyz.com/Parameter1/Parameter2/1[/url] This request is forwarded to a php script, getParams.php Parameter1 and Parameter2 in the URL are GET parameters. "1" in the url indicates the page number. The URL rule that …

Member Avatar for vaibhav1983
0
143
Member Avatar for changeco

I need to make a Registration show hide based on whether you are > 48 hours or =< 48 hours out... I wrote this before based on a start and end time... [CODE]<?php $startdate = $row_product['startdate']; $enddate = $row_product['enddate']; $todays_date = date("Y-m-d"); if ($enddate <= $todays_date) { header('Location: expired.php'); } …

Member Avatar for changeco
0
120
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) { …

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 …

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. …

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 …

Member Avatar for sharathg.satya
0
143
Member Avatar for slap01

im working on something that will display the title and the author, but i have seperate table for the title and author, my code displays the title but not the author, what should i do? heres my code [CODE]<html> <body> <form method=post action="find.php"> <h2>Search For:</h2> <p> Academic Year : <input …

Member Avatar for slap01
0
105
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 …

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?

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 …

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 …

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 …

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

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

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 …

Member Avatar for sirlink99
0
166
Member Avatar for danswater

Hi! can someone help me to figure out with this code? [CODE=php] <form method="POST" action="insert.php"> <input type="checkbox" name="id[]" value="32">Article #32<br> <input type="checkbox" name="id[]" value="38">Article #38<br> <input type="checkbox" name="id[]" value="45">Article #45<br> <input type="checkbox" name="id[]" value="59">Article #59<br> <input type="hidden" name="referer" value="123"> <!-- This is the ID of the "referring" article --> <input …

Member Avatar for danswater
0
134
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 …

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 …

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?

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 …

Member Avatar for jemimaloh
0
119
Member Avatar for The5sisters

Although my server has php memory allocation of 64MB I get [QUOTE]Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 311296 bytes) in /home/kasey/public_html/Create/wp-includes/class-simplepie.php on line 4186 [/QUOTE] in my dashboard for WP/buddypress combination blog. I re-installed buddypress.WP won't allow a re-install despite the fact that it …

Member Avatar for The5sisters
0
155
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 …

Member Avatar for berwick53
0
100
Member Avatar for jackparsana

Hi, please help me to know how to backup and Restore the Database. I am newer in backup topics. please help me. thanks jack

Member Avatar for smantscheff
0
112
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 …

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 …

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 …

Member Avatar for jae5086
0
107

The End.