199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for solitaryy

Hi I have a file (.txt) I need my program to read that stores information like this: [CODE]Thomas 2000 Bill 3000 Jake 3500[/CODE] At which point I need to have the user input via cin, [I]name of the person[/I] ie: Jake and have them input another cin(double) which will multiply …

Member Avatar for chiwawa10
0
94
Member Avatar for ﻼim

:) hi there daniwebies, can anyone have a sample of source code on reloading two frames in a page by a link? [php|javascript] - setup is frame[one] and frame[two] is both located to index.php - frame[two] have the link [[U][COLOR="Green"]reload page[/COLOR][/U]] - clicking frame[two] reload link should reload both frame[one] …

Member Avatar for ﻼim
0
93
Member Avatar for tylermlarson

I have to do a program for my C++ class, and we have to write all programs using gedit on ubuntu and run them all using the terminal command prompt. I dont know what the whole ./a.out is, and all i have for my program is [CODE]// This program will …

Member Avatar for VernonDozier
0
118
Member Avatar for dre-logics

I use Visual Basic 2008 + MySQL Database I have create a textbox1.text MySQL Table [COLOR="Green"]Test[/COLOR] with Two Columns: Column Name DataType RecordID INT(11) Money Decimal(10,2) [CODE] TextBox1.Text = "€ 22,07" [/CODE] I want the [COLOR="green"]contents[/COLOR] of field [COLOR="Green"]textbox1.txt [/COLOR]save it into [COLOR="green"]money[/COLOR] in the column of the [COLOR="Green"]Test[/COLOR] table! …

Member Avatar for dre-logics
0
587
Member Avatar for pnelsonsr

A group has been using a VB app for a while and it uses an access db as its data storage. I've been tasked with completely redoing this in java. The application will be self-contained with the data local (with internet updates), but not a central connection to a db. …

Member Avatar for ~s.o.s~
0
79
Member Avatar for mukundgkallapur

Dear All, I am having a login page where I need to enter the login name and password for a user, which I need to verify with the backend database, using LINQ. I have tried but I am not getting. Can anybody assist. Following is the underlying code. [CODE] protected …

Member Avatar for rohand
0
164
Member Avatar for alcx88

[CODE] #include <stdio.h> 5 6 #define MAX 100 7 8 int main(void) 9 { 10 char msg1[MAX], *p, *q, msg2[MAX]; 11 12 printf("Enter a message: "); 13 for (p=msg1; p<msg1+MAX; p++) 14 { 15 *p=getchar(); 16 if (*p=='\n') 17 break; 18 } 19 20 for (p--; p>=msg1; p--) 21 { …

Member Avatar for chiwawa10
0
96
Member Avatar for tammy2512

hello, I am facing a problem with the following code: select year(regdate) as [Year],month(regdate) as [Month], CONVERT(varchar(3),regdate,100)as inmonth, count(*) as incount, cast(sum(amt)as decimal(20,2))as insum, count(case when nbr <>' ' then amt else Null end) as incountpo, SUM(case when nbr <>' ' then (amt)else 0.00 end)as insumpo, --cast( (Insumpo / InSum …

Member Avatar for kplcjl
0
155
Member Avatar for zulhimi89

anyone can help me to merge a data from potrait to landscape...or else dont hav any solution for this

Member Avatar for zulhimi89
0
91
Member Avatar for swathys

hi, How to code, if let say i want only 10 records to inserted in listview. By mean listview only can accept 10 records. please guide thank you

Member Avatar for codeorder
0
205
Member Avatar for MisterBook

I've written a flexible quicksort module capable of taking a vector reference pass, cloning it, altering the clone and swapping with the original to print the list. For the most part, this works wonderfully, except for one thing. Occasionally, it gets numbers wrong. Not all the time. If I give …

Member Avatar for MisterBook
0
133
Member Avatar for b1izzard

Hi all, I got this Error Message while I try to preview the records in Dataset Designer: "The connection string could not be found or Data provider associated with the connection string could not be loaded" Here is my dataset.xsd code [CODE] <Connections> <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="loginConnectionString1" IsAppSettingsProperty="true" Modifier="Assembly" Name="loginConnectionString1 (MySettings)" …

Member Avatar for MaKhalid
0
509
Member Avatar for Katana24

Right so I have a pretty simple code that draws the contents of a 2D array onto a panel and the panel is placed onto a frame. The array is of type String and just houses a number of different fruit. The problem is that when the contents is painted …

Member Avatar for Ezzaral
0
2K
Member Avatar for LevyDee

Im trying to create an object of my CAMERA class in my APP class, but I am getting the error: error C2146: syntax error : missing ';' before identifier 'myCam' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C4430: missing type specifier - …

Member Avatar for LevyDee
0
110
Member Avatar for nyler01

I'm new to php and i need some help. I wrote a script that supposed to count the number of records with the same value and show them in webpage, yes it is grouping the records with the same value but it is not able to show how many records …

Member Avatar for nyler01
0
124
Member Avatar for gudads

// I have no knowledge of using gcc compiler. Can some1 please help my creating my first program in c on mac book.... saving on desktop. //saving as testing.c on desktop .. // Creating C program #include<stdio.h> int main(void) { int x=2; printf("X=%d",x); return 0; } Building target “PracticeC” of …

Member Avatar for knobcreekman
0
284
Member Avatar for lightningrod66

I have an html form with multiple text fields that when submit is pressed, a php file processes the form, storing submitted info into mysql database, then sending email with same data. I would like to know how to: 1) make some fields required, check the form to make sure …

Member Avatar for diafol
0
143
Member Avatar for jeevObe

i have create a registration form in asp.net & sql server..It's working good.. i generate ID for user when they click "sign Up" button..(the ID will appear in drop down list at form-ID not saved yet into database).. the problem is when several user register at same time and click …

Member Avatar for kplcjl
0
126
Member Avatar for flyingcurry

I am writing a program for class on catching exceptions. Everything compiles fine, but when I try to test my error trapping, this shows up. [COLOR="Red"]"How many integers would you like to enter? f Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 This is not a correct integer, please try again. Before: …

Member Avatar for flyingcurry
0
177
Member Avatar for bangor_boy

I need help with this, im writing a league system and i need to order the teams by the points they have received max to min, im lost to where to begin any help would be good. [code] public class League { /* instance variables */ private Team name; private …

Member Avatar for Ezzaral
0
157
Member Avatar for LianaN

Hi! Does anybody know how to add MouseListener to JMenu? I have the following working code, however, as you may see, I have MenuListener that allows running "createBaseRight" after selecting (NOT CLICKING) JMenu: home. Thanks in advance! [CODE] JMenuBar menubar = new JMenuBar(); this.setJMenuBar(menubar); JMenu home = new JMenu("Начальная страница"); …

Member Avatar for NormR1
0
180
Member Avatar for GHETTO COWBOY

HI I am currently in a college level programming class studying C, I've been enjoying coding and have seriously thought about it as a career... up until now. here is the link to the homework assignment if anyone is interested: [URL="http://www.engineering.uiowa.edu/~cie/Homework/hw02.htm"]http://www.engineering.uiowa.edu/~cie/Homework/hw02.htm[/URL] In short I have to create 2 matricies using …

Member Avatar for Adak
0
114
Member Avatar for javadumbass

I need to create a program where in you would draw a line, just like the paint application, but if you drag it, the lines you created would be deleted.It also displays the(x,y) where your mouse point at in the screen. I'm starting on nothing.So anyone who can help me? …

Member Avatar for javadumbass
0
1K
Member Avatar for Shotty

Hey just started working with inheritance in my java class, my account class compiles fine, but i get a .class expected error when i try to compile the CheckingAccount class, can anyone tell me why? thx [CODE] package bank; abstract class Account { public Account(int accountNumber, String accountOwner) { number …

Member Avatar for Shotty
0
259
Member Avatar for NewOrder

i have two codes: This one works. [CODE] public class ChessInterface1{ public static void main(String[] arg){ boolean valid4=false; int rowStart=8; int columnStart=3; int columnEnd =2; int rowEnd=1; int a=0; int size=rowStart-rowEnd; Math.abs(size); for(int i=rowStart-1;i>=rowEnd;i--){ for(int j=columnStart-1;j>=columnEnd;j--){ while(columnStart>columnEnd && rowStart>rowEnd){ rowStart--; columnStart--; a++; System.out.println("comparable variable is :"+a); System.out.println("The column number is …

Member Avatar for NewOrder
0
107
Member Avatar for rahulrulez

Hey guys.. I'm working on one project which is in directory - [QUOTE]C:\Tomcat 6\webapps\ROOT\cart[/QUOTE] This is the code in file called shop.jsp [CODE] <%@ page language = "java" contentType = "text/html" import = "ShoppingBasket, Product, java.sql.*" errorPage = "errorpage.jsp" %> <html> <head> <title>Welcome to Shop</title></head> <body> <table width = "385" …

Member Avatar for nohup
0
2K
Member Avatar for LianaN

Hi buddies! I'm creating an application that will be used at different operating systems and, most likely, different display resolutions. My current display resolution is 1680x1050. I've tried using layouts to position components in the frame. So, I didn't define any sizes of components (did't use "setSize", "setBounds", setLocation"). However, …

Member Avatar for Ezzaral
0
152
Member Avatar for LianaN

Hello! I have a problem with filtering JTable (AbstractTableModel)... So, this is my code: [CODE] //Create table and filter public TableRowSorter<MyTableModel> sorter; public static MyTableModel tableModel; ... //Define table and fill it with List "userDataList" List<UserDataRow> userDataList = readuserdatafromfile(); filetree.Form.tableDetails = new JTable(); tableModel = new MyTableModel( userDataList ); filetree.Form.tableDetails.setModel(tableModel); …

Member Avatar for adams161
0
536
Member Avatar for 0xCMD

Greetings, I have table CUSTOMER: [CODE] mysql> describe CUSTOMER; +---------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+-------+ | CUSTOMER_NUM | char(3) | NO | PRI | NULL | | | CUSTOMER_NAME | char(35) | NO | | NULL | | | STREET | …

Member Avatar for 0xCMD
0
250
Member Avatar for bmos31

I was just wondering how to pass two objects s1 and s2, both of which have to arguments, to a function, someFunction(). I actually only want to pass the second argument of each object for s1 and s2 to the same function, compare the two arguments and then display some …

Member Avatar for bmos31
0
167
Member Avatar for smoothe19

How do i write a source code in java that finds the non-trivial factors of a number e.g Case : 2 is prime. Case : 3 is prime. Case : 5 is prime. Case : 7 is prime. Case : 10 has factor(s): 2 5 Case : 12 has factor(s): …

Member Avatar for Akill10
0
592
Member Avatar for isfahan

when i play my site with IIS ... aspnet_wp.exe get 100 MG of memory. i disposble any variable ... i use textbuilder ... i chack all of loops ... what am i do ?!

Member Avatar for MichaelWClark
0
332
Member Avatar for tgiller

Hello I have a problem with my vba collection object. When I run the code below I get the "out of stack space (error 28)" message. It seems to me that my collection shouldnt take up so much memory as the each object in it is just a set of …

0
103
Member Avatar for CodyOebel

I am programming in windows api, and I am familiar with using the ScreenToClient() function, and passing in a POINT structure variable for LPARAM with the coordinates defined in the point struct to simply send mouse clicks and so forth to the window in which I have the handle to. …

Member Avatar for CodyOebel
0
142
Member Avatar for dkolcun

I'm very new to prgramming (in my first Programming class) and have a question about division. My project is to build a math flashcard program. I've gotten every thing else done but having trouble with the division. Where I'm having a problem is when the user inputs the correct answer …

Member Avatar for dkolcun
0
113
Member Avatar for mjs051

I'm currently learning Python, and at the moment I'm writing a simple grocery list program. At one point in the program, the user is asked how many items are on their shopping list. What I want to do is take the number that the user inputs (lets say it's 5), …

Member Avatar for TrustyTony
0
9K
Member Avatar for simpatar

Here's the problem. I'm using pythons re-functions. I'm supposed to make a re-function to check if a string ends with 3 numbers(or more) before the extension.(e.g. 123.txt, 93821.ini) Here's my code that's supposed to do the magic [code] re.search('[0-9][0-9][0-9]\.','1234.txt') [/code] now, this doesn't work out. And I have no clue …

Member Avatar for simpatar
0
119
Member Avatar for StacyAnn1296

Daily life magazine wants an analysis of the demographic characteristics its readers. The marketing department has collected reader survey records containing, the age, gender, maritial status, and annual income of the readers. Design an application that allows a user to enter reader data and, when data entry is complete produces …

Member Avatar for kes166
0
322
Member Avatar for Suzie999

I wonder if someone can point me toward some native functions to help me locate the physical co-ordinates of a flash object on a webpage. Its not static and depends whether there are advertisements on the page and other user specific options. Unfortunately I have no code yet as I'm …

Member Avatar for Suzie999
0
129
Member Avatar for suvcss

Hello! I was making simple programm for word search, but found an error I can't explain. This code piece of code that causes it is: if (word==search){ printf("\n %i %s ", i, word); i++; } I can only suppose that the compiler(visual studio express) dosn't support such comparisions of sth …

Member Avatar for suvcss
0
2K
Member Avatar for Rahul.menon

how to print the below triangle without using arrays a a b a e i a b c d a e i o u

Member Avatar for Ancient Dragon
0
136
Member Avatar for lewashby

I'M reading the book "Beginning Game Development with Python and Pygame". The book showed me how to calculate the distance between two points using vectors. It first explained that you just subtract the values in the first point from the second. But just page or two pages later it says …

Member Avatar for Beat_Slayer
0
89
Member Avatar for lewashby

[CODE]class Vector2(object): def __init__(self, x= 0.0, y = 0.0): self.x = x self.y = y def __str__(self): return "(%s, %s)" % (self.x, self.y) @classmethod def from_points(cls, P1, P2): return cls( P2[0] - P1[0], P2[1] - P1[1] ) A = (10.0, 20.0) B = (30.0, 35.0) AB = Vector2.from_points(A, B) print …

Member Avatar for Beat_Slayer
0
110
Member Avatar for SBA-CDeCinko

I have the following scenario and am looking for the best way to structure things. I am finding lots and lots of conflicting advice online. [LIST] [*]I have a user control on my home page for a simple search. [*]I have a user control on a search page for a …

Member Avatar for MichaelWClark
0
109
Member Avatar for fire_

Hello. I know this is lame questinon but what is multi-if syntax? Like this: [CODE]if (a == 0) doSometihng(); if (a == 1) doSomething(); else doElse();[/CODE] Or like this: [CODE]if (a == 0) doSometihng(); else if (a == 1) doSomething(); else if (a == 2) doSomething(); else doElse();[/CODE] I'm useing …

Member Avatar for Fbody
0
90
Member Avatar for ash.28.88
Member Avatar for Shaswat

i know mail function in php mail(to,message,from,etc) but when i run that i get an error? regarding smtp or something someone told me that u need mailserver. where to get that from.also how to configure it. can u suggest a site with demo. i saw hmailsever but dont know how …

Member Avatar for sourcebits
0
154
Member Avatar for awmantonio

I have program in VB.NET 2008 where I want to update the premamt cell value in the tblPrem Access table, where the premno is the maximum (autogenerated as 1,2,3...), but only within a specified set of common numbers in a column (contno) I am currently saving. This contno is from …

Member Avatar for awmantonio
0
110
Member Avatar for viandante

Hi guys! I'm writing my first small application*. For this I'm using Sqlite as database, Glade as GUI builder and Python as coding. The application is pretty simple: it's a notebook to store names, surnames, adresses, etc.. I've been able to create a first window to store data in Sqlite …

Member Avatar for woooee
0
891
Member Avatar for jakesee

Hi folks, I have a mathematic Vector3 class that looks like [CODE] class Vector3 { public: union { struct { float x; float y; float z; // btw, if declared like // float x, y, z; // will there be a difference in packing order? }; float v[3]; }; // …

Member Avatar for jakesee
0
161

The End.