132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Gen_2

help. i would like to ask if there's a way to combine 2 data table into 1 table without manually inputting using sql statement. how does the parent child foreign key works? it goes like this: student - table1 : lname, fname, age teacher - table2 : lname, fname, age …

Software Development vb.net
Member Avatar for G_Waddell
0
247
Member Avatar for anku83

I have a text file transa.txt .I want the contents of the file to be filled in the array cell by cell.example the file reads: 1 1 1 1 0 0 1 0 1 1 1 1 so i want arr[0][0]=1,arr[0][1]=1,arr[0][2]=1...... Can someone please help me with this..I am stuck …

Software Development java
Member Avatar for stultuske
0
632
Member Avatar for Dineshchitta

How to Stop python programme (which is continuously giving output ) after sometime

Software Development python
Member Avatar for Gribouillis
0
278
Member Avatar for zebnoon

Hye, I have problem with Auto Generate Slip No from Database.I wrote following code to get last record but it does not give me last record. Please help me? [CODE]Private Sub Command1_Click() Module1.Connect Dim rs As New ADODB.Recordset Dim str As String str = "SELECT Item_ID FROM Entry_Tab" rs.CursorLocation = …

Software Development visual-basic
Member Avatar for rasheedraj
0
1K
Member Avatar for murali2489

Hi All, I have come across Read and write method from InputStream and outputstream but im finding it hard to understand the logic behind it. Below is a simple example which reads a jar file from input stream and writes it to output stream. Please explain the logic on how …

Software Development file-stream java
Member Avatar for JamesCherrill
0
309
Member Avatar for 21345570

When using ASP.NET Web Forms to design the GUI , you may either use the drag and drop method or the source code , where you type code using html if I'm not mistaken. In the ASP.NET model-view-controller (MVC) form would you also be using html to design the GUI? …

Software Development asp asp.net gui web-design
Member Avatar for 21345572
0
148
Member Avatar for xn hunk

how to find corrupt file in vb.net and repair. ex txt zip mp3.

Software Development vb.net
Member Avatar for Reverend Jim
0
155
Member Avatar for anku83

Here i have this code which read from a text file and fills the 2d array.Then calculates the sum of each column.I want all those column names whose sum is greater than 5 to be written in output file. /* * To change this template, choose Tools | Templates * …

Software Development java
Member Avatar for stultuske
0
244
Member Avatar for taverasme

Hi all, First time poster here, I've referenced posts here on daniweb in the past and it has always been helpful, thanks! But I can't find the answer to this particular problem here on the forums. I need to write a basic string parser as part of a coding assignment …

Software Development c c++
Member Avatar for Nikolas9896
0
6K
Member Avatar for geoffy0404

hello I want a timer in my Access database form using Visual Basic I have the code dim i as integer=0 timer1= i label1.Text = "Remaining time:" + CStr(2500 - j) + "seconds" i = i + 1 If i > 5000 Then Timer1.Enabled = False commandbutton1.text=stop End If which …

Software Development visual-basic
Member Avatar for mridul.ahuja
0
272
Member Avatar for micca.jhai

Can someone help me?.How to alert data in Form automatically without clicking into the datagrid.I need to pop up the message box when the medicines expired without clicking in the datagrid. I have a table name inventory field names MedicineName, genericname, StockQuantity,"Expmonth", "Expday", "Expyear". here is my code Private Sub …

Software Development visual-basic
Member Avatar for mridul.ahuja
0
185
Member Avatar for docgrid

Hi everyone, If anyone knows how to make a automatuic search through datagid? for instance i've a list of data which polulate in datagrid(Grid master), another set of data(one at a time) caputres from registry folder to compare against the exsisting datagird (Grid master). When the the match is found …

Software Development vb.net
Member Avatar for mridul.ahuja
0
204
Member Avatar for xn hunk

how to open Firefox browser instead of Internet in vb.net form ?

Software Development vb.net
Member Avatar for Ancient Dragon
0
258
Member Avatar for bluehangook629

Hey guys, Is there a way to have multiple columns as combobox display value without buying third party controls? If yes, please post the name or anything in reference so I can google it. Thanks in advance.

Software Development vb.net
Member Avatar for sraguero
0
223
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> int main() { int i=1,fact=1,n; printf("enter the no of fact: "); scanf("%d",&n); factorial(n,fact,i); return 0; } int factorial(int x,int y,int z) { int r; if(x==1) { r=y*z; printf("the fact is %d",r); } else { factorial(x--,y*z,z++); } } hello iam trying recursion using factorial the complier stops …

Software Development c
Member Avatar for Reverend Jim
0
154
Member Avatar for chipo

I am trying to parse a date stored as an array of characters. I have a problem to paerse the date with a loop otherwise it works fine. char date[]="20141018"; //the date is 10/18/2014 char _mypointer=date; char year= "YYYY"; char month="MM"; char day= "DD"; year[0]=*my_pointer + 0; month[1]=*my_pointer +1; What …

Software Development c
Member Avatar for David W
0
160
Member Avatar for sk8ergirl

I have this array Array myArray = {1,2,3}; I want to print the output of the array as follwoing 1,2,3 but when I do this for(int i=0 ; i < myArray.length ; i++){ System.out.print(myArray[i]+","); } however I get this output 1,2,3, how can I get rid of the last comma

Software Development java
Member Avatar for Tarek_2
0
162
Member Avatar for Ese

I've tried doing it but it doesnt run The array of real numbers is set. a) To delete from the array positive elements. b) To calculate the sum of negative elements in the array. c) To calculate minimum of positive elements in the array. solve using functions

Software Development c++
Member Avatar for StuXYZ
0
145
Member Avatar for natsume57

hi, can somebody help me? i am using visual basic 6.0 with microsoft access 2003 database i have a form that view the data from the database through the listview my problem is it says Compile Error: Method or data member not found heres my code Private Sub Form_Load() Dim …

Software Development listview microsoft-access visual-basic
Member Avatar for Reverend Jim
0
1K
Member Avatar for Kent55

I am making a quiz as part of my assignment for my computer science class and the aim is to make a flash quiz where keywords and their definitions are loaded in from text files. From previous recommendations on Daniweb I have created an associative array. I import the two …

Software Development vb.net
Member Avatar for Reverend Jim
0
304
Member Avatar for aokono

I am a beginner in programming. I would like to know sample opern source apps that I can use in learning

Software Development python
Member Avatar for SyxNM
0
128
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 …

Software Development ide java oracle
Member Avatar for JamesCherrill
0
345
Member Avatar for lindy_1

I am trying to create a program in windows forms and i am almost done by my array will not store numbers. It will only use the last number entered. Please help, i did this program in c sharp without a problem but cant figure out windows forms application. public …

Software Development microsoft
Member Avatar for lindystarr
0
289
Member Avatar for 21345572
Member Avatar for Schol-R-LEA
0
161
Member Avatar for Varunkrishna

Hello everyone I have created a java program using jsch0.1.50.jar to remove the directories in the sftp server. But I could not remove the folder "03-03-2014" as it contains a subfolder named "1837hrs" when I try to run the program I am getting the following error: > 4: The directory …

Software Development java session windows-server
Member Avatar for masijade
0
2K
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 …

Software Development c
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. …

Software Development c++
Member Avatar for Iworlock
0
854
Member Avatar for 21303359

I need to send my activity log in as an assignment to my lecturer. How do i go about doing that?

Software Development
Member Avatar for 21303359
0
91
Member Avatar for 21303359

Hi. I am a second year IT student at DUT, i've just received a program to do which includes multiview.I added a view but when i load the page nothing shows on the screen. What could be the problem?

Software Development
Member Avatar for 21303359
0
132
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 …

Software Development c++
0
101
Member Avatar for pavani2006
Member Avatar for sujitha77
0
2K
Member Avatar for john.kane.100483

Can anyone edit this program from "Base 10 to any base" --->>> to "From any base to base 10 with character array" .I would really appreciate this a lot. I use turbo c++ compiler. #include <iostream.h> #include <conio.h> #include <stdio.h> void main(){ char value; char t, u, v; char answer; …

Software Development c++
Member Avatar for David W
0
225
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. …

Software Development file-system
Member Avatar for ddanbe
0
3K
Member Avatar for beauty.is.raven

Write a Java application that prompts and reads a value representing the radius, of a circle, then prints the circle's circumference and area. I do not know where to start

Software Development java mathematics
Member Avatar for jwenting
0
404
Member Avatar for swaar.metaal.7

Hi everyone, I am new here and I hope all of you are doing well. I have spent the whole day searching around on the almighty Google for code that can help me with my problem. In the following code there may be quite a few n00b mistakes, and for …

Software Development c objective-c
Member Avatar for swaar.metaal.7
0
279
Member Avatar for RASHMI RAUT

#include<iostream.h> #include<stdio.h> #include<conio.h> class QuickSort{ public: int no_of_elements; int elements[10]; public: void getarray(); void sortit(int [], int, int); void partition(int [],int,int, int&); void display(); }; void QuickSort::getarray() { cout<<"How many elements?: "; cin>>no_of_elements; cout<<"Insert array of element to sort: "; for(int i=0;i<no_of_elements;i++) { cin>>elements[i]; } } void QuickSort::sortit(int x[], int …

Software Development c++
Member Avatar for Ancient Dragon
0
251
Member Avatar for rron17

#include <windows.h> int main() { int i; int y=6; int x=9; gotoxy(x,y); //gotoxy(x,y) must be the coordinate that the number lies in. for(i=0;i>1;i++){ printf("%d",i); } getch(); } int gotoxy(int x,int y) {COORD coord = {x,y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord); } //how to make this program that the output is a number that counts …

Software Development c++
Member Avatar for vmanes
0
160
Member Avatar for sciprog22

Hello, I have a Client/Server program where the Server sends a string with a time delay using a Timer object to the Client. The Client has a JFrame with a JTextArea for display. When I test the Client program, I ran into two issues: a) Nothing ever shows up on …

Software Development client-server java java-swing
Member Avatar for sciprog22
0
432
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 …

Software Development c++
Member Avatar for Schol-R-LEA
0
174
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 …

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
158
Member Avatar for anisha.silva

Hi, Im just new to this language and I would like to know what does this groovy regular expression match too. I was not able to figure it by online articles.if some would would give an explanation i would greatly appreciate. the 3 regular expressions are : static propertyPattern = …

Software Development java
Member Avatar for anisha.silva
0
221
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 …

Software Development assembly
Member Avatar for Schol-R-LEA
0
5K
Member Avatar for C-Money

I am trying to write a code that asks the user to input a string, then displays the string with vowels removed. Ex: Godzilla returns in 2014, the output will be 'Gdzll rtrns n 2014' However, I am having massive difficutly in writing this for assembly. However, I was able …

Software Development assembly java
Member Avatar for C-Money
0
1K
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 …

Software Development display python
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 …

Software Development c++ linked-list
Member Avatar for geolotry
0
405
Member Avatar for yann.bohbot.9

hey everyone! having a small problem with my pointer. I'm just trying to scan an array using a pointer but when i print it it shows me only zeros. Any help? #include <stdio.h> int main() { int arr[10]; int *ptr; int i; ptr = &arr[0]; printf("Enter 10 integers:\n"); for (i=0; …

Software Development c
Member Avatar for sepp2k
0
129
Member Avatar for simplysach

in my i.t lesson we were intoduced to 'raspberry pi' within 'Python' and for my homework i have to explain what we did in the lesson. It says i have to include what 'input' is when coding a programme. Please help and reply as soon as possible and keep in …

Software Development mathematics python raspberry-pi
Member Avatar for Schol-R-LEA
0
328
Member Avatar for rron17

} else{ printf(" \b"); surname[cntr]='\0'; cntr--; goto cc; } } else{ surname[cntr]=nput; cntr++; if(cntr>14){ goto aa; } else goto cc; } } aa: gotoxy(40,14); printf("%s %s",urname,surname); fullname[cntr]='\0'; { char choice; ron: SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),11); gotoxy(35,15); printf(" Do you want to enter "); gotoxy(35,16); printf(" another entry? "); gotoxy(35,17); printf(" "); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),116); gotoxy(40,17); …

Software Development c++
Member Avatar for ddanbe
0
161
Member Avatar for Za3mi

Hello dear! I am going to develope a program that have an ability to make a plan for month of the medical information officers. I've tried it using c, c++ but i can't. Then i tried it using php and database as i have 190 doctors whom an MIO have …

Software Development
Member Avatar for Schol-R-LEA
0
207
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 …

Software Development vb.net
Member Avatar for mavtcr
0
4K

The End.