132,726 Archived Topics
Remove Filter ![]() | |
HI ALL I HAVE SMALL PROPLEM I CANT SOLVE AND I THINK ITS SIMPLE I ONLY TRY TO FILL THE DATASET WITH TABLEADABTER BY SELECT WHERE IN FILL,GET METHOD BY SELECT STENAME, PATENT, RCOMER FROM FOURNI WHERE (RCOMER =@RCOMER) I ALWAYS GOT THE ERROR Error in WHERE clause near '@' … | |
hi i am trying to create a dvd rental system, up till now i have entered the client's details into an array list and have created a loan for every client that rented a dvd. But now i need to edit a part of this loan, for eg i need … Software Development java | |
I'm using Swing's GeneralPath to create complex shapes and fill them. Usually I do this, and it creates a nice hexagon for me: [CODE] path.moveTo(100, 100); path.lineTo(150, 100); path.lineTo(180, 150); path.lineTo(150, 200); path.lineTo(100, 200); path.lineTo(70, 150); path.lineTo(100, 100); g2.draw(path);[/CODE] Suppose I wanted to create a donut-shaped GeneralPath, and do this: … Software Development java java-swing | |
what is FPE? how do i correct this in my program....tried everything...:sad: [code]#include<iostream> using namespace std; int factorial(int a) {int f=1; for(int i=1;i<a+1;i++) { f*=i; } return f; } int main() { int factorial(int); int n;cin>>n;int x=n/2,y=n%2,d,e,f,sum=0; for(int i=0;i<n;i++) { d=factorial(x+y);f=factorial(y); if(x==0) { e=1; } else { e=factorial(x); } if(y==0) … Software Development c++ | |
btw this is a part of a battleship code i want to know what the integers a,b,c,d,e,f... do I know this has something to do with placing ships randomly but it is a little complexed for me. I'd appreciate it if someone took their time to explain it [CODE]int placeship( … Software Development c++ | |
i) My Table contains no of columns and a jcheckbox i the last column. ii) I am using a combobox to select certain value. iii) based on the value of combo box the jbutton loads the data into the table. iv) when i [B]reload[/B] the data into the table, the … Software Development java | |
![]() | Hi, I have been trying to change the highlight color when the mouse gets on it of the stripmenu...how do I do that? Thanks in advance. Software Development vb.net |
[CODE]#include <iostream> #include <windows.h> #include <conio.h> using namespace std; int selectHero(); void Str(); void Agi(); void Int(); void Kunkka(); int Item1(); int Item2(); int ChooseI(); void NormalAtk(); void AInormalAtk(); void Choice(); void Attack(); void Skill(); void Defend(); int Run(); void AIchoice(); void AIattack(); void AIskill(); void AIdefend(); int AIrun(); void … Software Development c++ | |
I want to figure out how this loop sequence how would the computer execute this loop by going through all the steps in the picture attached. Software Development | |
Here is a sort of description to my yet-unimplemented AI agent to play tic-tac-toe. It doesn't have to win, it just has to work, and my description of it has to be good. Tell me what you think: [code] /* "RATION_AL" The goal of my agent is to implement an … Software Development c++ | |
[CODE]char *ReadFile(string& filepath) { string buffer=""; char temp_char; ifstream file; file.open(filepath); while(!(file.eof())) { file.get(temp_char); buffer+=temp_char; } size=buffer.length(); char *result1=new char[size]; for(int i=0;i<buffer.length();i++) { result1[i]=buffer[i]; } file.close(); return result1; }[/CODE] code looks pretty normal right? but when I run it with the rest of the program this happens... [url]http://imageshack.us/photo/my-images/267/chararray0001.jpg/[/url] [url]http://imageshack.us/photo/my-images/28/chararray0002.jpg/[/url] [url]http://imageshack.us/photo/my-images/11/chararray0003.jpg/[/url] … Software Development c++ | |
Hi everybody, Actually I'm trying to do small form that has a textbox for BARCODE which when I scan an item it will add on my listview but I recieved this error that I don't know what went wrong in my code "System.NullReferenceException: Object reference not set to an instance … | |
[CODE]public class Grades{ public int scoreTotal; public int numScores; double average; static String file = "randomNumbers.txt"; int lowest; int x; int temp; public static void main(String[] args) throws FileNotFoundException{ int scoreTotal = 0; int numScores = 0; double average = 0; int lowest = -1; int temp = 0; Scanner … Software Development java | |
I was just wandering if there was a way to put information in to a string but increment a section of the text when putting it in the string. To put it simply: [CODE]string="to be put in string[this is to be incremented]";[/CODE] I was wandering if there is a way … Software Development c | |
"Draw a grid of 20 streets horizontally and 20 streets vertically. Represent the simulated drunkard by a dot, placed in the middle of the grid to start. For 100 times, have the simulated drunkard randomly pick a direction, move one block in the chosen direction, and draw the dot. Use … | |
I think it's just ging to be something stupid that I've missed since the program itself runs, though doesn't solve the decrypted text. I've included the text from the decrypted file below the code and any help would be great. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Frequency_Analysis … Software Development | |
Hi there guys, I seem to be having a problem with my java code. Scenario; I have an array, this is generated according to the user; entering 200; will give him 200 numbers. These numbers are supposed to be semi sorted. To achieve this i created a random array, then … Software Development java ![]() | |
Hey, i want to enter a number by user. [CODE]printf("Enter a number: "); scanf("%d",&number);[/CODE] but,user enter text.i mean: [B]Enter a number:[/B] One Now,i want to convert this text to number. [I]I hope,i tell my problem.Sorry my bad english.[/I] Software Development c | |
The program is supposed to compute the values of [URL="http://mathworld.wolfram.com/GammaFunction.html"]Euler's Gamma Function[/URL] using an infinite product (formula #15 in the link), and it does so decently for low values, but the error gets too big for bigger values. Using both Mathematica and Maxima for reference this is what I get … Software Development c++ | |
please disregard this as i have figured out what was going on. i will delete this as soon as i know how. Software Development c | |
Ola' daniweb, long time no see. I've been absent for a while, mostly due to not having any problems to ask about, but also because I got one of those annoying 'job' things ^_^. Anyhow, I'm not terribly familiar with C# (being from c++ land), however I've got to use … Software Development c++ data-structure | |
Hi daniwebbers, I am a newbie learning java and keep getting a "cannot find symbol" error when I try to compile my program. I've tried searching but I don't really know what search terms I should be using in this case. Can anyone see the problem? [CODE]import javax.swing.*; import java.awt.event.*; … Software Development java java-swing | |
Hello, I'm creating a Matrix, that the user can manually define the rows and columns.. (This will be defined in a class) But, I'm having trouble resizing the vector to what is set in main.. Here is the code: Matrix.h [code] #ifndef _Matrix_h #define _Matrix_h #include <vector> using namespace std; … Software Development c++ | |
[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> union REGS in,out; void hide_mouse(); void show_mouse(); void detect_mouse(); void detect(int*,int*,int*); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any … Software Development c | |
I need to make the last 5 bits of the unsigned int become zero(1111_1111 to 1110_0000) There are two solution [code] unsigned int number = 0xFFFF; unsigned int temp_one = number & (~0x1F); unsigned int temp_two = number >> 5 << 5; [/code] which one is faster? I write a … Software Development c++ | |
I want to decrypt the bootmgr file on my system.. I want to use the unprotect() method... I need to know that is it possible to do it with unprotect(), being the administrator of the machine.. And what should be given as the entropy value? Should the entropy value be … Software Development | |
How to set case sensitivity in ms access database? I need it for password column. Software Development | |
Hi there)) I know that one of the ways to pass variables values into thread -is to create a special structure which includes all needed parameters/ But what about getting values from thread? Is it any way to get value after modification from the thread ? I know only one … Software Development c | |
Hello I have a sequence that looks like this: 60211401dc070000 which is a string (it was build through a series of concatenations and conversions) How can i just tell him that it is actually a hex ?? without modifying it's value... Thanks! Have a nice day Software Development python | |
[CODE]//So I'm writing this program that converts change into smaller denominations. //For example .97 would be 3 quarters, 2 dimes, 0 nickels, with 2 remaining. //The program compiles and runs but it's not the completely correct output. Can //anyone help. //Converts change into small denominations. #include "stdafx.h" #include<iostream> #include<conio.h> using … Software Development c++ | |
Hi! I have this code in my program [CODE]sqlstat= "select bookNum from booktitle" sqlstat2="select bookNum, bookName from booklist where bookNum not in " & sqlstat & "and bookAuthor like '" ListBook.SelectedItem & "'"[/CODE] but it has "Incorrect syntax near the keyword 'and'" error... please help me with this... response is … | |
I m trying to pass a 10.10 value to double and it takes 10.1 instead of this? Any solution. Software Development java | |
There is a threaded bst class program. I want to have a delete function for this class. every time I tried to write, not work. how can I have a delete func as simple as other funcs. I googled a lot but all codes are written with structs not with … Software Development c++ | |
I'm curious about something. If I have a listbox that is databound and a filter is applied to that listbox based on the value in a combobox, what would be the best way to handle the null reference exception thrown when the form loads or the filter changes and everything … Software Development | |
I have a DLL file written in C++, using Microsoft Visual Studio 2008. The socket class coding is an adaptation of [url]http://www.adp-gmbh.ch/win/misc/sockets.html[/url] and the whole thing works when compiled as a 32 bit DLL, but the Internet connectivity does not work when I compile it as a 64 bit DLL. … Software Development c++ visual-studio | |
I cannot figure out why this will not execute. For somereason it does not like my inner join I believe but it works perfectly in management studio. Any ideas? [CODE] Dim column_1 As String Dim column_2 As String Dim column_3 As String Dim TotalCol As String Dim D As String … Software Development vb.net | |
[B]Parallel Resistance[/B] i am trying to input and calculate this for any given number of resistors and any value of the resistors. the formula is [B]1/R= 1/R1+1/R2+1/R3.........+!/Rn[/B] Could someone tell me how to input this into C++ could u explain a little on how to do this aswell. Thank you … Software Development c++ | |
Hi, suppose I have a file named [B]first.txt[/B] from which I want to read. Suppose the text file looks like this: [quote] I like you. I feel your soul. [/quote] Now if I use this: [code] open cool, "< first.txt"; print <cool>; [/code] the entire file content is printed, but … Software Development file-system perl regex | |
Hi list, Three functions use the following items vector. Where/how should i put the vector to make this possible ? Any reference to related sources will be appreciated. [CODE] vector< vector<int> > items ( 6, vector<int> ( 6 ) ); [/CODE] P.S I tried to make it static but it … Software Development c++ | |
Hi, What's the problem in the below code... [CODE] Dim ds As New DataSet Dim da As New OleDb.OleDbDataAdapter Dim cb As New OleDb.OleDbCommandBuilder(da) Dim dsNewRow As DataRow dsNewRow = ds.Tables("mr_head").NewRow() [/CODE] I am getting the below error : Object reference not set to an instance of an object. | |
I have 1 Table Called "Menu" there are some textboxes and a combobox. I want to fill data in the Textbox called "Menu_Rate" on Selection of combobox selected item & coressponding rate of the Menu shoud be displayed in the textbox. [U]This is my Code[/U] [CODE]con.ConnectionString = "Data Source=localhost;Integrated Security=true;Initial … Software Development open-source vb.net | |
I am learning regex in php but want to try out how the regex in python works. I have not yet moved to the code side of things and for the same reason, i am searching for the regex examples in both php and python. To start somewhere, i decided … | |
[CODE]// DETERMINANTS by a.w.k [COLOR="red"]#include<conio.h> #include<iostream.h> #include<stdlib.h>[/COLOR] int main() { int ex,choice,a,b,c,d,e,f,g,h,i,ans; char repeat; clrscr(); do{ cout<<"\n Determinant Solver [with Explaination]"; cout<<"\n Enter your choice..."; cout<<"\n\n Press [1] for 2x2....\n \n Press [2] for 3x3...."; cin>>choice; clrscr(); if(choice==1) { cout<<"\n Enter 4 values of Determinant...."; cin>>a>>b>>c>>d; clrscr(); ans=(a*d-b*c); cout<<"\n Entered … Software Development c++ | |
hi i am facing overwriting file in window mobile 6 professional. bellow are my code. when the system start loading: [CODE] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim line As String Dim Lat As StreamReader = New StreamReader("\Program Files\please_must_be_ok\Resources\contact1.txt") line = Lat.ReadToEnd() TextBox1.Text = … Software Development file-system vb.net | |
Here is my code: [CODE]class Catandmouse { public void CatAndMouse() { Animal cat = new Animal(); Animal mouse = new Animal(); int mouseCaught = (int) (Math.random() * 10); cat.CatchMouse(); int catgetsit = 0; if ( mouseCaught == cat.number ) { System.out.println("The cat caught the mouse!"); } else { System.out.println("The mouse … Software Development java | |
I am writing an application which calculates profit from 3 column values. The SQL is as follows in vb dataset designer; [CODE]SELECT ID, Sale - (Weight * 20) * (Rate -5) AS Profit From AgencyRegister WHERE (DatePart('yyyy', ArrivalDate) = ?) ORDER BY ArrivalDate[/CODE] I want to add another column of … | |
How to print this series using loop 1,1,2,3,5,8,11,19,30,49........... Software Development java | |
well basically i have this code working to display distance to nearest station and the station name but i want it to show what line the station nearest is located on i've tried to figure it out but just dont seem to be getting anywhere with it the code (including … Software Development java java-swing | |
Hey everyone, i need a little help with searching a string and putting that date into another string. ex: [CODE] String com = ""; String mystring = "sometext here: !com shutdown"; // Magic happens System.out.println(com); // Output: "shutdown" [/CODE] "!com" is the constant to search for, shutdown is variable. Software Development java | |
Hey there. How do i stop this damn computer form automatically filling in my second Qoute when i make the first one " and then i have to press space for there just to appear one. It messes me around sooo badly with my programming. it does that wiht quotes, … Software Development java |
The End.