43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rmontgomery

Heya guys, this is my first post - this forum has been loads of help in the past :) Anyway, I am currently coding a program that requests a user's Log In name and password, and then (via a SQL query) checks it against a record in the database, and …

Software Development sql vb.net
Member Avatar for rmontgomery
1
89
Member Avatar for ITGuy2010

Hello, I want to create a sorted list, where I enter a name in two separate text boxes(Jones, Brown) and their values in two other textboxes(200,500), then in a fifth text box I enter one of the names and it gives me a messagebox with its corresponding value. Am I …

Software Development vb.net
0
61
Member Avatar for charqus

Hello guys. I made an orbit ( circle ) and a ball. I built the code , like the ball to move on the orbit. But i have a problem with the orbit , because it flash. Is there any option like the orbit to don't flash ? Here's the …

Software Development flash
0
79
Member Avatar for basma.lm

hi, i work on a csharp application with sql server ce database and i have this code: [CODE] private void recherchebtn_Click(object sender, EventArgs e) { SqlCeConnection con = new SqlCeConnection(); con.ConnectionString = @" Data source= `|DataDirectory|\Database1.sdf"; try { con.Open(); } catch (Exception ex) { MessageBox.Show("connection failed"); } finally { SqlCeDataReader …

Software Development open-source
Member Avatar for basma.lm
0
96
Member Avatar for ruigrandaorocha

Hi, so i was told that i could use the scanf() function, validating it with a space, instead of an "ENTER". [CODE] scanf ( "% [^] d", & a); [/CODE] The person told me to use that. I couldn't get it working. Do you know what is wrong? Extra info: …

Software Development c
Member Avatar for ruigrandaorocha
0
189
Member Avatar for sweetgurl

i have no idea to return multiple statement. [code] public double[] compute(double[] times) { double[] t = this.Portion(times); double aa = this.computeTime(180-19.5,t[0]); double bb = this.computeMidDay(t[1]); double cc= this.computeAs(1 + asrJuristic, t[2]); double dd = this.computeTime(0, t[3]); }[/code] how to return all double " aa, bb, cc, dd" in this …

Software Development java
Member Avatar for sweetgurl
0
87
Member Avatar for HiHe

What is the best way way to get numeric input in C?

Software Development c
Member Avatar for HiHe
0
117
Member Avatar for extemer

i got a problem wana display my String but it doesnt work here is my code i dont understand why it doesnt print me anything..... [code]class StringDemo { public static void main(String[] args) { String s1,s2,s3,output; s1=new String("hello"); s2=new String("hello guys"); s3=new String("happy birthday"); output="s1 = " +s1+ "\ns2 = …

Software Development java
Member Avatar for extemer
0
112
Member Avatar for ppllmmnn

[CODE]import java.io.*; import java.util.*; public class UMUC { public static void main(String[] args) throws Exception { String s1 = "input.txt"; String s2 = "output.txt"; try { FileReader fr = new FileReader(s1); BufferedReader br = new BufferedReader(fr); String lineRead = br.readLine(); while(lineRead != null){ s2 = s2 + "\n" + lineRead; …

Software Development java
0
36
Member Avatar for Griff0527

I'm new to C Programming ( 6th week of an 8 week course ) and I am working on user defined structures. I have created a structure to store data received from a file and three of the four sub functions planned: open the file, store the data in the …

Software Development c data-structure
Member Avatar for Griff0527
0
9K
Member Avatar for manutd4life

here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * here's my work: [code=c]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int numOfStars = 0; int count = …

Software Development c
Member Avatar for manutd4life
0
172
Member Avatar for kacete

I'm trying to program a simple traffic light control using a 8051 micro-controller and assembly language. I use the Multisim application for simulation purposes. I'm having a problem with the timers. I want the red and green lights to be on for 10 seconds and the yellow ones for 2 …

Software Development assembly
Member Avatar for kacete
0
3K
Member Avatar for slider212

Hi, Although I have done a reasonable amount of coding I have very little training (self taught) so apologies if this is a stupid question. I have written a basic Defect Management app which allows developers to create a release and assign defects to it. The release object has the …

Software Development c c# c++
Member Avatar for Antenka
0
196
Member Avatar for bondgirl21

Hi , I have created a submit button "sbutton" that should take all totals from 3 boxes and if that total is greater than 1, then it should be subtracted from 1 and the remainder is suppose to be displayed as change...this is what i have [CODE]public void actionPerformed(ActionEvent evt) …

Software Development java
Member Avatar for bondgirl21
0
122
Member Avatar for ryan8806

hi guys, i'm having a bit of a prolem with C++, i've been programming c# for quite a while now, so i am not a novice lol. problem -- i've created the following ofstream in my main method: [CODE]ofstream out1("array1.txt");[/CODE] however later on in the code i call [CODE]out1 << …

Software Development c++
Member Avatar for ryan8806
0
2K
Member Avatar for farsen

Hi. Quite a simple question I guess. I have this xml file: [CODE] <?xml version="1.0" encoding="utf-8" standalone="yes"?> <tasks> <subject> <id>123</id> <headline>a big headline</headline> <content>important stuff</content> </subject> <subject> <id>222</id> <headline>even bigger headline</headline> <content>important stuff 2</content> </subject> <subject> <id>333</id> <headline>a small one</headline> <content>important stuff333</content> </subject> </tasks> [/CODE] With C# I have loaded …

Software Development xml
Member Avatar for PierlucSS
0
3K
Member Avatar for camigirl4k3

these are my instructions: [url]http://tinman.cs.gsu.edu/~raj/2010/sp10/lab6.html[/url] this is what I have so far: [CODE] from myro import * from random import * def moveCell(pic1,cell1,pic2,cell2): x1 = 240*((cell1-1)%3) y1 = 240*((cell1-1)/3) x2 = 240*((cell2-1)%3) y2 = 240*((cell2-1)/3) for i in range(240): for j in range(240): pix1 = getPixel(pic1,x1+i,y1+j) r,g,b = getRGB(pix1) color …

Software Development python
Member Avatar for jcao219
0
203
Member Avatar for john10

Hi, I'm new to C++. I'm having trouble detecting space bar as an input. I'm unfamiliar with using the char data type. I've tried using ASCII decimal numbers but only detects the '.' . And I'm unsure how to go about this without using string or anything advanced. [CODE] char …

Software Development c++
Member Avatar for john10
0
2K
Member Avatar for mariosbikos

[CODE]#include <stdlib.h> #include <stdio.h> #include <time.h> #define MAX_ROWS 10 #define MAX_COLS 10 void sin1(char *map); int main(void) { system("chcp 1253 >nul "); FILE *fileptr; char myColchar,apantisi,map[MAX_ROWS][MAX_COLS]; int apotelesma,myColnum=1,myrow=1,k,a,l,c,row, col; char r,fileRow[MAX_COLS + 2]; // account for newline and NULL printf("dose tin diataksi me ton arithmo pou epithymeis(1/2): \n"); scanf("%d",&k);//edo tha …

Software Development c os-x
Member Avatar for mariosbikos
0
269
Member Avatar for python.noob

Hello Friends, I'm using PyQt 4.9... I want to have an IDE with code completion to work with Python and PyQt (since we are storing both the codes in a single file with .py extension).. Once i've tested eclipse and pydev plugin.. It was pretty good to work with.. Shall …

Software Development ide python
Member Avatar for MikaelHalen
0
1K
Member Avatar for Stefano Mtangoo

How do I truncate double like 99.998765 to something like 99.99 instead of 100.00? If some printf("%.2f", myDouble); gives 100 That is not what I want. Any help is appreciated

Software Development c++
Member Avatar for Stefano Mtangoo
0
199
Member Avatar for Mz3g

Hi guys, When I run this code, I got segmentation fault and i can't figure out where the mistake is? I'd really appreciate any help. thanks [code] #include <fstream> #include <iostream> #include <string> #include <sstream> using namespace std; int main () { ifstream file, dest; file.open ("arp.txt"); if (!file) { …

Software Development c++
Member Avatar for Mz3g
0
174
Member Avatar for tonymuilenburg

Hi all, I'm trying to capture an event when tab is pressed in a textbox using visual studio.net, and am having a hard time. I can capture anything else, inluding the keys that are difficult like instert, alt, and the arrow keys. Here is the MSDN page that did not …

Software Development c++ visual-studio
Member Avatar for tonymuilenburg
0
306
Member Avatar for k2k

would anyone please take a quick look? this always return false for some reason... the database connection is fine and the query is fine... it actually returned the right password from the database. please see below [code] public boolean passCheck(String login, String pass) { String realPass=""; try { String query …

Software Development java
Member Avatar for stultuske
0
150
Member Avatar for dre-logics

I use visual studio 8.0 Two forms: windows form => form1.vb windows dialog form => ProcesDialog.vb On the procesDiaglog are five label fields: label1 label2 label3 label4 label5 Two picture fields picture1 picture2 I want to show the progress of building a Windows form1 I would always show the progress …

Software Development vb.net visual-studio
Member Avatar for dre-logics
0
101
Member Avatar for capson

Hello, If say I have 5 variables: v1=3 v2=1 v3=7 v4=6 v5=5 and two lists made from these L1=[v1, v2, v3, v4, v5] , L2= [3, 1, 7, 6, 5] and I sort on L2, so that I have, L2=L2.sort()=[1, 3, 5, 6, 7] Is there a way to sort …

Software Development python
Member Avatar for TrustyTony
0
123
Member Avatar for jemz

hello, can you help me how to put picture in my button..example i have cmdsavebutton..and i want to put beauty on my form i want my button to change to picture just like saving a document there is a square form then when you click that it will be saved...can …

Software Development visual-basic
Member Avatar for jemz
0
105
Member Avatar for SanjitVigneshS

I was attempting a problem on [URL="http://projecteuler.net/"]Project Euler[/URL] - Problem 20. Since 100! could not be stored as ulong, I was thinking of using hexadecimal. Though I find a lot of example of converting hexa to decomal and vice - versa, I cannot find any info on using it in …

Software Development mathematics
Member Avatar for SanjitVigneshS
0
94
Member Avatar for kmh72756

Can someone else who has had more caffeine than I please look at this example and tell me what I am doing wrong? I have a custom business object called Customer and a Form1 with a BindingSource1, NumericUpDown1, TextBox1 and ComboBox1 and the attached code. Setting break points in the …

Software Development vb.net
Member Avatar for kvprajapati
0
124
Member Avatar for ebushyu

I am doing an assignment that requires me to have 4 different radio button(earth, moon, jupiter and saturn) and two labels one showing the weight (on different planet) and one for the delivery price ( $5.00 for weights up to 1 kg; $10.00 for higher than 1 kg up to …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
95
Member Avatar for gonzi.p12

Hi guys, I am using MyEclipse....I have even import the itext.jar file to my project folder....still I am getting error in my java code.... Error in resolving import com.lowagie.text.html.*; import com.lowagie.text.pdf.*; Can anyone help me.............

Software Development java pdf
Member Avatar for mintie
0
4K
Member Avatar for Dcurvez

This is what I have Done..and this is what is wrong: What I have done is made a windows form project. On Form2, 3, and 4..I have a Control Tab..and this control Tab is holding Images and text boxes. What I want to do is implement SAVE into my menustrip …

Software Development vb.net
Member Avatar for kvprajapati
0
114
Member Avatar for ms_farenheit1

I am trying to construct a linked list that contains string pointers. Since strings can be quite large, I am trying to save space and access time by storing pointers to them in the linked list. The strings are read from a text file and inserted into a linked list. …

Software Development c++ linked-list
Member Avatar for ms_farenheit1
0
139
Member Avatar for theABCasian

Hey all ok so the issue seems to be at line 45 it seems to be making a loop from the output betting im just doing something wrong with exceptions, sense im just learning them. thanks in advance [CODE] /* File Name: Demo.cpp Chapter No. 16 - Exercise No. 2 …

Software Development c++
Member Avatar for theABCasian
0
70
Member Avatar for joegarside90

Hi everyone First post but I have been browsing as a guest for help with my university python project for a while now. There some really great help on here, Thank you! Right I'm doing a beginners python programming unit as part of my uni course, and as part of …

Software Development python
Member Avatar for vegaseat
0
414
Member Avatar for tcstom

I have some data in the memory which is pointed to by a pointer (ptr2data), how do i pass this data to a function which accepts unsigned long/DWORD data types? [code] unsigned long* ptr2data; DWORD temp; ptr2data = (unsigned long*)&SomeArrayOfData[4]; temp = (DWORD) tempSerNum; AddDevice(7, temp); [/code] The above code …

Software Development c
Member Avatar for tcstom
0
141
Member Avatar for Annettest

Hello everyone: I'm having a problem with vector indexing. The following code results in a segmentation fault: [CODE] for (int i = 0; i < (rows * rows); i++) { temperature[(i * rows) + (rows - 1)] = 0; }[/CODE] And: [CODE] for (int i = 0; i < (rows …

Software Development c++
Member Avatar for Annettest
0
294
Member Avatar for samready

Hi. I am trying to match a string: "RemoveAcc $k: $v" There are an arbitrary number of spaces between RemoveAcc and the two variables...Preferably I would like to store these to variables using $1 and $2 after the string is parsed, but I do not want to save the RemoveAcc …

Software Development perl regex
Member Avatar for d5e5
0
185
Member Avatar for msr

Hello, I would like to have a PriorityQueue whose elementes are instances of different subclasses. For example: Event is an abstract superclass. Event1, Event2, Event3 are subclasses. Xpto<> is an interface and PriorityQueueXpto<> is a class that implements Xpto and extends PriorityQueue. [CODE]Xpto<? extends Event> a = new PriorityQueueXpto<????>();[/CODE] Is …

Software Development java queue
Member Avatar for msr
0
103
Member Avatar for hsncvs

Excuse me if it is a silly mistake but i am newbie to java and couldn't figure it out. Basically it searches if txtText (text area) contains the txtSearchParam (text field) and returns the number of txtSearchParam in txtText. Algorithm is working. simply i can't access variables defined in main …

Software Development algorithm java java-swing
Member Avatar for hsncvs
0
3K
Member Avatar for cyon

I have a bot that connects to a server. The server code is a base class and the code that processes the data from the server is in a class which inherits the base class. I have two conditions for this assignment: [LIST=1] [*]The entire code should be runnable from …

Software Development oop python
Member Avatar for cyon
0
156
Member Avatar for bperiod

[Linker error] undefined reference to `__cpu_features_init' comes to [CODE]#include <stdio.h> int main(){ char c; printf("Hello World!"); scanf("%c", &c); } [/CODE] I don't think that it's code problem. What can I do? (Dev C++ newest version) (I tried reinstalling DEV C++)

Software Development c c++
Member Avatar for Fbody
0
830
Member Avatar for ilkeamasya

As you see at below I used "-1" as my sentinel value but my program wants the other 6 values i asked for in scanf too. How can i solve this problem? I just want the user to enter -1 and exit my loop. I would greatly appreciate for your …

Software Development c programming-construct
Member Avatar for ilkeamasya
0
249
Member Avatar for ilkeamasya

Hello, there. I'm trying to write a program which reads student information from keyboard and does some calculations. I've just started it and I dont know much about this "Struct" topic. As far as I know, I've tried to do something and here is the result. [CODE]#include <stdio.h> #define N …

Software Development c
Member Avatar for ilkeamasya
0
250
Member Avatar for vinians

Hi Im new to this comunity and Im in throuble with C heheh. My problem is that: Im using LUA to create scripting capabilities do my software in C. So, I ve created a file called script.c to suport all script code of my project. See: [B]script.c [/B](some lines) [code] …

Software Development c
Member Avatar for vinians
0
102
Member Avatar for bunnyboy

Can someone explain me why this string extended method gives me an ArgumentOutOfRangeException (Index and count must refer to a location within the string. Parameter name: count), [CODE=C#] public static string Remove(this string str, char lower, char upper) { return str.Where(ch => ch <= upper && ch >=lower) .Aggregate(string.Empty, (current, …

Software Development
Member Avatar for apegram
0
357
Member Avatar for zachattack05

I'm lost. I've been trying to do this for a while now and I can get halfway what I need. But I can't tell if it's working or not, or where my problem is. I don't want to use the wizard in VS to add a data source, I'd like …

Software Development dataset open-source
Member Avatar for zachattack05
0
114
Member Avatar for jellybeannn

Hi, I've got a date range between a start and end date, which has to be each month on the valuation day, but if end date(2010/07/20) is before the valuation date(2010/07/31), the valuation month for that month must be displayed. if (endDate.Day < validDay) is true, then it works perfect. …

Software Development
Member Avatar for kvprajapati
0
123
Member Avatar for sam8

Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around …

Software Development algorithm java
Member Avatar for sam8
0
3K
Member Avatar for inisca

[CODE] OpenFileDialog dlg; richTextBox1->Text=dlg.FileNames; [/CODE] Can someone tell me what am I doing wrong? I get the following errors cannot convert parameter 1 from 'cli::array<Type,dimension> ^' to 'System::String ^' I want to multiselect files and then print their names intoo richTextBox1. I know that richTextBox1>Text is System::String^ and dlg.FileNames is …

Software Development c++
Member Avatar for kvprajapati
0
200

The End.