132,726 Archived Topics
Remove Filter ![]() | |
Hi, I have created a stored procedure that would insert new records in one of my database tables. I have tested the procedure in SQL Server 2005 and it works all right. What I want to do next is to connect the stored procedure to my form in VB.Net so … | |
[code] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iostream>[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]const[/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] ArraySize = 8;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] seqSearch([/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] list[], [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] listLength, [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] searchItem);[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] main()[/COLOR] { [COLOR=#0000ff]int[/COLOR][COLOR=#000000] index;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] intList[ArraySize];[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] name;[/COLOR] cout<< [COLOR=#800000]"Enter 8 names: "[/COLOR] << endl; [COLOR=#0000ff]for[/COLOR][COLOR=#000000] (index = 0; index < ArraySize; index++)[/COLOR] cin>> intList[index]; cout<< endl; cout<< [COLOR=#800000]"Enter a name to search for... … Software Development c++ | |
Hello, i need to make program which can do squaring, so x^n. I can do it with pow(x,n): [code]#include <iostream> #include <cmath> using namespace std; int main() { double x, c; int n; cout << "Alap = "; cin >> x; cout << "Kitevo = "; cin >> n; if … Software Development c++ | |
Hi everyone. I just started learning Java and did a few application to familiarize myself with it. I wrote an application to output a 2D array table but i can't seem to do it in an applet. Can anyone guide me along here? Problem is when i tried to output … Software Development java java-swing | |
[HTML]Is there a way(function) to distingusih between different data types?[/HTML] If u can, provide me with the function code, please?:) Software Development c++ | |
I have a hw question that asks us to create an STL funciton that takes an argument of type map<string, int> and an integer and returns vector containin all positions in map for which the integer value is found. The function works from what I can test. But I wanto … | |
ok so i got the last part finished and working now for the bit i havent done before at all. instead of the pickle file the customer data has to be read in from a data base i have been supplied with the data base and the code but i … Software Development open-source python | |
hi guys, absolutely no idea where to start and im sure its a really easy thing to do. i just want to use a button to print the current form to the computer's default printer. thanks | |
what is wrong with my code? [code] Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MyConnection.Open() Dim strSQL As String = "SELECT * FROM Question WHERE SurveyID=83 Order By QuestionNum" Dim cnCommand1 As SqlCommand = New SqlCommand(strSQL, MyConnection) Dim Rdr As SqlDataReader = cnCommand1.ExecuteReader() 'execute reader … Software Development vb.net | |
Would somebody mind looking at this code and giving me some advice as to the copy constructor and assignment operator overload function? When I try to use this class in my program, I get the following error: error C2679: binary '=' : no operator defined which takes a right-hand operand … Software Development c++ | |
I'm having trouble reversing a string. Me thinks I've stared at this too long. [CODE] Private Sub btnReverse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReverse.Click Dim strOrgText As String Dim strRevText As String Dim array As Array strOrgText = Me.txtTheString.Text array = strOrgText.ToCharArray() strRevText = array.Reverse 'Here is … Software Development vb.net | |
Hi, I am working on a perl script, were a program is given a file, another file and a deviation (a number) as input on the command line. I also wants the program to complain when its too many arguments , it should just be to filenames followed by a … Software Development perl | |
hello,,,everyone,I just want to ask a list of sites to where i could learn GUI programming in c++ for the beginners like me.i hope you could help me about this one and be one of my circle of friends.you may just add me in your yahoo messenger jk_bscomp or e-mail … | |
hi, does anyone knows if is there a way to make getchar non blocking? I'm using curses and I'm on linux platform. With a thread version of the same program I have solved my problems with getch and with the timeout function but now the program doesn't work properly and … Software Development c | |
Good day! I have a problem in changing a properties of a control in class module. I want to put it in a function so that every now and then I can call it. Could anyone help me how to change it! Thanks in advance! Software Development vb.net | |
Any body knows a way to create a uninstaller in vb6 or any easy to use third party software... thanks Software Development visual-basic | |
Hi, I have a file in the format of: First-Name Last-Name StudentNumber Grade1 Grade2 Grade3 Any student may up to 10 grades, and I want to read the information from the text file into a vector. My question is, how can I read the file into the vector so that … | |
i wrote this script, and everytime i run the script the code deletes and i want to know why EDIT: i also chmod 755 if anyone wanted to know [code] $ cat > ispostive #!bin/sh # # Script to see whether argument is postive # if test $1 -gt 0 … Software Development shell-scripting | |
Hi, I am writing a function that needs to return either a R S or P. It works fine if what I am inputing is a R S or P. If something else is enter it acts funny. Any suggestions to help me out? [code=c++] char getUserChoice () { char … Software Development c++ | |
I'm going nuts i need to do a program that will count words, vowels and consonants and special character, i'm just a beginner and my teacher is killing me with this. Software Development c | |
i have this simple program im writing to help my dads business. thoguh it doesnt seem to be working, this is what i have currently [code=c++] #include<iostream> using namespace std; int change(double money,int onedollar,int fiftycent,int twentycent,int tencent,int fivecent); int main() { int money, onedollar, fiftycent, twentycent, tencent, fivecent; cout << … Software Development c++ | |
,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Nimbus Sans L"; font-size:x-small } --> ahmm hi everyone i'm a newbie here at daniweb.. but i have an unfinished business(project).. guys.. pls.. help me to solve this.. or give some comments or replies in my problem.. this is my problem.. i don't know what function/s should … Software Development c++ | |
Hey, this isn't an, "I have an error" post! It's more like I'm taking a basic java course in High School and want to include an image as a background in a project in swing. I found some code online that seems to do this quite well, but I need … Software Development gui java java-swing user-interface | |
[CODE]#ifndef HUGEINTEGER_H #define HUGEINTEGER_H class HugeInteger { public: HugeInteger(); void input(); int setNumber(char []); void output(); void convertToInteger(); void subtract(); bool isEqualTo(); bool isNotEqualTo(); bool isGreaterThan(); bool isLessThan(); bool isGreaterThanOrEqualTo(); bool isLessThanOrEqualTo(); bool isZero(); ~HugeInteger(); private: char a[41]; char b[41]; int *array1; int *array2; int result[41]; }; #endif [/CODE] [CODE]#include<iostream> … Software Development c++ | |
guys, can you help me to get data from a text file and putting it in an excel file? my programming language is visual basic 6.0 here is a sample data from the text file: ANO,BNO,TRANSDATE,TRANSTIME,ORIGINS,DESTINATION,CA LL_TYPE,OUTROUTE,INROUTE,CALLS,ACTUAL_MINS,COST 0498373386,[U]006623322001[/U],20070216,16:33:35,SRO,THB,IDD,IBEF7O,,[U]1[/U],[U]0.766666666666667[/U],-0.014413 0498373386,006623322001,20070223,12:59:40,SRO,THB, IDD,0241,,1,0.8,-0.01264 0498373521,0096265522113,20070207,11:22:59,SRO,JO, IDD,0241,,1,0.433333333333333,-0.019717 i wll get the underlined data, then i … Software Development file-system visual-basic | |
[code=c++] void playAgain() { char again; cout << "Do you want to play again (y/n)?: "; cin >> again; if (again == 'y') chooseOption(); else if (again == 'n') cout << endl << "Thanks for playing Connect Four, the game of the clever people!"; else cout << "Invalid Choice" << … Software Development c++ | |
Hi, I can't get cin.getline to work properly, I'm using it inside a for loop.. it gets the input sucessfuly when the loop is executed for the first time(i=0), but it doesn't wait to take any input on the next times..the program just moves to the next line.. [code=c++] #include … Software Development c++ | |
Hello, let's say the user enters a value in this format xx:xx:xx where xx is an integer, how can I assign each xx to integer vars? I though of everything I know.. can't use getline(),getchar() bcuz they accept characters only, can't use cin either.. thought of storing the xx:xx:xx on … Software Development c | |
I need help someone im trying to delete the blanks of this array of strings stored in str[i] loop but cant copy wihtout delete spaces please help some one.. thanks [code=c] void deblank(char str[MAX_STR], char result[MAX_STR]) { int num; //variable to hold value for string length int i, j; // … Software Development c | |
ok you will probably be sick of my posts but i have tryed and got this far, i ripped the program to pieces and started again. basically its a atm program that i have to do for college. if anyone can see why its not workin properly it would be … Software Development python | |
Hi, I'm currently trying to make a simple picture Puzzle Game ,but i have some questions. I hope I found the answers here . First, How I can separate a picture into small pieces? Second, I want the user drag and drop the parts of the picture into the playing … | |
I've created a simple table quiz program in VB6 and I want to load a help file (help.hlp) from within my code. I want the program to load the file when I select it in the Main Menu. I've tried using the load ("") function with the file file path … Software Development file-system visual-basic | |
Hi, 1 ) I must take a back up of a access data base daily and store in my desktop. Please give me coding to copy the access data base from the c drive and to paste in my desktop. Every time when i save the access in my desktop … Software Development visual-basic | |
hi, i want a idea how to find a host ip address in a network. Software Development java | |
Hi all, I am trying to create a file and write something into that file. Here's what I have tried: [code] import java.io.*; import java.util.*; public static void main (String[] arg) { try { String file_name = "test.txt"; FileWriter file = new FileWriter(file_name); BufferedWriter out = new BufferedWriter (file); String … Software Development file-system java | |
Hi, I have this program in C++ and I am struggling to understand as to why I am not able to store a value in an integer declared in the program as double within the acceptable range of [B]2.2e-308 to 1.8e308[/B]. Here this page also says so in a table: … | |
Hi, i am a beginner in java. i have to put two text fields in my form, one for username and the other for password. i want the password text box to hide input when user types in it. Can someone please tell how can i do that in java, … Software Development java | |
Hi, i am trying to write an alternative MIPS program the multiplying two given integers 6 and 8 i have already written # Program to multiply 6 by 8 answer = 48 .text main: addi $t1, $0, 6 # store integer 6 in $t1 addi $t2, $0, 8 # store … Software Development assembly | |
I need your help . i have to develop my knowledge in‘English words’. I try to byheart the new words from books, and I am unable to keep in mind and often forgetting. So I decided to develop a package for my won use. It should be like a simple … Software Development visual-basic | |
[COLOR=darkorchid]Good afternoon;[/COLOR]:) [COLOR=darkred]what is wrong in this code ,[/COLOR] [COLOR=darkred] its job to print a name in reverse order[/COLOR] [code] name dword 20 dup(' '),0 . . . . . mov edx,offset name mov esi,offset name mov ecx,lengthof name L7:mov edx,[esi] call writestring dec esi loop L7 [/code] [COLOR=darkred]when running … Software Development assembly | |
I need some help on this program that i have. i can't seem to get it to work. any comment on the program would be appreciated. Thx in advance. I have uploaded my program in case u need to take a look. [CODE]Dim first As Double Dim second As Double … Software Development visual-basic | |
Hi, it's me again and i have new question: This is my code: [CODE]# -*- coding: cp1250 -*- import string as _string import time as _time import wx from math import* class Canvas: def __init__(self,parent): self.okno=parent self.okno.SetBackgroundColour("#FCFCFE") self.radic = wx.FlexGridSizer(2,2,0,0) self.canvas = wx.ScrolledWindow(self.okno, -1) self.canvas.EnableScrolling(True, True) self.P_WIDTH = 1000 self.P_HEIGHT … Software Development python | |
hi,i have to implement multiplication of two huge integers of 40 or more digits.i've made a function in a class for its implementation but its not working.plz help if u find any logical errors in it. [CODE]void HugeInteger::multiplyHugeIntegers(HugeInteger H1,HugeInteger H2) { int carry=0; int count=0; // introduced to place the … ![]() | |
I can't seem to get access to images in my application when i pack the executable jar file. I've tried everything i can find in examples and nothing is working. Can anyone help please? Is there a way of specifying where images are in the manifest file. Software Development java | |
i use thsi code for timer , but it shows the messagebox 50 times.. i just need the mesage box to be showed once only [COLOR=#008000]Dim conn As New OleDbConnection [/COLOR][COLOR=#008000]Dim dap As OleDbDataReader [/COLOR][COLOR=#008000]Dim cmdb As New OleDbCommand [/COLOR][COLOR=#008000]conn.ConnectionString = Provider=Microsoft.JET.OLEDB.4.0;DATA SOURCE= c:\ApptDB.mdb" [/COLOR][COLOR=#008000] conn.Open() [/COLOR][COLOR=#008000]cmdb.Connection = conn [/COLOR][COLOR=#008000]cmdb.CommandText … Software Development open-source vb.net | |
I'm working with metrowerks codewarrior to do this program. This program asks you to create fibonacci sums up to 2^23 and then asks you to do some more stuff after that. I'm just wondering if you would set up an array or a for or a while loop to complete … Software Development java | |
Hello, I need to print a menu, displaying the available choices as characters, no problem. I need to store that character into a variable, then check to make sure that character isn't Q or q, no problem. However, if the user enters anything other than a, b, c, d, or … Software Development c | |
Hi there, I need to make a piece of code in C that 1. opens a specified file, 2. Reads the data in the file and separates it as shown below, 3. Converts the strings into integers and then perfoms some manipulation on them, 4. returns the new values to … Software Development c++ | |
i want to right a code to display a blinking z for example if i write an A then i write 0x0741 in this asccii where is blinking bit to be set Software Development assembly |
The End.