64,152 Solved Topics
Remove Filter ![]() | |
hi i am at uni an i have a project in which i have to create a backgammon game can anyone give me a helping start on how i would go about creating the board states? thanks | |
Hi , I am working for one in-house web application project with C#, ASP.NET and SQL Server 2005. But here we are facing a issue for initial loading time of that application, it takes around 20 seconds to load it first time but after that it works fine,but again after … | |
I have been working on a project using Visual Studio.Net 2005 and Windows Mobile 6.1 After several builds and installers it has started throwing up an error during the build stage. Any help would be appreciated. Thanks The error contained in the output list: ------ Build started: Project: Stock - … | |
does anyone know how to test a recursive bianry search to check if it works | |
Hi everyone! Could anyone help me please? As u can see by my username, I'm a newbie in PHP. Now to the question: I have made a site that extracts data (in my case movies) that logs in a user and shows all data that the user has entered as … | |
I have a JTabbedPane inside a JFrame. I've been having a lot of problems with resizing and things like that. . how do I get the JTabbledPane to resize with the JFrame? So when the user drags the window open to a larger size, the JTabbedPane should be dragged to … | |
hello I been working on a swap program and this is about my third one trying to get it working now I'm having a problem i keep getting 0's added into it right now the output is 4, 0 , 5, 0 ,16. Could anyone tell me where the 0's … | |
Hi, I want to learn assembly and have looked at tutorials I found on google. It's really freaking complicated, so do any of you know of any good tutorials on assembly? I'm on Windows XP 32 bit with an Intel CPU. | |
Hello all! I have a task to code a program that would find the last non-zero digit of the factorial of a given number n where 1<n<10000 so far i got this: [CODE=c++]#include <iostream> #include <string> #include <sstream> using namespace std; int main() { int a, xxx; unsigned long long … | |
I have being trying to make a javascript code that will show different submenus depending on what was selected on the previous menu. Although my script has no bugs according to Internet Explorer it seems to not work in IE nor Crome. Can anybody see what's wrong with this code … | |
hi i have been lumbered with trying to find out the problem with our coldfusion website. the site was developed using a 3rd party developer, and he has not been able to identify the issue we are currently experiencing. my experience on Coldfusion is very limited. the problem with our … | |
Hello, I'm having trouble writing to a file. I can open notepad ok, but I cannot write a string to it. What am missing here? TIA. [code=vb] Imports System.IO Module Module1 Sub Main() Dim start_info As New ProcessStartInfo("notepad.exe") start_info.UseShellExecute = False start_info.ErrorDialog = False start_info.RedirectStandardInput = True start_info.RedirectStandardOutput = True … | |
Hi I want to map a network drive on Windows platform and i am running my script on Unix machine; What are the possibilities by which i can map network drive in perl Please reply thanks in Advance, aNa | |
Hi, I am trying to use recursion and count to find the number of times the number 5 appears in an array. I have the following code: [CODE]public static int countfive(double[] array1, int beginarray, int endarray,int count) { int next; if(beginarray==endarray) { if(array1[startIndex]==5) return 1; else return 0; } else … | |
What's the easiest way to open a directory in windows explorer? | |
![]() | Sorry guys, I'm a rookie at the whole Python thing so please forgive me if the following questions are easily answered. I'm working on my final project for class and I'm just stuck. I have no clue what's going on with this program. It isn't running properly in IDLE at … ![]() |
Well, i thought everything was perfect since my last post. But i have the strangest error. Maybe its because i don't completely understand references... So anyway here is my string class: [code] class StRiNg { public: StRiNg(); StRiNg(const char* const); StRiNg(const StRiNg&); ~StRiNg(); StRiNg& operator=(const StRiNg&); char &operator[](int); char operator[](int) … | |
HI, I have a little problem passing the value of the drop down list from the first form to the second. I am able to display the data in the list box, then used $_POST to get the passing data in the the second form. However when I echo the … | |
Hi everyone I am having a lot of trouble trying to get the toUpperCase method working. I have basically put a String of text into a character array and I want to convert a certain character in a certain place in the String to uppercase. Here is what I have: … | |
Hello all, I'm currently trying to setup a SQL View that's going to be used to pull info from a table and output it onto a label... Long story short the only piece I need help with is having the SQL view remove leading zeros from one column called "Reference". … | |
Hey guys I was wondering if you could provide some help, It is pretty complex for a person who is just starting loops. I have included the problem as well as the code I have below. Please help me, I know their is something wrong with my [B]for[/B] loop as … | |
Hi I am having a problem in the sixth edition on starting out with C++ programming. I need the full code of how to do it cause I am getting errors and dont know what I am doing. The question ask.Write a funtion named coinToss that simulates the tossing of … | |
/** * This method will ask the user for some information, create a blank picture to use as a palette and create and display the palette. */ 186 public static void main(String[] args) { 187 int redValue; 188 Scanner sc = new Scanner(System.in); 189 System.out.print("Enter a Red value: "); 190 … | |
attached is a screenshot of what my table already has for the URL micorosft.com. The column headings are the same as column names. Now, if I do the following statement: [CODE=MYSQL]select * from assign2 where UPPER(keyword1) LIKE '%MICROSOFT%';[/CODE] OR [CODE=MYSQL] select * from assign2 where keyword1 LIKE '%microsoft%'; [/CODE] I … | |
Hi, I am attempting to write a query to return whether or not a particular items value entered is the lowest value and also unique. For example, if an item as 6 values against it e.g. user_id item_id value 1 101 3 2 101 3 2 101 4 3 101 … | |
Can you compare strings with if, or do you have to use something else? Can you compare strings at all? Im attempting to write a console program just for fun. Eventually I want it to be able to move around files and such but im not even close to that … | |
Hello everyone, i have not posted here in a while. But i have a question about a string class I'm creating. Every time i make a string class this always happens, and i cannot figure out why. Maybe its something i didn't include or something i have to add. But … | |
Hi, I'm new in this forum :D I've started learning C# @ school 1 year ago , and i love it,and it's going very well, now We had 2 lessons of Windows applications in C#, and to be honest i find it much harder than console application. now we have … | |
Hi, If i need to use many same components in a window form (let say 20 picture boxes or 20 text boxes), which of the method below is more efficient?? 1. Drag and drop the component 20 times. Configure their properties one by one. 2. Declare array of that component … | |
Hello everyone, i'm an IT student (first year) and i've received a task to make a website for my school (fictional ofcourse). Now i have an idea on how to make it,but after asking my teacher, he said i cant use iFrames but have to use AJAX instead. The code … | |
I need a nonblocking socket so in an older version of the program i made a new thread to do this. and now that ive migrated into visual c++ it crashes with no explination... yea im really aggravated... can anyone tell me why this crashes? [code] #include <iostream> #include <winsock.h> … | |
While Not EOF(hfile) Line Input #hfile, buffer [COLOR="Red"] Data() = Split(buffer, ",") [/COLOR] i = i + 1 With fghStudentInfo .TextMatrix(i, 1) = Data(0) End With Wend i'm new to VB. can someone help me to understand the command? i want to load the data from .csv to my vb … | |
Hello guys. I am doing a swing application wherein I m using a DefaultTableModel. Here's my code: [CODE] DefaultTableModel tab = new DefaultTableModel(){ @Override public boolean isCellEditable(int r, int c){ //if(c == 10) {return true;} return false; } }; private JTable jt = new JTable(tab); [/CODE] The JTable will diplay … | |
I am having problems getting my procedure to read characters recursively to terminate. Can somebody help me here, I am not suppose to use arrays or lists. I have the following procedure: [code=language] void recursive() { char c; cin>>c; cout<<c; recursive(); return; } [/code] I also need to print the … | |
I am trying to learn GridBagLayout. I've gotten the hang of it in many respects, but I am having serious problems when the first row has element(s) with a gridwidth greater than 1 or the first column has elements(s) with a gridheight greater than 1. I'm trying to make a … | |
I am new to programming and am having trouble with a school assignment. I need to make a class planner that prints out information after the user enters it and then askes for specific class numbers. The user enters the following information (in this order): 1. Name of Class 2. … | |
I am trying to create the meta tag: [CODE=HTML]<META HTTP-EQUIV="Pragma" CONTENT="no cache">[/CODE] I tried the following line: [CODE=PERL]print $cgi->start_html(-title => 'Meta Test', -meta=> { 'HTTP-EQUIV'=>'Pragma', 'CONTENT'=>'no cache'}), "\n"; [/CODE]But I get this: [CODE=HTML]<meta name="HTTP-EQUIV" content="Pragma" /> <meta name="CONTENT" content="no cache" /> [/CODE] Can someone tell me how to create the … | |
Hi I am trying to write a function [I]password_input(prompt, password)[/I] that will repeatedly ask for a password using the given prompt until the given password is entered. I have testing code, but I am completely lost upon how to do it and where to begin. This is the testing code: … | |
Hi everyone! As u can see by my username, I'm a newbie in PHP. Now to the question: I have made a site that extracts data (in my case movies) that logs in a user and shows all data that the user has entered as a table. I've written some … | |
Hello I am currently making a program for a database which includes an SSN. The user can input the ssn but I want it in xxx-xx-xxxx and to make sure the user ddoes this have the user input 3 numbers then 2 numbers then 4 numbers in seperate cin statements: … | |
The function should remove all the occurrences of an integer (say, removeItem) from an array. If the value does not exist or the array is empty, ,output an appropriate message. My program is able to print the array without all the occurences of removeItem , but I don't know how … | |
Hey guys, I think I have this mostly figured out but i'm still getting some errors, I'm not sure if it's a syntax thing or if I called out a variable wrong. For some reason eclipse is saying that my variable [B]average[/B] "may not have locally been declared" which doesn't … | |
hi there! basicly i want to make a program that will detect when windows email recives a new message. so... thats basicly it. thanks | |
I am trying to do this [code] #!/bin/bash for i in 1 2 3 4 5; do File1="$i.txt" File2="$i.obj" ./Test $File1 $File2 #save i and the result of the program somehow done; [/code] For example, at the end I would like to have a file like this [code] 1 3.4 … | |
Good morning! What I am trying to do is: display some text, wait 3 seconds (so the person can read it) and redirect that person to a different web page. I can get it to either: 1 - Display the text or 2 - Sleep(3) and redirect them to the … | |
As a java beginnners what i incline to do for my program almost get solution from this site. Right now i need a small help to get file name or full path for output files of my program. so far my program is running as a search engine to find … | |
Hello everyone, Can someone please explain to me the meaning of the code below: [code] public class Client extends javax.swing.JFrame implements Runnable { // constructutor public Client( String host, int port ) { . . . new Thread( this ).start(); } public void run() { something.... } } [/code] This … | |
Everybody hi. I need to swap elements of my std::vector container. For example, i have vector with values from 1 to 5; and i need to swap 2 with 3 (only nearby elements), that in result i'll have 1,3,2,4,5. In real world i don't have std::vector filled with numbers - … | |
Hi guys, I was wondering if someone could help me?! I am doing a uni project where we have to access and query a MA database. At the moment I have the database accessed and query is working but I'm having some problems displaying the records - I can scroll … | |
Hi, I need to populate a drop down box with size and colour values from my db. I have got it working but it just seems to be too clunky. I'm going to be marked on it and so would like to know where I'm going wrong. What I do … |
The End.