132,726 Archived Topics
Remove Filter ![]() | |
I'm a beginner with python and I'm trying to write a program that asks the user for how many classes they have taken, then asks them for the class codes and prints the classes they have left to take. I can get the program to run perfectly for one list … Software Development python | |
I want to count the total no of rows in a table [CODE] Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:gabbar"); Statement ps1 = con.createStatement(); ResultSet count = ps1.executeQuery("SELECT COUNT (*) FROM products ); //products is a table in database [/CODE] count is of ResultSet type.but i want to do arithmetic operation on … Software Development java | |
hi when i open my form to work with it it comes up this error i have no idea what to do with it can someone help me [QUOTE] Value cannot be null. Parameter name: objectType Instances of this error (1) 1. Hide Call Stack at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.GetRuntimeType(Type objectType) at System.ComponentModel.TypeDescriptionProvider.GetRuntimeType(Type … Software Development vb.net | |
Hey all, i'm newbie programmer, i wan't to work with vb6, i wan't to know about adodc, adodb, odbc, and dao i know function adodb, but not adodc, adodb, odbc, dao can someone explain to me about adodb, adodc, odbc, and dao thanks for help Software Development visual-basic | |
I want to find if Array B is present in array A(B is a substring of A).. i have written this small function but its not working as desired ..can anybody plz help and point out where i m wrong [CODE] bool substring(char A[],char B[]) { int aSize=strlen(A); int bSize=strlen(B); … Software Development c++ | |
Hey all, i have a problem here, i want to know how to send value from datagrid to excel plizzzzz.. help me Software Development visual-basic | |
Dear Gurus, I am having this inventory program but can not give me the desired results.What am I doing wrongly? I want a user to enter and display results. [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cctype> using namespace std; const int DESC_SIZE = 51; // holds inventory description … Software Development c++ data-structure ios | |
hi , I was trying to open a file using fopen() method. It's not opening all the time. some time it opens but the other time its getting crashed.... FILE* tmpfile = fopen(xxxxxx, "r") this is the code i am using.... and every time the value of xxxx is coming … Software Development c++ file-system | |
Hello! I have a problem. I can't use scanf() to set a value of the second member of the person struct. Why? I get an error that tells me "bad access". [CODE]int main(int argc, const char * argv[]) { struct Adress{ char *street; char *postal; int zip; }; struct Person{ … Software Development c | |
Hi guys, I'm trying to make an enemy object follow a player object but I'm having a problem with picking up the player co-ordinates, it gives me an error "Player object has no attribute x" Here's whats iv'e got: [CODE] import pygame pygame.init() class Player(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.image = … Software Development python | |
I want to build a network protocol analyzer, but I really don't know where to start. Obviously, I don't want the code in hand, I can think it up myself -- but the problem is a little more specific - where do I look at to get the IPs passing … Software Development cybersecurity java operating-system ubuntu | |
I realise that this is a question asked a lot, but the best answer seems to be to use the "AcceptButton" option ... I don't have that option, why would that be ?!? I am using VS2010 & C# for my program, but nowhere is there an "AcceptButton" option !!! Software Development vb.net visual-studio | |
Hi everybody. I'm working on my program. And have this output storred in the object puzzle: [CODE]Puzzle is: 1 5 9 13 2 6 10 14 3 7 11 15 4 8 12 16 2 6 10 14 3 7 11 15 4 8 12 16 5 9 13 1 … | |
[CODE]#include<stdio.h> //#include<conio.h> //#include<string.h> #include<string.h> //#include<iostream.h> int main() { char al[28],b[104]; int i=0; int t,k=0; // b[0]='A'; scanf("%d\n",&t); while(t--) { // scanf("%s",b); gets(b); gets(al); //gets(al); //printf("%s",b); //puts(al); // scanf("%s",al); // for(k=0;c1!='\n';k++) // { // scanf("%c",&c1); // // b[k]=c1; // cin>>c1; // b[k]=c1; // } // printf("hello"); // puts(b); // gets(b); // … Software Development c | |
Hi guys, So I'm doing an assignment right now. One of the tasks is about listing files. It wants you to insert a name, either directory or a certain file, and give you a message with some informations. So I'm trying to finish the part where I enter a directory … Software Development java | |
Hello...just started learning C and i'm trying to write a program that solves quadratic equations...but every time i compile and run it and enter the 3 variables it crashes. I kept on looking but didn't find anything wrong with it...help? :P [CODE]#include <stdio.h> main(){ int a,b,c; float x1,x2; printf("Please enter … Software Development c ![]() | |
I was tried to debug to find an explanation to this but i still don't really understand the concept. Here goes. [CODE] //pass in value //973 456.2 77F //973 456.2 77F #include<iostream> using namespace std; int main() { char letter; int n; float m; cin>> m; cin.clear (); cin.ignore (200, … Software Development c++ | |
Hello All, I have starting using Visual Studio Pro 2010 and I understand the very basics in programming. Currently I am trying to create a login system where users enter their usernames and passwords. I have been experimenting with trying to link Access database to MySQL but im having no … Software Development c++ visual-studio | |
#include <iostream> #include <string.h> using namespace std; int main() { char test[256]; int x,i; int vowels; cout<<"please enter a word"; gets(test); x = strlen(test); for(i=0;i<=x-1;i++) { if(test[i]!=' ') { cout<<test[i]<<endl; } if (test[i]=='a' || test[i]=='e' || test[i]=='i' || test[i]=='o' || test[i]=='u' || test[i]=='A' || test[i]=='E' || test[i]=='I' || test[i]=='O' || … Software Development c++ | |
As I am new to Vb, I am not sure if this is even possible. i have created a program and now we are testing the maximum clients possible for the server.the thing is since, we are at the beggining stage, we come across numerous errors and so the person … Software Development vb.net | |
The problem is, that I want to read data and analyze it from a promiscuous network device programmatically using java. Using existing software like WireShark/DarkStat is NOT a solution. I wanna do it myself. Any hints on where do I start? Software Development java | |
I need a code in vb.net for sending mail with attachment... Kindly help ... Vivek Software Development vb.net | |
What I want to do is 1. Take strings from the user and store it in a vector<string> 2. Loop through each string, typing each letter of the string How would I go about doing this? Robot r = new Robot(); [CODE]char letter = 'a'; r.keyPress( (int) letter )[/CODE] Won't … Software Development java | |
Hey can anyone help me out with this code? Im am really stuck and need to complete it for my engineering degree but none of lecturers have any coding knowledge so im really in trouble. I have a GUI and in the GUI is 3 comboboxes with different options. Depending … Software Development engineering gui vb.net visual-studio | |
hi all, I do not understand how i concatination of two string using pointer in c++. please can you give sugestion how i implement.. thanks in advance Software Development c++ | |
Hey everyone, I am pretty new to writing procedures that deal with this idea of recursion. I am trying to get into that certain frame of mind but I am having a little bit of trouble at the last minute. My goal was to implement a text operation called swap … Software Development c++ ![]() | |
![]() | I am going to assume that gcc is the compiler people are using on their *NIX. so for that, I know that [CODE]#if defined(__GNUC__) [/CODE] will work. SO... for Centos, Solaris, HPUX, AIX, Linux, BSD, FreeBSD, OpenSUSE, Fedora, redhat, what #if defined()'s do I use to detect these OS's? |
Help me to format currency col(2) = 1.234.567 I have search any where can'not find answer [CODE] With Lv1 .Clear() .View = View.Details .FullRowSelect = True .GridLines = True .Columns.Add("Product Name", 250) .Columns.Add("Stock", 90, HorizontalAlignment.Right) .Columns.Add("Price", 90, HorizontalAlignment.Right) '.SubItems(2) = Format(Value, "#,##0.00") FillListView(Lv1, GetData(sSql)) End With[/CODE] tx | |
Alright, so I tried to write a little short guide on Object Input and Output to files, since the worst situation one can find themselves is being unable to serialize files in a proper and readable format. One way to do so is to create an object of a class … Software Development api file-stream java oracle | |
hi, our final exam will be on next week, i want our program to be different may i ask how to put colors on texts of JOptionPane on the background and how to change font size and style and how to put sound effects.. please make it easy to understand … Software Development java | |
what is the syntax for blank list view object... for example: [CODE]if classlistview is blank then <statement> else <statement> end if[/CODE] what is the syntax for classlistview is blank? as in no record(s) were retrieved... any help is appreciated... thanks :) Software Development vb.net | |
My server is in python and I'm trying to read and write to socket using ObjectInput/Output Streams whenever i write to socket there is some characters written in socket before my writeObject() command is executed and whenever i tried to read the data from socket using readObject() , it gives … Software Development java | |
Hey, I created a phone directory program. But I was wondering if I could get some hints on how I could create a txt file and add, delete names and numbers on the txt file. [CODE]import java.util.*; import java.lang.*; import java.lang.Object; import jpb.*; public class PhoneDir { private static LinkedList … Software Development java linked-list smartphone | |
Hi, So here's what I have, Ive got a Listbox which displays a data/record from a SQL database, it displays "Amount" and only numbers would appear. it has a datasource. Goal: I'd Like to get the total sum of those numbers from the Listbox and Display it to a textbox … | |
Hi Programmers, Please help me, i was wondering on how to create a simple phone book program using struct array to insert a new contact, update an existing contact, delete an existing contact and to display the contact information Software Development c smartphone | |
ChatBot class: A chatbot is a computer program designed to simulate an intelligent conversation with one or more humans. In this lab, we will establish the framework for our chatbot, which will be enhanced throughout the semester. The ChatBot class will define a name field that identifies the chatbot (name … Software Development java | |
hi ppl i need bit of help in my vb coding. I have a publish data onto datagrid and allow user to search for specific record by inputting no. everything going fine. however i was unable to inform the user if there is no matching record found. i tried to … Software Development vb.net | |
I have a C-code written in turbo C. I want to make a standard exe file that can easily run on any other PC as well which doesn't have TC installed. I have to provide my client simply an exe file which continuously monitors the serial com port for some … Software Development c | |
hi every 1. i am trying to make a logout message box where it says "Are you sure you want to logout" and the options are yes or No. If user clicks Yes it should logout and its hould show login screen and if user clicks No. It should show … Software Development vb.net | |
my report show this way: surname 1 firstname1 middlename1 surname 1 firstname1 middlename1 surname 1 firstname1 middlename1 surname 1 firstname1 middlename1 surname 1 firstname1 middlename1 surname 2 firstname2 middlename2 surname 2 firstname2 middlename2 i want to display my those records this way surname 1 firstname1 middlename1 surname 2 firstname2 middlename2 … | |
I believe that my program in the attached file is almost finished. When I try to run the program,there are two error message that pop up. The error are the following: 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>c:\users\usr\documents\visual studio 2010\Projects\NEWLDIST\Debug\NEWLDIST.exe : fatal error LNK1120: … Software Development c++ visual-studio | |
Hi, I am having trouble outputting to many files [CODE] ifstream sim_dump; sim_dump.open("c_grain.sim_trj"); char dump_file[20]; int itr = 4000; sprintf( dump_file, "%d", itr); ofstream fout(dump_file); while(lammpsdump.good()) { //if(itr % 100 == 0) //{ fout.close(); sprintf( dump_file, "%d", itr); ofstream fout(dump_file); cout << "TIMESTEP " << itr << endl; //} ... … Software Development c++ | |
How i can make my server receive data from certain client and send it to other certain one ? (Note : there is a lot of clients connected with that server) , that's alike private chat between two clients . Software Development client-server java | |
pls help.. I have a to create a timecard calculator. it goes this way txtbox1 is for their 1st in txtbox2 is for their 1st out textbox3 is for the difference of txtbox1 and textbox2 txtbox4 is for their 2st in txtbox5 is for their 2st out textbox6 is for … Software Development mathematics vb.net | |
Here is the code for the programm. My question is why this statement in SudokuValidator doesn't work? [CODE]for (Cell[] myPuzzle : puzzle) {[/CODE] it gives me errors: [CODE] Exception in thread "main" java.lang.NullPointerException at SudokuValidator.isSolution(SudokuValidator.java:54) at SudokuValidator.main(SudokuValidator.java:27) [/CODE] [CODE]import java.util.*; public class Cell { int value; public Cell() {} // … | |
ok so first of all my following code its suppose to read input from user and seperate the strings into commands and arguments.For example if i input changeDir hello , the tokenizer(which i already implemented) will split it and put changeDir into tokens[0] and hello into tokens[1]. Now what im … Software Development c++ | |
I'm working on Microsoft Dynamics CRM. I want to retrieve all the columns from an entity. When I use [CODE]Query.ColumnSet.AllColumns[/CODE] ..It indicates an error. So how can I retrieve all colunms..thankx in advance. Software Development | |
Hi Guys, How to use bigin trance, commit and rollback in c#, suppose i have inserted values in two tables while inserting i am getting error in table 2 but table 1 has inserted values successfully so in catch how i can rollback changes.....after successful insertion i want to commit … Software Development c# | |
[CODE]import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Mortgage { private static double round(Double val) { // round the value to two decimal places int vala = (int) (val * 100); return (double) (vala / 100.00); } public static void main(String[] args) throws IOException { double loanAmount = 200000.00; // Loan … Software Development java | |
Hey everyone, I wrote some code to create a deck of cards, described the deck and randomly deals 5 cards. First, I want to let everyone know that this is homework for my C-II college class, so I am not looking for any answers, but solutions or guidance in figuring … Software Development c++ |
The End.