199,114 Archived Topics
Remove Filter ![]() | |
Hey. I'm pretty new to C# and programming overall. I'm trying to make a Hangman game. Let's say the user want to make a guess at the letter "t". Then he should just have to press "t" on his keyboard and the form should recognize it. I currently can't even … | |
I need to capitalize the first word of each sentence from a text file and make the rest lowercase. the text file looks like this: April 7, 2010! here is some TEST data to see if THE prOGRAm will work. "what do you know!" wiLL IT? anything with '.' '!' … | |
Hi all, in a piece of code like this: [CODE] void Logger::logMsg( int msgLevel,const char* msg) { char input[strlen(msg)]; ... } [/CODE] is the input array dynamically allocated? In this case, do I have to use the delete [] in order not to have a memory leak? thank you! | |
[CODE]#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { char a_char; int cu = 1; while (cu != -1) { cin>>a_char; cout<<"Is a digit!" << a_char << endl; } system("PAUSE"); return EXIT_SUCCESS; }[/CODE] When I input a132, the output is: [B]Is a digit!a Is a digit!1 … | |
[code=syntax] #calculate the amout of tax due to the tax given income def calTax( income ): tax = 0 if income <25000: tax = income * 0.25 elif income > 25000 and income < 50000: tax = 25000 * 0.25 + (income - 25000) * 0.33 elif income > 50000: … | |
This is probably a really stupid thing to ask considering the development I'm doing (effectivly creating a virus scanner), but how do I link classes/cpp files? I have 3 applications/sections that I can compile/combine with a makefile, that's fine, but I need them to run 1, 2, 3 once the … | |
I'm new in the vb world(and these forums so please excuse me if i'm posting in the wrong area) and I've done some minor java stuff but I'm just not sure at all on arrays. I have to have the user input or select a flight number and my txtBoxes … | |
Hi, i need help please! i have a page were users can upload images, the name and path to where the image is stored is stored in the database. I want the aministartor to be able to view all of the images. when i try this it returns the path … | |
This sample code is from [URL="http://msdn.microsoft.com/en-us/library/aa287786%28VS.71%29.aspx"]MSDN[/URL]. [CODE]private string name; public string Name { get { return name; } set { name = value; } }[/CODE] I looked several examples, and they are the same. Why do we keep two different properties to store the name, namely "name" and "Name". I … | |
i have a combobox ,three textbox and one button.when user choose one item in combobox, textboxes and press button,i want to filter corresponding data and show on datagridview! Please help me! Thank u so much! | |
For example if I have this int type variable X that increment from 1 at the beginning to 10 when the program ends, how to open and write to 10 different files (data1.txt,data2.txt,data3.txt....) everytime X increments? I've tried with the following but it didn't work: [CODE]string filename ("data"); int X; … | |
The group button in my form is set to "unack". The Spring HwController receive the correct group "unack" when the "apply" button is clicked. However, the HwController receive the null group when the cursor is moved to the text box and press the <Enter> key. Only the data from the … | |
I need a good book to learn CAsyncSocket and Csocket. I want to explain in greater detail the functions and the author is an expert in the field. What do you recommend? thanks | |
When I am going to modify hashtable data it is giving me the exception.`"Collection was modified; enumeration operation may not execute"` Here is the code.. foreach (DictionaryEntry Item in hashtable) { switch(Item.key.ToString()) { case "Color": { hashtable["Color"]="ffffff"; break; } case "Width": { hashtable["Width"]="40"; break; } } } My qustion is … | |
Hello guys......Cindy here I am trying to get my program working and I am getting really frustrated. I am writing this program to familiarise myself with arrays, methods & loops so i can improve my Java skills. Im not lazy guys and have tried searching yahoo ,answers, forums and google … | |
Hello. Just asking any fellow nerds out there who program games with c++ or know about it..... about libraries. I know c++ and a few non standard libraries. What I want to know, is what non standard libraries or extras i could use with my compiler to make professional standard … | |
Hi, I am a php newbie. The site is a sports site, and contains information on about 10 teams. However each team has it's own admin section. I would like to have 1 general login page that lets a user access the database that relates to their team. I don't … | |
I'M reading the book "Beginning C# Game Programming by Ron Penton". The book is instucting me to create a small framework for a game, the problem is, the book was written for VS 2002 and I'M using VCs 2008 express. I'M instructed to add references to the project, two of … | |
Can someone help me with this please. [CODE]import java.util.Scanner; import java.text.NumberFormat; public class ChargeAccount { private int additional_charges; public int balance; private double min_payment; private int interest; private double new_balance; //initialise Charge Account public ChargeAccount(int previous_balance, int add_charges); { balance = previous_balance; additional_charges = add_charges; Scanner scan = new Scanner … | |
I'm trying to write a program and am having some major issues. I've written a decent program but people are complaining about some of the cosmetic issues. I have very little experience with code (maybe 10 days of frustrating Internet research). Here A few issues that i have that keep … | |
I have two comboboxes the first one is for order #, the second one is for the amount of order payments, there could be 1, 2, 3... payments for this order. I would like to get all payments to show in the second combobox that relate to the order # … | |
Hi Guys, I've noted that when using Netbeans, .jar file is created when you build your application. if i want executable jar file of my application, can i just take the same generated jar file, or should i create my own .jar via the command prompt. I mean whats the … | |
I am using Wampserver for my Windows Apache-PHP-MySQL stack. The file accessed has a header that defines it as utf-8, meta tag in HTML also defines it as utf-8. My best guess so far is that it has something to do with Apache. Searching through Google was of little help … | |
the code is: [CODE] slen=strlen(str); for(count=0;count<=slen;count++) { flag=0; if((int)str[count]!=32) { for(count2=count+1;count2<=slen;count2++) { if(str[count]==str[count2]) { flag=1; break; } } if(flag==0) { ar[ar_count]=str[count]; ar_count++; } } }[/CODE] at line 5 the != operator working fine but when i put [ICODE]if(((int)str[count]>=65 && (int)str[count]<=90) || ((int)str[count]>=97 && (int)str[count]<=122))[/ICODE] it's not working.. if you've some … | |
Hi all, I have a c# winform with a SQL Server 2005 backend. When I update my database from textboxes in the form, in one particular table all the nvarchar entries are padded with white space. This doesn't happen for other tables. All the fields that are being padded are … | |
I am new to this place and have a lot of questions to discuss with all here. Starting with a problem that i am currently stuck in..:) I have a small project for which i am using net beans and want to generate the graph as I am having values … | |
i had stuck with this question cz i'm newbie for java programming. i hope ur helping... The Vote class has the data field count to count votes, and the methods [I]getCount(), setCount(), clear(), increment(), and decrement()[/I] for reading and handling the votes, as shown in class diagram below. The [I]increment … | |
The methods is so complicated. I want to check the execution time of each statement so that I can modify that part in order to increase speed. Thanks in advance, Raymond | |
Hi there, I am having some issues with getting a variable from an onclick event with javascript. [CODE] $('#preview_logo').append('<img src="'+fileObj.filePath+'" height="100px" hspace="5" /> '+fileObj.name+' uploaded.<a href="javascript:;" id="dele_image" onclick="del_image('+fileObj.filePath+','+fileObj.name+');">Upload Different Image</a><br>');[/CODE] This is for uploadify script for previewing an image that is uploaded, it creates the link fine, but won't trigger … | |
Maybe you know the mmotps GunZ([URL="http://trinityent.org"]http://trinityent.org/home[/URL]). i have already written a few macros for it (so a program, which clicks and presses the keys for you ingame) with the program actool([URL="http://www.actool.net/"]http://www.actool.net/[/URL]). But i am tired of using this pascal-like programming language... [B]So is there a possibility to get a macro, … | |
''' Calculate the BMI of a person given their height and weight ''' def calcBMI( h, w ): BMI = w / h**2 return BMI def main(): height = float(raw_input("Enter height in metres: ")) weight = float(raw_input("Enter weight in kilos: ")) BMI = calcBMI(height, weight) print "BMI = %0.1f" % … | |
Hi. I've got 2 classes that provide services and 1 wsdl file for both of them, 1 SoapServer and 1 SoapClient. When I do $server->setClass("Class1"); $server->handle(); I can call functions from Class1 in the SoapClient. But if I do $server->setClass("Class1"); $server->setClass("Class2"); $server->handle(); then I am able only to call the … | |
how to use javascirpt for client side to transfter the values suppose when i enter 2 in textbox1 then in thextbox2 it should show 4 how is it possible because there is no keypress event is there in asp.net texbox control please help | |
Hi to all, We use normalization to control the redundancy.. What is the purpose of using Denormalization in sql ? Thank you, Prem | |
Hi All I have created a dataset and from this I want to retrieve values of a column into a variable. How can I do this? This is the code: [size=2][/size][size=2][color=#0000ff]Dim[/color][/size][size=2] sQuery [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]String[/color][/size][size=2] = "Select PERMISSION_BUTTON_ID from ALC_SECURITY_PERMISSION where ROLE_ID = 1" Response.Write(sQuery) [/size][size=2][color=#0000ff]Dim[/color][/size][size=2] myAdapter [/size][size=2][color=#0000ff]As[/color][/size][size=2] OleDbDataAdapter = [/size][size=2][color=#0000ff]New[/color][/size][size=2] … | |
Hi guys, Basically I'm making an auction website (kinda like eBay), and am trying to make my database 2NF compliant (and eventually 3NF compliant). Here is an outline of my tables/fields: [ATTACH]14300[/ATTACH] I know I need to split the tables up into additional tables so that data isn't repeated, but … | |
if we right like that: class myClass { int a; string b; char c; } what will be the size of this class? | |
hi, i want to programmatically click a link on a asp.net web site. first i ve navigated to that website and i ve got a code from some other website [CODE]For i As Integer = 0 To Me.WebBrowser1.Document.Links.Count - 1 If Me.WebBrowser1.Document.Links(i).InnerHtml.StartsWith("Learn HTML") Then Me.WebBrowser1.Document.Links(i).InvokeMember("Click") End If Next[/CODE] but i … | |
I have to work on a method called extract feature which has to check for the pattern i pass to the method in the matrix I pass This is an example pattern = {{0,100,0},{255,255,255},{0,100,0}}; Though I pass any different pattern it has to check for that pattern in the matrix … | |
Hello, i'm new to java and i need to read a file of strings into an array and then sort them but i can't figure out how to do either. i can do it with ints and doubles but i can't with strings. if anyone could help me i'd be … | |
i have to write a code that tells the user to enter the amount of minutes they were allowed to use, it has to be between 200 and 800 if it exceeds or goes below then it should print "please enter minutes between 200 and 800" the problem is: if … | |
hi all im stuck to my assignment 1. i want to know how to use function search in order i can search each character in a string then count the number of it. for example: given : home alone the output will be : the string has 9 characters including … | |
When I run it,it appear [COLOR="Red"]error 88:'')'' is expected[/COLOR] in A[L]:=sort;. I think it is no need to add '')''. What error 88 mean:?: [CODE]const max = 100; var A: array[1..max] of real; function Sort(L, R:integer):real; begin for L:= L to R-1 do begin if A[L]<A[L+1] then begin sort:=A[L+1]; A[L+1]:=A[L]; … | |
Hi, I am working on structures. One of the structure member is char array i.e string. When I assign another string to this then it throws the incompatible error. The code is the follwing. The problem line is commented. Code: [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct file_data{ char src_ip[18]; … | |
I'm trying to set up a couple classes, but I'm getting an error: Linker error - Undefined reference to 'Node::~Node()'. I think it might have something to do with how my headers are set up, but I'm unsure what I need to do to fix it. (FYI I added using … | |
Hello My english is not good, so pleas - understat me ;-) I have two question about python ;) 1. I'm from poland, in poland letter a == ą, z == ź itp. Can i remove polsich letter? example in input - jacek bąk in output - jacek bak I … | |
Hello All, Greetings of the day! I am new to PHP & working on a project. What my senior had asked to do is to , creat a drop down menu. I did the same. And just below of drop down menu there is a Text Box, where user can … | |
Hey Developers I have made an application that takes data from sql 2005 using a stored procedure and displays them on a datagridview. And then now i have written code to export the data to an excel file using Microsoft Interop and Excel Core Services. When i click on the … | |
Hai all, how to have default button in a content page. currently if i hit enter ket my master page search getting fire. i also place my master page in panel. for content for also i placed the button inside panel and set panel default button. but still my master … | |
Hello Experts pls i want get all the form data for id card along with the passport image when correct id corresponding to the database row is inputed. the code only retrieves other form data but can't get the image. --------------recovery.jsp--------- [CODE=jsp]<HTML> <HEAD> <TITLE>Database Lookup</TITLE> </HEAD> <BODY> <FORM ACTION="recover1.jsp" METHOD="POST"><fieldset><legend> … |
The End.