64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for pwolf

one of my goals for this year is to learn java, and I found an excuse to get started lately. So over hte last couple of hours I have been reading tutorials and the likes, and started following the advice from this post http://www.daniweb.com/software-development/java/threads/99132/starting-java-java-tutorials-resources-faq As such I am up to …

Member Avatar for JamesCherrill
0
345
Member Avatar for Snehamathur

[CODE] /* Any year is input through the keyboard. write a program to determine whether the year is a leap year or not. */ #include <stdio.h> #include <conio.h> void main(void) { int year; clrscr(); printf("\n\n enter a year::"); scanf("%d",&year); if(year%400==0) printf("\n\n Leap Year."); else if(year%100==0) printf("\n\n Not Leap Year."); else …

Member Avatar for stephen.beatson
0
385
Member Avatar for mell.mattingly

Hey guys! I have a class program here that I am stuck on. This is my first time officially asking for help, but after studying all avenues and research I still find myself wracking my brain. Most of the code is complete and without error...except for the last bit...of course. …

Member Avatar for Iworlock
0
854
Member Avatar for rron17

#include <windows.h> void gotoxy(int x,int y); int main() { int i; int y=6; int x=9; for(i=1;i!=0;i++) { system("color 1"); sleep(500); gotoxy(x,y); printf("%d",i); } getch(); } void gotoxy(int x,int y) { COORD coord = {x,y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord); } How to change the color when the number changes ? And the color must …

0
101
Member Avatar for frankvalentin

I need to add text (not a line) to an existing text file, using C#. I can create the file, and write text to it, but when I have to append text, for some reason, it fails. I can append a line, but I don't need to append a line. …

Member Avatar for ddanbe
0
3K
Member Avatar for chaitu11
Member Avatar for napninjanx

Like a person goes into Android Programming and wants the app to work on iOS for Apple. Are they the same or different?

Member Avatar for Moran_1
0
262
Member Avatar for Siberian

When using "return" in Jscript is it's purpose if used in a function to write something back ? Instead of explaining here is a piece of code. function apple() { var one = "Hello"; var two = "Orange"; var total = One+Two; return total; } document.write(total); Shouldn't the write command …

Member Avatar for Siberian
0
178
Member Avatar for Nicholas_1

I have seen C++ programs that allow you to type a string (in the case I saw it was a file name) after the name of the program, but in the same command (before pressing enter) when you go to run the program and the program parsed it as it …

Member Avatar for Schol-R-LEA
0
174
Member Avatar for dendenny01

I having trouble with this query it is executing quit well but I cannot make out how is this select statement working. Any help or explaination on this problem will be appereciated .. thank you select * from emp where eid IN (select eid from works where cid=(select cid from …

Member Avatar for rch1231
0
177
Member Avatar for shyrin

Write a program which accepts amount as float and display total number of Notes of $50 , 20, 10, 5, 2, 1, 0.50, 0.20, 0.10, 0.05 For example, when user enter a number, 575.95 the results would be like this... 11 $50 1 $20 1 $5 1 50c 2 20c …

Member Avatar for Schol-R-LEA
0
158
Member Avatar for C-Money

For the assignment I am doing for my Computer Orgainzation and Assembly class, we are to print a given array, using the selection sort. Then, for bonus points, we are to print the array after it is sorted 5 per line. I am stuck on this part. My codes sorts …

Member Avatar for Schol-R-LEA
0
5K
Member Avatar for Wilever

I'm totall beginner, trying to learn python programming codes. So far, got series of python programming problems to solve. Here is one of them.; please I need help on how to write the program. "Write a program that displays a table of the Celsius temperatures 0 through 20 and their …

Member Avatar for Greg_4
0
16K
Member Avatar for Clouded One

I am having a lot of trouble working on this program. i am not sure how to make a linked list work with more than just numbers (i only did basic programming) and the book is just terrible, i was wondering if you guys could help me with writing this …

Member Avatar for geolotry
0
405
Member Avatar for mavtcr

I have gone through the articles appeared in this forum on the above Area.But it didn't helped me much,As I am new to VB.net. In VB6 I have the following code and it works well. Private Sub CmbBank_GotFocus() CmbBank.BackColor = vbYellow LblMsg = "Select Bank" Dim A, B, C As …

Member Avatar for mavtcr
0
4K
Member Avatar for firepower
Member Avatar for stultuske
0
266
Member Avatar for Deep Modi

This thread may be some what confusing, and not yet sure is this can be done or not. I just get a an idea to this (and yet I am still learning, I am not expert) so I need your Help. **Thread**: I am having a form and add the …

Member Avatar for oussama_1
0
199
Member Avatar for Alyssa_1

Sooo...I was told to start a new thread about this. So I'm trying to make a link between TextBox1.Text on Form1 to TextBox2.Text on Form 2. What I currently have is a line of code underneath my TextBox2_Change code reading: TextBox2 = Form1.TextBox1.Text This ALMOST does what I want it …

Member Avatar for belalhamdy
0
717
Member Avatar for Patrick_3

Hi, for the life of me, I am unable to get my program to drag/drop to a textbox. Elsewhere in my program i am dragging to a panel just fine however I always get the "drag not allowed" mouse symbol when attempting to drag to my text box. I HAVE …

Member Avatar for Reverend Jim
0
3K
Member Avatar for OpenTheTrollGate

bool operator!= (CustomString &str1, CustomString &str2) { std::vector<string>:: iterator s2 = (str2.vec).begin(); for(std::vector<string>:: iterator s = (str1.vec).begin(); s != (str1.vec).end(); ++s) { if( *s2 == *s) { cout << *s2 << *s << endl; return false; } ++s2; } return true; } I don't know why, but this returns true …

Member Avatar for Ancient Dragon
0
123
Member Avatar for OpenTheTrollGate

StringVec func(StringVec & str1, Stringvec & str2) { std::vector<string>::iterator s2 = str2->vec.begin(); for (std::vector<string>::iterator s = str1->vec.begin(); s != str1->vec.end(); ++s) { if(s2 == NULL) { cout << "str2 is smaller than str1" << endl; } ++s2; } } When a iterator goes out of bound, because the vector is …

Member Avatar for OpenTheTrollGate
0
90
Member Avatar for adam.wolnikowski.9

I'm writing a program that generates labels at runtime, and then has them be "dragged and dropped" by the user. I have the drag and drop code working, but right now I can only get it to work on labels that I explicitly name in the code, like this: `Private …

Member Avatar for adam.wolnikowski.9
0
357
Member Avatar for CarterLangley

I am trying to populate a select box from my database. The value chosen must be the id of the item, and the text shown the name of the item so that once selected it will insert the id into the table column and not the name so that the …

Member Avatar for jj.dcruz
0
505
Member Avatar for furalise

Hello everyone.. I am a little bit stuck on this small problem. I'm trying to understand callbacks but seem to be no understanding something. It is probably something very simple. I've never used callbacks so am probably misunderstanding something here. The below is pointless but I'm doing it to improve …

Member Avatar for furalise
0
782
Member Avatar for davy_yg

Hello, In my contact us I just add project combo box, yet I do not feel the programming for information form capturing is correct (after I add the project combo box), if anyone can help me would be great. Thanks before. contactus.php <div id="contactform"> <?php require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email …

Member Avatar for davy_yg
0
151
Member Avatar for dre-logics

Use visual basic 2008 Form1 with a text box (ScanArtikelBarcode.txt )on it barcode scanner I use now this code to read a barcode Private Sub ScanArtikelBarcode_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ScanArtikelBarcode.KeyDown ' This way I collected the scanned barcode and process it against my table and …

Member Avatar for dre-logics
0
351
Member Avatar for dre-logics

I use visual basic 2008 and MYSQL (Storage engine is innodb) Is use this code to retrieve informatie (see below) The SQL string ="select * from articles where articlenb=12345" I want to check of this record is used by een othor user in the network. Can use innodb for row-based …

Member Avatar for dre-logics
0
655
Member Avatar for dre-logics

Dear developers, I develop for years in visual studio 2008, but I want to switch to Visual Stuido 2012. But I discovered there is no setup projects exist anymore. I now choose from InstallShield or WIX. Which should I use and what version? Thanks, André

Member Avatar for dre-logics
0
269
Member Avatar for dre-logics
Member Avatar for dre-logics
0
167
Member Avatar for dre-logics

I use vb.net 2012 with Crystal reports I have a report with two database fields : streetname (char 25) and house number (char 10) waterstreet 12a walkingstreet 2544 But if i print the report it looks like this: waterstreet 12a walkingstreet 2544 But i want no only space(1) between streetname …

Member Avatar for dre-logics
0
246
Member Avatar for dre-logics

I use vb.net 2012 ,Windows 7.0 printer on local USB port On my development PC , develop program witn the print action with "PrintDocument1_PrintPage" works good (runtime and with EXE) But on the PC from the customers, I get this message "A StartDocPrinter call was not issued" The customers pc …

Member Avatar for dre-logics
0
814
Member Avatar for aabbccbryanmark_1

im having this as my problem my connection to database is purely coded with the connection to the datagrid Public Sub btnProdSave_Click(sender As Object, e As EventArgs) Handles btnProdSave.Click Dim res As New DialogResult res = MsgBox("Do you want to save data?", MsgBoxStyle.YesNo, "Inventory") If res = DialogResult.Yes Then Save_Record() …

Member Avatar for aabbccbryanmark_1
0
198
Member Avatar for abeer06

#include<iostream> using namespace std; int main () { char a; double length; double width; double Area; cout<<"Please\n"; cout<<"\t1- Enter \"S\" or \"s\" to calculate the square area\n"; cout<<"\t2- Enter \"R\" or \"r\" to calculate the rectangle area.\n"; cout<<"\t3- Enter any Key to Exit\n"; cout<<"Please enter the length of square"; cin>>length; …

Member Avatar for abeer06
-1
118
Member Avatar for trade19

Hi I think this topic is beyond my lame python abbilities. I hope the program can run, it is writen by using error messages until it worked. I am using python 33. I am trying to learn info on adding leading zeros to the output.(File & Windows) I am not …

Member Avatar for trade19
0
270
Member Avatar for humorousone

Ok, here's the situation. I've got a package filled with 4 .java files. Mainpackage: Console.java ReadTextFile.java WriteTextFile.java Main.java In Main.java, I'm trying to call a method within AQAReadTextFile2013.java, which also happens to be called "AQAReadTextFile2013". I've tried calling it using the line: * AQAReadTextFile2013.AQAReadTextFile2013("filepatharguement") * AQAReadTextFIle2013("filepatharguement") Within 'main', but they …

Member Avatar for humorousone
0
423
Member Avatar for adam.wolnikowski.9

I'm writing a program where I need to "click and drag" labels across the form. I'm planning on doing this by moving them to the position of the cursor. However, I'm having trouble finding the position relative to the top left corner of the form, and regardless of whether or …

Member Avatar for adam.wolnikowski.9
0
408
Member Avatar for learner_new

#include<iostream> using namespace std; int main() { int len1; cout<<"please enter the length of arrayn 1"; cin>>len1; cout<<"creating array now"; int *arr1= new int[len1]; cout<<"please enter the elements now"; for(int i=0;i<len1;i++) { cin>>arr1[i]; cout<<endl; } return 0; cout<<arr1; delete [] arr1; } In the above code, the program stops execution …

Member Avatar for shaykhhamza
0
301
Member Avatar for shaidur1982

Hi i am new in this site and want to know PHP properly.I also visited w3schools.com for this but it is not enouh for me .So if any one can help me to learn PHP.

Member Avatar for shaidur1982
0
148
Member Avatar for rpv_sen

Hi I am selecting wdays1 checkbox is checked and remaining checkbox is unchecked after submitting, i am getting an error message as below can any one please help me to resolve the issue **Error** `1 Notice: Undefined index: wdays2 in C:\xampp\htdocs\smart\checkvalue.php on line 10 0 Notice: Undefined index: wdays3 in …

Member Avatar for cereal
0
735
Member Avatar for GagaCode

Hey All i really have an issue that it is really stopping me here so basicly i have a form that i use to add some Address Book data so i have combobox's that is synchronized with each other so @ first i'm populating the combobox with the following function …

Member Avatar for GagaCode
0
214
Member Avatar for centenond

Didnt know where to post this question mysql or here, since im working with php i decided to put it here.. Im starting to learn mysql now :) SO i just wanna retrive a full name from a user how would i do this? im imaging this should be done …

Member Avatar for centenond
0
189
Member Avatar for ganges

hi friends, have nice time I am using Eclipse kepler 32 bit i am using windows 7 32 bit jdk, jre 1.7 32 bit versions previously its working fine now its not opening i cant rectify this problem can you people help me to fix this problem

Member Avatar for ganges
0
152
Member Avatar for gbhs

Hi Experts I don't have the least idea on how to rank (desc) the following sample ExamScores by CourseID , grouping by Level. Some help needed. gbhs Newbie Level StudentID CourseID CourseName ExamScore ScoreRank A 101 1 Math 11 A 101 2 French 3 A 101 3 English 7 A …

Member Avatar for eralper
0
138
Member Avatar for KushMishra

Hello All, I want to design a DataGrid similar to the one in the design picture attached with this article (Please see the pic attached). I want the following bindings and features :- 1. The first column of every Item (Item1,...Item5) for (LineNo=1....LineNo=?) will get bind to "Unit" which is …

Member Avatar for KushMishra
0
340
Member Avatar for ram619

Hello, I want to duplicate a list in python. The way I want is, I need two list with same content pointing to different memory Location. What I tried is Dup_List = Original_List[:] , but lookes like even this is making both list point to same memory location. Both the …

Member Avatar for vegaseat
0
170
Member Avatar for Labdabeta

Hello, I have a file which I need to read which contains some unusual characters (EG: '╠') and I need to be able to read it and convert those characters to numbers. As an example of what I am looking for would be code that reads a file and prints …

Member Avatar for Labdabeta
0
439
Member Avatar for LiquidCloud

So i'm in ap computer science right now and ArrayList are confusing the **** out of me. We're working on a program in which we have to create a method that adds an "ap exam class" to an ArrayList heres what it looks like: private ArrayList<APExam> myExams; myExams = new …

Member Avatar for LiquidCloud
0
155
Member Avatar for MaddTechwf

Some of my values coming back in my recordset have a ' in them. This data is being read into a JS array so I need to change the ' in the result to the &#x27; html hex code.

Member Avatar for MaddTechwf
0
141
Member Avatar for MaddTechwf

I've written an SQL select statement. I've checked te statement in SQL Server Management Studio Express and it works greate. When I go take the code to my asp page and insert it, I get a generic IIS 500 error. When I take out my variable I'm tyring to use, …

Member Avatar for JorgeM
0
186
Member Avatar for OceanDesigns

Hi guys im a beginner at programming i started a book for beginners im only on lopps now but as uasuall i googled and wondered off into classes i keep getting this error, i initialized the float variables in the class by using the constructor. I'm not sure if this …

Member Avatar for OceanDesigns
0
118

The End.