132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ben1996123

I want it to list prime numbers from 1 to 100 like this: 1. 1 2. 2 3. 3 4. 5 5. 7 etc. [CODE]#include <iostream> using namespace std; int main(){ int num = 1; double number = 1; double div = 1; bool prime = true; int top = …

Software Development c++
Member Avatar for fibbo
0
158
Member Avatar for zachattack05

If my application was designed to generate a "schedule" or list of dates, and I wanted to store those dates in a SQL server as an array, what SQL data type would I pick? [COLOR="Red"]ntext [/COLOR]seems excessive, and I don't think [COLOR="red"]date [/COLOR]would work...any suggestions?

Software Development sql
Member Avatar for zachattack05
0
2K
Member Avatar for shelexelex

please i am new to this vb programming but i have a challenge before me.. I need to make a program that will compare the date in the database with the system date and if they are equal, it pops up a notification on the icon tray. Your help will …

Software Development api visual-basic
Member Avatar for shelexelex
0
313
Member Avatar for howardfalcon

We are trying to automate an input process on a web based application. We are able to do the login and then by using a Java script (the tool bar is in java) select the appropriate section for input. What happens is another window appears and we have no access …

Software Development
Member Avatar for skatamatic
0
123
Member Avatar for pseudorandom21

Not sure where to post this, hopefully here. Basically if I make an application that does some stuff in the background, how does an antivirus know it isn't a trojan horse or something? Will my application be flagged as a virus, or is it generally safe to assume it won't …

Software Development
Member Avatar for skatamatic
0
363
Member Avatar for gbatemper

My text game is a survival text game where you try to survive, and you can do a certain number of actions per day, and you can attack other tribes, etc. I wanted to include a weather system, where the Weather I want to implement Drought - Decreases Water Supply …

Software Development apache java
Member Avatar for JamesCherrill
0
175
Member Avatar for Dhanesh10

hello friends, i want to insert date in date(text)field of my java form by using calender so that it would be easy for the user to pick the date instead of giving manually, can anybody tell me how to do that?

Software Development java
Member Avatar for jackmaverick1
0
135
Member Avatar for pseudorandom21

Anyone know of a generic guide for using third party C++ libraries, specifically with Visual Studio 2010? I'm thinking "winging it" isn't cutting it, I want a resource to learn more about how these things are usually prepared, and used. I swear I saw a mention of a library system …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
3K
Member Avatar for AhmedGhazey

Hello I'm writing java code read arabic character but it don't show the text correctly it show squares Any one Can help me any help will be appreciated Thanks Yours Ahmed Ghazey

Software Development java
Member Avatar for ahmaadaadel
0
4K
Member Avatar for neosonic

I have this little problem (at least I hope it is little). My vb6 program behaves differently when I execute it with the execute button in vb6 and when I execute it by using the compiled .exe file. I have a huge 2 picture boxes which loads 2 x 5 …

Software Development visual-basic
Member Avatar for neosonic
0
367
Member Avatar for baby_c

Hey friends.Need a help from you again. I'm trying to study about streams and I wrote small code for get input from command line and print it in the screen,but It prints weird characters like Japanese :O . Can anyone explain what I did wrong... [CODE] import java.io.*; public class …

Software Development java
Member Avatar for baby_c
0
216
Member Avatar for willywhomperz

I am trying to count words. It should count the same word once instead of twice. I can't seem to figure that out. [CODE] import java.util.*; public class WordCount { public static void main (String[]args) { final int LINES = 6; Scanner in = new Scanner(System.in); String paragraph = ""; …

Software Development java
Member Avatar for NormR1
0
274
Member Avatar for ToniSoft

hi everybody, i need help with windows form, i am working in one win application, so what i need, ex. i have form which is name MainForm, and i have another form which is for user login named Loginform, what i need is when i execute a project i need …

Software Development
Member Avatar for ToniSoft
0
116
Member Avatar for jayawant.sawant

hi, how to create a setup file with inno software including interop.MessengerAPI.dll of any application.I have created a setup file with inno.but it is work in only my pc it is not work in anather pc after creating a setup file.In my application is chatting application.how it is work interop.MessengerAPI.dll …

Software Development vb.net
Member Avatar for jayawant.sawant
0
170
Member Avatar for mattyg1192003

Hey Guys, I am a new student to Java and I am working on an assignment for school. I am not looking for anyone to do my work for me, just some guidance on what I can do to fix the problem. I have done research on this issue on …

Software Development daniweb-bug java
Member Avatar for AhmedGhazey
0
3K
Member Avatar for alex1050

[CODE]int main() { // stating my primivative data types and variables float num1,result; char symbol, choice; printf("Calculator Is ON\n"); do{ result=0.0; //assign 0.0 to result printf("Result=%.1f\n", result); scanf(" %c",&symbol); while((symbol!='r') && (symbol!='R')) { scanf(" %f",&num1); switch(symbol) { case'+': result=result+num1; printf("Result = %.1f\n",result); break; case'-': result=result-num1; printf("Result = %.1f\n",result); break; case'*': …

Software Development c
Member Avatar for alex1050
0
107
Member Avatar for Thigina

Hi, while im doing my project, i have problem to save edited data from jtable into database..i have attach the sample interface and here is the code...please help me...tq [CODE] ResultSet rs=st.executeQuery("select * from 3BITC"); while(rs.next()){ jTable1.getValueAt(row, col); row++; col++; } rs.close(); try{ Statement st1=con.createStatement(); ResultSet rs1=st1.executeQuery("UPDATE 3BITC SET Status …

Software Development java
Member Avatar for Thigina
0
2K
Member Avatar for MaggieLynn

[code] using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { public class AccountInfo { public int Number { get; set; } public double Balance { get; set; } public string LastName { get; set; } } // private class members, creating new arrays private int [] AcctNumber = …

Software Development c#
Member Avatar for ddanbe
0
223
Member Avatar for manish250

I have a silly question for you guys.i am running a java program [CODE]public class manish { public static void main(String s[]) { Date d=new Date(); System.out.println("Date is"+d.toString()); } } [/CODE] while i running this on RHEL 5.2 i am getting this output Date isFri Jul 08 10:55:30 IST 2011 …

Software Development java
Member Avatar for Majestics
0
225
Member Avatar for masterofpuppets

Hello guys, Here's a problem that's giving me a hard time. I am working on a web server in Java and right now I want to enable the user to create a photo album. The user can type the album name in an <input> field in an HTML form. The …

Software Development client-server java web-server
Member Avatar for masterofpuppets
0
173
Member Avatar for Majestics

Jtable insert new inserted row at the top.... I want the new inserted row below. Problem 10 james microsoft c.e.o 9 peter linux mgr requirement 9 peter linux mgr 10 james microsoft c.e.o

Software Development java
Member Avatar for Majestics
0
109
Member Avatar for thing2

Hi can anyone please help me with my homework assignment? I am not asking anyone to do this for me but I keep getting an error in declaring GetInput() inside Main. It says Error: No overload for method GetInput() takes 0 arguments and I can not figure out what I …

Software Development user-interface
Member Avatar for Mitja Bonca
0
240
Member Avatar for _neo_

Hi all. I need to highlight comments on mcedit. 1) comments start with "--" 2) comments may may end with "\n" or with "--" how to do it in mcedit syntax file? These lines are my syntax file content which responsible to highlight comments context -- \n brown # here …

Software Development shell-scripting
Member Avatar for _neo_
0
263
Member Avatar for SaaDwTk

I got this error sometimes, thats weird... Sometimes the software works and sometime it gives this error. cmmBox.SelectedItem is a URL HTMLSource is a function to grab the HTML page. myPageNumber2 is a integer. Here is the specific line and the whole code: [COLOR="red"]Specific Line:[/COLOR] [CODE]sourcePage2.Text = HTMLSource(cmmBox.SelectedItem & "/members?p=" …

Software Development vb.net
Member Avatar for ChrisPadgham
0
190
Member Avatar for vinothmca

When i was entered into login page the code is here [code] Private Sub txt_Password_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then If UCase(txt_Password) = UCase(txt_dbPassword) Then Unload Me Modification_Main.Enabled = True 'unlock database here Else MsgBox "Invalid password.", vbExclamation txt_Password.SetFocus SendKeys "{home}" & "+{end}" counter = counter + 1 …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
143
Member Avatar for leo88

Hi, I would like to ask how to pass "select count" query value into variable? [CODE] string workstr = "SELECT COUNT(Indicator)FROM PunchIn WHERE EmployeeName='" + selectedItem + "'AND Months='" + selectedItem1 + "'"; AccessDb_Cmd.ExecuteNonQuery(workstr, Access_Db); int count = (int)??.ExecuteScalar();//what should put into "??" ? [/CODE]

Software Development
Member Avatar for leo88
0
154
Member Avatar for vinothmca
Member Avatar for ChrisPadgham
0
158
Member Avatar for vishal31

I need to create a program which calculates the bonus points for the books read. This program need to obtain reader name and bonus point earned. Number of books read Points is as bellow; First three books 10 points each Next three books 15 points each All books over six …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
99
Member Avatar for denine

hi good day, im a beginner of VB using DAO. Right now im doing my first sales system. My problem is I want to delete something from my database. my code is this. With DTPicker1 Dbase.Execute(Delete * from SalesTable where eDate = ' " & DTPicker1.Value & " ' ") …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
120
Member Avatar for complete

How do you span columns in C#? In silverlight, suppose you have a grid, and this grid is in 3 columns. and you want to add a UserControl to this grid but you want it to span all three columns. How would that C# code look like? Grid1.Children.Add(UserControl01); But then …

Software Development c#
Member Avatar for Unhnd_Exception
0
160
Member Avatar for sirlink99

I am wondering if there is an easier way to check if the mouse is in a rectangle. Currently I am using an if statement like so [CODE] if (mX > rectX && mX < rectX + 20 && mY > rectY && my < rectY + 10){ } // …

Software Development java
Member Avatar for sirlink99
0
102
Member Avatar for jashbela

[CODE]#include <iostream> using namespace std ; int main() ; { score and grade // declare variables ; float total_score // total weigted points ; char grade // letter grade ; int A , B , C , D , F ; // read in total score ; cout << endl …

Software Development c c# c++ visual-studio
Member Avatar for jashbela
0
336
Member Avatar for apanimesh061

I have an application that supports only Framework 4.0. Is there a way I can make it compatible with a lower Framework version of .Net ??? Please help !

Software Development
Member Avatar for CsharpChico
0
185
Member Avatar for user220

Hi, I am new to the field of SQL and C#. In my form I have few textboxes whose values are to be inserted into SQL table on Submit button click. I have created Insert.cs App_code class which handles the Database operations. And code behind will insert the textbox values …

Software Development
Member Avatar for cale.macdonald
0
176
Member Avatar for sirlink99

I have just started making a new program. I barely have any code, and when I load it the frame is clear for like 20 seconds and then it loads what goes into the frame. why does it take so long to load? I have another code that I tested …

Software Development java
Member Avatar for mKorbel
0
2K
Member Avatar for goldenpete

I am currently creating a small application that processes a line of text into several ouput lines using a C# Windows Form What I am looking for is a way to duplicate the actions of manually copying text through Ctrl+C, or right click, Copy, by the click of a button. …

Software Development
Member Avatar for goldenpete
0
115
Member Avatar for sys73r

so I'm new to the language so I've trying to do a vertical bar graph as shown below without luck, so far the only thing i've managed to do is to make it horizontally like this: [CODE] *********** ******* **** ********* **** [/CODE] which i do it by for v …

Software Development python
Member Avatar for sys73r
0
764
Member Avatar for duuude

Hi, I'm trying to use tabbedpanes, my objective is to have a frame split in half( in height). You have the upper tabbed pane, and the lower tabbed pane. Both of them have the same three panels, so the user can choose wether to see panel1 in up and pane2 …

Software Development java java-swing
Member Avatar for Anuradha Mandal
0
140
Member Avatar for bhallarahul

Is it possible to run C/C++ program on java platform? if yes? please tell me how can i get the output of the program??

Software Development java
Member Avatar for komyg
0
126
Member Avatar for FoxInBoots

I have problem completing a program and I would be really really thankful if someone could help me with this . This is my code so far: [CODE]#include <fstream> #include <iostream> #include <conio.h> using namespace std; void registret(void); void lista1(void); void lista2(void); void search(void); void sortering(void); void addcar(void); void sell(void); …

Software Development c++ ios
Member Avatar for NathanOliver
0
126
Member Avatar for bhawna_5nov

[ICODE] public void actionPerformed(ActionEvent evt) { String arg=evt.getActionCommand(); if(arg.equals("ORDER INFO")) { AppletContext context = getAppletContext(); context.showDocument ("file:///C:/Java/jdk1.6.0_24/bin/Order_info.html", "_blank"); Applet Order_info = context.getApplet("Order_info"); }[/ICODE]

Software Development java
Member Avatar for NormR1
0
164
Member Avatar for PythonNewbie2

Let's say I have a text file with these contents: [CODE] color1 = yellow.$199 * 100 color2 = red.$1 * 22 myNextColor = green.$3 whatsNext = blue.$$ oneMore = orange.$ [/CODE] I need to be able to get an array like this: [CODE]colorsInFile = ["yellow","red","green","blue","orange"][/CODE] In python, the regex for …

Software Development java regex
Member Avatar for AhmedGhazey
0
165
Member Avatar for kapojian

i have three forms, mainform(which is the "MAIN") log-in and home form. when accessing buttons in the main form to enable it i did this. its property is set to public. [CODE](this.Owner as Main).homebtn.Enabled = true;[/CODE] after logging in homebtn is anabled, when clicked, the home form will show and …

Software Development
Member Avatar for CsharpChico
0
157
Member Avatar for bhallarahul

[CODE]#include<stdio.h> #include<conio.h> void pass(int); void main() { int a=23; int c; clrscr(); pass(a); printf(" %d ",c); getch(); } void pass( i) { //int i; if(i>40) return 1; else return 0; } [/CODE]

Software Development c
Member Avatar for Narue
0
135
Member Avatar for CPT

[code="C++"] class item { string name; string identifier; public: item( string name,string id):{this->name=name;this->identifier=id;} friend ostream& operator<<(ostream&, const item&); friend istream& operator>>(istream&, item&); }; ostream& operator<<(ostream& out, const item& temp) { out<<item.name<<" "<<item.identifier<<endl; return out; } istream& operator>>(istream& in, Cmessage& temp) { getline(in,item.name);//in case sring has space char getline(in,item.identifier); return in; …

Software Development c++ client-server
Member Avatar for mike_2000_17
0
176
Member Avatar for learningcpp

Hi, I know that I can overlaod the operator >> and << and declare it as a friend function in the class for which i am overloading and then write the definition outside of the class. But recently I was writing a string class for myself only to learn and …

Software Development c++
Member Avatar for m4ster_r0shi
0
350
Member Avatar for Majestics

[code]ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated[/code] its the exception, i want to match it with condition and take decision , but its not working [code]if(e1.getMessage().equals("ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated"))[/code]

Software Development java
Member Avatar for mKorbel
0
116
Member Avatar for rsandp

sir/ma'am can somebody help me configure Textpad As i want to compile a java file and run it that i have saved in the directory of my choice 1.configure 2.preference 3.select Tools on the left hand side of the preference panel and select the java tools by adding them. after …

Software Development java
Member Avatar for Sadun89
0
337
Member Avatar for ana_1234

Hey, May someone please explain to me why the rename function isn't working? result should display a 0 if the files were sucessfully renamed. it keeps returning a -1. [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cstdio> using namespace std; int main(int argc, char *argv[]) { bool Stats; char …

Software Development c++ ios
Member Avatar for ana_1234
0
269
Member Avatar for RameshKumar.M

Hi, Am getting the below error at the time of running form to save data. Am checking step by step, at that time i found the error occured in the open connection line [Con.Open()]. Am Using MS Access 2007 for Database, format is (Dashboard.accdb). Kindly give any solution to solve …

Software Development vb.net
Member Avatar for RameshKumar.M
0
81

The End.