132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Pure1108

I've tried so hard by myself and I've just ended up confusing myself as it's my first time using vb. I didn't want to waste anyones time but I'm sorry I just don't know what to do.. ---- How would I code this? I want to make a progress bar …

Software Development vb.net visual-basic
Member Avatar for Luc001
0
164
Member Avatar for hopefree

i have a error in my program. The error is Dispose (bool) , no suitable method found to override. May i know how to fix this error? Thank you.

Software Development
Member Avatar for CsharpChico
0
83
Member Avatar for simagen

Hello, I am having issues with incrementing the counter by 1. In my quiz, the score must only increment by 1 for each question ONLY if the question is correct. I have made this work, however when the answer is correct, the user can continually click on the Submit btn …

Software Development
Member Avatar for CsharpChico
0
149
Member Avatar for Farhad.idrees

Hi i want to read xml.. i have two combo boxes one is showing Prgorrames Name and 2nd will show Semester No with respected to Programme.. For example if I select Programme BBa so another combobox will show all the semesters of BBa...and when i select semester 5 so data …

Software Development dataset xml
Member Avatar for CsharpChico
0
140
Member Avatar for pdenman

Hi all I am a total newbie and am self teaching myself. I worte a program that lets the user guess a random number and then asks if if they want to play again.\ Here is the code: [CODE]#include <iostream> #include <cstring> #include <stdlib.h> #include <ctime> #include <conio.h> using namespace …

Software Development c++
Member Avatar for pdenman
0
2K
Member Avatar for denonth

Hi all... I am developing one program but i just came to one obsticle that I really dont know how to pass it. on my form i will have some options that user needs to enter after that im puting it and drawing it in printpreview eventhandler. So user can …

Software Development image
Member Avatar for abelLazm
0
173
Member Avatar for zachattack05

[COLOR="Red"]Disclaimer: [I]First, I'm aware that this is C++ code and this is a C# forum, I'm not all that familiar with C++ and was hoping someone here could explain the example below in C#.[/I][/COLOR] I was browsing the very complex source code of the open source project MySQL and saw …

Software Development algorithm data-structure open-source
Member Avatar for CsharpChico
0
798
Member Avatar for chris7197

A requirement of a program I am making is that it can 'print' a given URL into a PDF - the server has a PDF printer installed (and is the default printer), so it's just a matter of printing the page programmaticly, and it seems the best way is to …

Software Development pdf printer
Member Avatar for CsharpChico
0
346
Member Avatar for Arjun_Sarankulu

I want to read line by line from file leaving the first line of the file

Software Development
Member Avatar for wishesqq
0
240
Member Avatar for spe_eddy

[CODE]testingdays = testingData.getMeasurements() for day in testingdays: dayValues = [] dayValues[0].append(day.tempMean) dayValues[1].append(day.tempMax) dayValues[2].append(day.tempMin) dayValues[3].append(day.dewPoint) dayValues[4].append(day.humidMean) dayValues[5].append(day.humidMax) dayValues[6].append(day.humidMin) dayValues[7].append(day.pressure) dayValues[8].append(day.meanWindSpeed) dayValues[9].append(day.maxWindSpeed) dayValues[10].append(day.maxGustSpeed) dayValues[11].append(day.visibility) [/CODE] this is my code and when i try to run it i get the error message: "Traceback (most recent call last): File "main.py", line 166, in <module> …

Software Development python
Member Avatar for TrustyTony
0
3K
Member Avatar for satti

hi there, i have created reports through Data reporting, problem is that the data shown in reports it continues, like 2 entries in 1 page ,half entry on next page,, in simple it is unorganized. i want data report to show data separately ..kindly tell me what is the process..to …

Software Development visual-basic
Member Avatar for debasisdas
0
102
Member Avatar for CrumbledCookies

Would somebody please assist me? I have been consistently been doing trial and error with my counter. You see, when the program cannot locate an item (which is typed at the bottom) it displays "Sorry, no such item number exists, please enter another one or 0 to stop." Every time …

Software Development c++ programming-construct
Member Avatar for CrumbledCookies
0
360
Member Avatar for Jalwes

If I posted this is the wrong place, I apologize. I couldn't find an area for ActionScript. I am completely new at this and our assignment was to make a Madlibs game. I think I am very close, but for some reason I can't access my text inputs. So when …

Software Development actionscript
Member Avatar for Jalwes
0
112
Member Avatar for simagen

Hi, can anyone tell me how the below three logic gates work: AND Gate NOT Gate OR Gate Basically all I need to know is, if the logic gates is an AND gate: when provided with inputs A and B, the user must calculate the output C. I am trying …

Software Development
Member Avatar for abelLazm
0
201
Member Avatar for BobTheLob

Hey, so I'm working on the game set-cubed in Scheme (for those who know the game). Currently, i have a csv file of all the possible dice with dice faces. I'm trying to read this into scheme, and managed to do that with a csvreadermaker. Currently, i can get it …

Software Development file-system
Member Avatar for rotflcopter
0
215
Member Avatar for NYCrealist

[CODE]int main () I have this question how would find the headers for the five functions that are below without supplying the blocks for them, i dont quite understand it { int x, c; double r; x = readData (); for (c = 0; c < 5; c++) printValues (x, …

Software Development c++
Member Avatar for rubberman
0
102
Member Avatar for garber

[CODE]#include <iostream> #include <string> using namespace std; int main() { // Variable declarations allowing us to calculate string fullName; int weeklySalary; int weeks; string age; int option; int actualage; int earnings; double savingsPercentage; double percentage; int retirementage; double total; cout << "What is your name? "; getline(cin, fullName); cout << …

Software Development c++
Member Avatar for rubberman
0
143
Member Avatar for gabanxx

ai guys need a little help here..i create an interface where user can store their information like name, hobbies, DOB and phone number...the info is stored in sql server..now i want to call back all data that have being stored in sql to excel..when i say all i mean all …

Software Development sql user-interface vb.net
Member Avatar for NanaYee
0
529
Member Avatar for ritu143

Hi, I am new to c++, facing difficulty in compiling the following code [CODE]#include <iostream> #include<string.h> using namespace std; class myclass { public: int i, j, k, *l; // accessible to entire program static int *m; }; int myclass::*m = NULL; int main() { myclass a, b, *p; a.i = …

Software Development c++
Member Avatar for rubberman
0
2K
Member Avatar for maxstoto

please guide me....i didnt know how to implement its... my situation is like this :- let say that i have 11111010..... And i want to move the left most side of binary number and add with the 4 bits in the right side, so its can be like this . …

Software Development c++
Member Avatar for rubberman
0
150
Member Avatar for amatech

Hi, Can someone tell me If my code is right? It compiles ok, but I am not sure if the implementation is right. I am trying to write a singly circular linked list class with insert, getfirst, getNext, delete and empty methods. Can someone help me with this? Thank you …

Software Development java linked-list
Member Avatar for amatech
0
141
Member Avatar for jmk5

Hi all, I'm posting about an error I guess is pretty common, and I've done a Google and forum search before posting, and have spent ages trying to sort this myself. Just thought I'd clear that! I have a program program that runs off the terminal, adds two numbers together …

Software Development c
Member Avatar for jonsca
0
5K
Member Avatar for Phesojon

I can't run my program using this code. Please help me to edit it with the same function. Thanks in advance. [CODE]#include<stdio.h> #include <stdlib.h> main() { FILE * fp; int bmenu,amenu,an; float balance=0,deposit=0,withdraw=0; char c,quit,name[50],address[50]; clrscr(); printf("**********BANK MENU**********\n"); printf(" ---- ---- \n"); printf("What do you want to do?\n"); printf("[1] Log-in …

Software Development c
Member Avatar for rubberman
0
229
Member Avatar for Blackiey

#include<iostream> #include<stdio.h> #include<string> #include<stdlib.h> #include<time.h> using namespace std; void printBoard(); void fillBoard(); void checkWin(); string board [9][9]; bool gameOver = false; int main() { fillBoard(); printBoard(); }//end of main void printBoard() { cout<<board[0][0]<<" | "<<board[0][1]<<" | "<<board[0][2]<<" "<<board[0][3]<<" | "<<board[0][4]<<" | "<<board[0][5]<<" "<<board[0][6]<<"| "<<board[0][7]<<" | "<<board[0][8]<<endl<<"--------- --------- ---------\n";//1st line cout<<board[1][0]<<" …

Software Development c++
Member Avatar for VernonDozier
0
924
Member Avatar for vn412

Hi, I have a form where I generate a report on some button click. I need help with the code to show another Form in Modal Form, And Place Progress bar on that and Increment the status, from calling form so that when progress bar is running user cannot close …

Software Development vb.net
Member Avatar for grine amine
0
635
Member Avatar for Neversleepin

Hello, i try the tutorial Get Attachment File Name from Java2s.com. What i'm doing is to read email from the Outlook Web Access Light. If i put the url address of the Outlook Web Access Light, i have the error: [CODE]Exception in thread "main" javax.mail.NoSuchProviderException: No provider for http at …

Software Development http-protocol java session
Member Avatar for Mr Chips
0
183
Member Avatar for QuantuMechanic

Greetings all, I have written the following code to calculate the solution to a system of ODEs, called the Matsuoka equations, by using the Runge-Kutta 4th order method. I am trying to implement this code on an Arduino microcontroller. The output of the equations, IC[0] - IC[2], should oscillate but …

Software Development algorithm c++
Member Avatar for QuantuMechanic
0
399
Member Avatar for lochnessmonster

i am currently using the writefile() windows api function in my program, i want to store the follow in 1 buffer but i'm unsure on how to do this exactly [CODE] "===================================" '\n' "Date: " localTime->tm_mon "/" localTime->tm_mday "/" localTime->tm_year '\n' "Time: " localTime->tm_hour ":" localTime->tm_min "." localTime->tm_sec '\n' "===================================" …

Software Development api c++ windows-api
Member Avatar for maybnxtseasn
0
2K
Member Avatar for himgar

I want to print the following sequence. __* _*** ***** _*** __* Here _ denotes space. I have written half program to print upto 5 stars and not able to get for down. [CODE] #include <stdio.h> void main() { for(int i=1;i<=3;i++) { for(int j=1;j<=3-i;j++) printf(" "); for(int k=1;k<=(2*i-1);k++) printf("*"); printf("\n"); …

Software Development c
Member Avatar for L7Sqr
0
89
Member Avatar for NewOrder

i made two arrays..belonging to an object that i created Pieces. that object holds more objects (chess pieces). now i gave it two references.. 1) Pieces[,] temp = new Pieces[9, 9]; 2) Pieces[,] pieces = new Pieces[9, 9]; now if i do this: temp[1, 1] = null; the same change …

Software Development
Member Avatar for ddanbe
0
119
Member Avatar for jacob07

Hello, i'd like to make a program which reads input until end of file on standard input and when i press ctrl-d (or i'm not sure how to end it) it writes out the lines which contain a string. so if i start with : ./a.out cond First line Second …

Software Development c++
Member Avatar for jonsca
0
157
Member Avatar for m_wylie85

Hi all i am havin a problem with my Jet oleDB connection i am getting an error and i am not sure if my code is completly wrong or it is a small problem any help would be great. This is the erorr i get: An unhandled exception of type …

Member Avatar for m_wylie85
0
198
Member Avatar for Howdydoody

Im making a separate chaining hash table for dictionary words. In my insert method i use find to make sure there isnt a duplicate. Every thing compiles but my program stops at the find statement and quits working. If i omit the find method, which ok for the first word …

Software Development c++
Member Avatar for Howdydoody
0
134
Member Avatar for ninjatalon

So I just started reading about serialization of class and how I can save them into a binary file. But after I define my class as <serializable()> and try to save the object it keeps throwing me this exception. [COLOR="Red"]"An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: …

Software Development assembly vb.net
Member Avatar for ninjatalon
0
180
Member Avatar for jdm

I'm working on a java program in netbeans and I have it working except to run it I have to right click the main file and tell it to run instead of just clicking the run button. Any help would be appreciated. Sincerely yours; jdm [CODE] /* * To change …

Software Development java java-netbeans java-swing open-source
Member Avatar for jdm
0
179
Member Avatar for samp4ever

Hi everybody. I'm implementing an application that use FileSystemWatcher to monitor the events of a local File System with C#. The problem is that I should also know for my application even the user or the process who made a change, an access, created, deleted and so on a file …

Software Development
Member Avatar for makman99
0
114
Member Avatar for aaronmk2

I am trying to combine the string NCards and Scards into one string called Tcards. I am using # include <cstring> and I get an error. How would I fix this. All the variables are strings. [CODE] void deck::deal() { Tcards=strcpy(Scards, Ncards); }[/CODE]

Software Development c++
Member Avatar for Lerner
0
110
Member Avatar for vineeshvs

1.[ICODE]#include<stdio.h> #include<math.h> #include<stdlib.h> double **memalloc(int M,int N); main() { int i,j; double **a; a=memalloc(2,2); printf("a\n"); for(i=0;i<2;i++) { printf("\n"); for(j=0;j<2;j++) { a[i][j]=i+j; printf("%f\t",a[i][j]); } } } //FUNCTION-memalloc double **memalloc(int M,int N) { int i; double **y; y = malloc(M* sizeof(double *)); if(y == NULL) { printf("out of memory\n"); return 0; } …

Software Development c
Member Avatar for vineeshvs
0
259
Member Avatar for gl7

i am new to c++ and learning about vectors now and vector member functions, so my question is more a logical question. my question is dealing with the .begin() member function, i now it sends the iterator to beginning of vector but i am confused on what it returns. i …

Software Development c++
Member Avatar for gl7
0
206
Member Avatar for xanawa

What is absolute positioning and whis is its disadvantage?

Software Development java
Member Avatar for mKorbel
0
70
Member Avatar for lochnessmonster

whenever u create a string like this... std::string name = "HELLO THUR"; what size buffer does the constructor store the string in when instantiating this string object? im curious thx!

Software Development c++
Member Avatar for WaltP
0
168
Member Avatar for shylesh_kerala

[CODE]#include<stdio.h> #include<iostream.h> #include<conio.h> void main() { int size=5,i,j; clrscr(); //cout<<"Enter the length of array : "; // cin>>size; int *array = new int[size]; cout<<"Enter elements "<<endl; for(i=0;i<size;i++) cin>>array[i]; for(i=0;i<size-1;i++) { for(j=i+1;j<size;j++) { if(array[i]>array[j]) { int temp; temp=array[i]; array[i]=array[j]; array[j]=temp; } } } cout<<"Sorted array"<<"\n"; for(i=0;i<size;i++) cout<<array[i]<<' '; for(i=array[i];i>0;i--) { delete[] …

Software Development c++
Member Avatar for Moschops
0
171
Member Avatar for jfountai

Hi all. Learning Java - sorry for my stupidity if you see any. Here is the code: [CODE] private static void readFile() throws Exception { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, DAYS); String fOther = "filename.csv"; String fOtherImp = "filename_imp.csv"; LineNumberReader lineCounter = new LineNumberReader( new InputStreamReader(new FileInputStream(fOther))); String nextLine = …

Software Development java xml
Member Avatar for jon.kiparsky
0
647
Member Avatar for kristo5747

Greetings. I am using SED to cleanup files that are laid out like so: [icode] ReceiverID=028936004663 SerialNumber=WD-WCAV95708405 Currenttemp=44C PowerOnHours=3663h ReceiverID=028923894902 SerialNumber=WD-WCAV9A766701 Currenttemp=49C PowerOnHours=2215h [/icode] My boss wants files like this one to be tab ("\t") delimited like so [icode] ReceiverID=...(tab)SerialNumber=...(tab)Currenttemp=...(tab)PowerOnHours=...(newline) ReceiverID=...(tab)SerialNumber=...(tab)Currenttemp=...(tab)PowerOnHours=...(newline)... [/icode] 1) first, I added a newline to mark …

Software Development shell-scripting
Member Avatar for kristo5747
0
162
Member Avatar for Archenemie

I've just bought a reasonably capable quad core desktop and I want to start utilizing some of the advantages that multi core processing can offer. I have two simple counting functions, and I would like them to execute simultaneously. Does anyone know where I can start my research into the …

Software Development python
Member Avatar for richieking
0
133
Member Avatar for margeaux54

array1 and array2 is my ascended ordered arrays ı want to put this arrays into the array3 and then ı want to write ouput.txt you can understand better my codes. [CODE] for( int i=0; i<21 ;++i) { if (array1[d].ave> array2[e].ave) array3[i].ave=array2[e].ave; e = e+1; if(array2[e].ave>array1[1].ave) { array3[i].ave = array1[d].ave; d=d+1; …

Software Development c++
Member Avatar for Ancient Dragon
0
220
Member Avatar for omidagha

Create a class DoubleSubscriptedArray, the class should be able to create an array of any number of rows and any number of columns with dynamic memory allocation. The class should supply operator() to perform double-subscripting operations. For example, in a 3-by-5 DoubleSubscriptedArray called a, the user could write a( 1, …

Software Development c++
Member Avatar for arkoenig
0
117
Member Avatar for Kath_Fish

hi...now i am doing sorted list. My problem is like this: I got a store many groups of number in text files eg: 112 133 121 122 133 144 155 133 122 111 111 112 124 234 122 333 221 223 345 * one line mean one transaction I did …

Software Development
Member Avatar for Momerath
0
182
Member Avatar for dizzyboy

Im a beginner in C,Can anyone help me? :?: I have problems when I encounter double or multiple spaces between words. [CODE] #include <stdio.h> FILE *fpr; int main(int argc,char *argv[]) { if ((fpr = fopen(argv[1],"r")) == 0) { printf ("\nFile %s Don't Exist!\n", argv[1]); } fprintf (fpr,"%d",count()); return(0); } count() …

Software Development c
Member Avatar for dizzyboy
0
212
Member Avatar for fab2

[ICODE] Hi, I am having problem in getting a menu' on the screen by using a function. At the compiling time I do not get any error but at the running one it doesn't produce any result. Here the code:[/ICODE] [CODE] #include<stdio.h> void day_menu(); int main() { day_menu; return 0; …

Software Development c
Member Avatar for fab2
0
110

The End.