43,549 Solved Topics
Remove Filter ![]() | |
in data environment I write code[CODE]SELECT AccountInfo.incategory, Sum(AccountInfo.InAmount) AS SumOfInAmount FROM AccountInfo where Date and Date between DTFr.value and DTTo.vlaue GROUP BY AccountInfo.incategory;[/CODE] in form I write code in a command button like:[CODE]Private Sub Command2_Click() Load DataEnvironment1 With DataEnvironment1 If .Command3.State <> 0 Then .Command3.Clos .Command3 Format(DTFr.Value, "dd/mm/yyyy"), Format(DTTo.Value, "dd/mm/yyyy") … Software Development visual-basic | |
Hi I have a couple of questions for the first app I am creating. Firstly I am trying to have user input certain things, and it is not working correctly. [code] printf("Object : "); scanf("%04X", &code); printf("Message : "); scanf("%s", input); [/code] Object is working perfectly, but then the Message … Software Development c++ | |
what i am supposed to do is calculate the chances of wining a bottle top prize if there is one in five winners. i have to do it a difficult way though. i made a random number that signifies a win when it lands on one. i then have to … Software Development file-system java | |
Can someone identify the error in this code for me? The input line gives an error. [CODE]import java.util.*; public class Time_Convert_Test { Scanner number = new Scanner ( System.in ); public static void main(String[] args) { int firstValue; System.out.print( "Please enter time in hours:" ); firstValue = number.nextInt(); } } … Software Development java | |
So basically I'm making a generic class for rational numbers, and I want to do automatic type conversions in comparisons and operations and constructors. How would I go about doing this? Google has only returned results for template functions rational.h [code=c++] #ifndef RATIONAL_H #define RATIONAL_H class rational { public: rational(); … Software Development c++ | |
I need to find a way to print "Cannot find birthday" if the "searchline" is not found in the "pidigits" file. Maybe using a count somehow. I've tried a lot of different things, but I cannot figure it out. I have attached both files. [CODE]import string def find(): blength = … Software Development python | |
Hello, I am trying to understand how server and clients work. Can anyone explain it and give an example or link to the tutorial. I greatly appreciate your help Software Development client-server java | |
I'm supposed to create a program to read in word by word into a vector. And print out the words connected with '-'... so if the input was hello world the output would be hello-world this is the code ive made so far... right now my input can be hello … Software Development c++ | |
Out of all the possible problems I though I may have in my program, this was not one of them. My menu code is looping twice before stopping for the fgets to take input.. so my menu options are getting printed twice? I have tried flushing the crap out of … Software Development c | |
I have having a bit of trouble with this assignment I have to do. The assignment is: [B]"Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to string consisting of the month followed by … Software Development c++ | |
[CODE]#include<stdio.h> #include <stdlib.h> #define MAXLINE 10000 void reverse(char *str); int main() { int c, i; char j; char S[MAXLINE], *p1; p1=S; for(c=getchar(); c!=EOF; i++) { S[i]=c; } reverse(p1); return 0; } void reverse(char *str) { if(*str) { reverse(str+1); putchar(*str); } } [/CODE] Please help me correct the segmentation fault. [QUOTE]blade71(107)% … Software Development c | |
Dear All, Could you tell me how can I read from the hotseat.txt file all the records and sort by first name. Finally, list the sorted results on the screen. Cheers, turbomen Software Development pascal | |
Hello Guys I am trying create a DataGrid in Windows forms application, but i am unable to fill the data into that. I am using data sets and data adapters for that, but i am getting a empty datagrid. I am quite new to c# so can some body please … Software Development dataset | |
Hi all, I don't use Delphi often so this is probably a stupid question again, but why does Delphi (7) re-index arrays when they're passed to a function, as a simplified example... [CODE]program example; {$APPTYPE CONSOLE} uses SysUtils; var numbers: array[1..5] of Integer = (10, 20, 30, 40, 50); procedure … | |
hi can anyone help me? i cant even run the program I have made... This program should show the distinct numbers after you inputted numbers... I really don't know what to do, hehehe.. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Distinct { class Program { static void Main(string[] … Software Development | |
hey guys, i'm making a kool program for a game but when i debug the program it keep coming up with expected = , when i tried this code: [CODE]Shell ("Ping start" + Combo1.Text + ".blahnin.com -t", vbhide)[/CODE] is there a way to fix it? or is there another way … Software Development visual-basic | |
I would say yes since both are ways of storing information. Software Development c++ | |
Hey all, This isn't so much a question as a heads up... After using python for a few years (mainly doing blender scripts and random console/command-line apps and tools) I've recently started looking into doing some GUI based stuff using wxPython. I've had a look at a few of the … | |
Instructions: Trailing blanks and tabs are defined as blanks and tabs that precede a '\n' character or an EOF to terminate a line, without any intervening characters of other kinds. You should copy a getline() function of the kind you see in the text to read in lines from stdin … Software Development c | |
Hi, I am new to c# and I am trying to read a file which is of format: 1 2 3 3 4 5 6 7 8 1 2 3 4 the problem is I am not able to read file in given format, I am not able to tell … Software Development file-stream file-system | |
how do check whether a particular file is present in a folder in c++(turbo ) Software Development c++ | |
I have a Panel on a form to which i have added a selection of controls with (x,y) coordinates. The panel has Autoscroll enabled. If there are enough controls to require a scrollbar, and the bar has been scrolled down when the paint event fires, the controls all move down … Software Development | |
Hi, been working on this project and just confusing the heck out of myself with classes and stuff and was hoping maybe someone could lend a hand on what I might be doing wrong? The general idea of this is to get the arrow (int 231-234) to point in the … Software Development | |
I wrote a Java program, and it successfully compiles and runs in NetBeans, but I'm not able to do the same in the [B]command line[/B], on Windows XP. It works ok with 1 class, but when I have few files 'package' I have a problems. 1.Start -> run -> cmd … Software Development java java-netbeans | |
![]() | Hi everyone. I'm new here and would like some help with some Python code. I'm trying to use modulus to shift decode an input line (regular sentence or word like "Bill") but I keep going over the regular alphabet in ascii and the "B" becomes an "=" How do I … Software Development python |
Hi, I'm using a table template[header and side] to display all my detail etc in the content place holder. how can i make the web application auto scale to the size when we minimize and maximise.. Software Development | |
hi guys, I am a new student in learning C, I have about a month of experience on it and i am learning now how to use loops. I wanted to write a program using loops in which i ask them to guess a password to a question i ask. … Software Development c | |
I packed a Python script (that uses pyGTK) into an .exe with py2exe. It runs fine, except that the normal GTK theme does not show up. This is what it looks like when I run the script: [url]http://img33.imageshack.us/img33/4080/16sepwed1827.png[/url] And this is what it looks like when I run the .exe … | |
Hi all, Left of a TextBox I have a Label and the text changes during a run so I want the text to be right aligned. So I used the TextAlign property of a Label and set it to MiddleRight. It does not work. Looked for an answer, could not … Software Development | |
I'm attempting to output a 7 digit number in a space 7 columns wide with cout, where loan is my 7 digit number: [code] cout << "$" << setw(7) << fixed << showpoint << setprecision(0) << loan;[/code] Any attempts fiddling with this result in the number being converted to 1e+006. … Software Development c++ | |
How is it possible to check if a String is a valid number. The number can be both an int or a double like: [code] String^ ValidInt = "5"; String^ ValidDouble = "5.01"; [/code] Software Development c++ | |
I have try to get used to the database -java connectivity with a simple address book application below : [CODE] import java.awt.*; import java.awt.event.*; import java.sql.*; import java.applet.*; import javax.swing.*; /////////////////////////////////////////////////////////////////////////////// //Creates the main window with top Menu toolbar. //This is also the class for the main declaration ////////////////////////////////////////////////////////////////////////////// public … Software Development java java-swing microsoft-access open-source window-manager | |
Okay, I was thinking about making an encryption algorithm, now the thing with most algorithms is that they follow specific steps. Well, I was thinking, what if you made an algorithm that generated random characters (the kind you see on your keyboard, excluding characters that could crash the program), and … Software Development algorithm encryption python | |
Design a drawing application (have a look at Microsoft Paint application on your Windows system). The application must have menus, and must be able to draw one or more sharps (e. g. point, line, rectangle, oval, etc). The application should use GUI components. | |
I can't figure out why this won't put buttons 1, 2, and 3, on the top of the frame, with buttons 4, 5 and 6 on the bottom? I realize there should be space between the top row and the bottom row. import java.awt.BorderLayout; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; … Software Development java java-swing | |
Here is the code I have so far: [code]import re from urllib.request import urlopen pg = urlopen('http://www.url.com') pg_r = pg.read() pg.close() print(pg_r) print(re.search('(?<=http://user.url.com/)\w+', pg_r))[/code] What I *want* to do with re.search is find the word between the strings '[color=#0080FF]http://user.url.com/[/color]' and '[color=#0080FF]"[/color]' but I'm not sure how to do that.. Can … Software Development python | |
I am having a problem in displaying image to the web browser using html. I can only make it when the image and the html file is in the same folder. Is there a way to display an image getting it from the different folder of my hard drive? Software Development hard-drive vb.net web-browser | |
Hi everyone, hope someone can help me or guide me since python really something new for me. I use argv to read some input from user. My problem is i don't know how to read the input as a list. Assume that user should give --n and --file as input … Software Development python | |
Hello guys. I am having a problem with the following code. When I try to run the program the instruction int 21 causes an access violation. Can someone tell me how to fix this problem? [CODE].386 .model flat .stack 100h .data message db 'Hello World', 13, 10, '$' .code _start: … Software Development assembly | |
alright, i have been working on this code for two days. it is an assignment for my ap comp science class. i have tried several experiments that have all not worked. im supposed to make a proram that simulates an 11 sided dice being rolled, and it has to use … Software Development java | |
Hi I want to prompt the user to enter the date dd/mm/year and use this later as part of filename and later as object in file(if this helps searching). Does using datetime ensure that user input will be a valid input? I would like the output to be year-mm-dd My … Software Development python | |
my code is: [CODE] import urllib import urllib2 import re #get URL urla='http://www.sc.iitb.ac.in/~bijnan/personal-details.htm' #connect to this website request=urllib.urlopen(urla) #get html file from this website html=request.read() #get the address from above html file print html [/CODE] How can i find all his addresses in this html,can use the re.complie() method to … | |
Hi I am trying to find out a way to swap two nodes in an unordered linked list. I want to find out a way where i can change the links of the two nodes so they are swapped. I know I am supposed to use the previous and next … Software Development algorithm java linked-list | |
[CODE]#include <iostream> #include <cmath> using namespace std; int n; void main(){ cout<<"input the number of students: "; cin>>n; double *scores= new double[n]; cout<<"enter the scores of the students: "; for( int i=0; i<n; i++){ cin>>scores[i]; } double sigma,sigma2, mean, strDev; int ii; for (sigma=ii=0;ii<n;ii++){ sigma+=*scores; *scores++; mean= sigma / n; … Software Development c++ | |
For weeks I've been using the same code without any problems. I call SIGNAL within a thread and it's working like a charm. Then I bring the same module home to the same environment (Ubuntu Jaunty, Python 2.6) and now I'm getting this error: ValueError: signal only works in main … | |
In VB.net (2008 or 2005), how can I ping a website (like for example [url]www.bigtreeworld.com[/url]) and store the website's IP address to a string? Software Development vb.net | |
This is the error I have been receiving when trying to compile my code: [QUOTE]blade71(45)% gcc -o trim trim.c Undefined first referenced symbol in file getline /var/tmp//ccYdyoM3.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status [/QUOTE] My source is only a rough … Software Development c | |
in want to edit the code in such a way tht the user can enter upto 10 values maximum..need help pls ... [CODE] #include <iostream> #include <iomanip> using namespace std; struct node { int info; struct node* next; }*front,*rear; void enqueue(int elt); int dequeue(); void display(); void main() { int … | |
I use MYSQL 5.0 I have a table with a field named ArticlePrice. The content of the ArticlePrice field looks like this [COLOR="red"]10.50[/COLOR] My question is: is there an environment variable or system variable MYSQL who can change the locale currency in to Europe setting . So that the content … |
The End.