199,113 Archived Topics
Remove Filter ![]() | |
[QUOTE]This program was suppose to make a bingo chess game.. but i am totally clueless.. so far the notes i got was jumbled so i have no clue at all.. anyone mind helping me out? This is a sample image that it suppose to look like a bit: [URL="http://img86.imageshack.us/img86/2594/55923788ip0.jpg"]http://img86.imageshack.us/img86/2594/55923788ip0.jpg[/URL] What … | |
[CODE]int k = 0; int g() { k = k + 1; return k; } int D[] = {13, 19, 47, 3, 7}; ….. D[ g() ] = D[ g() ]++ — D[ g() ]++;[/CODE] According to a book from which this problem comes this code will generate 5 to … | |
Hello I'm trying to make a simple function to Rot13 strings and it's not working.I ran it through my debugger and it works until it get to the top of the loop again???Then some of the chars are rot13ed and some stay the same. [code=c++] void Rot13(std::string &buffer) { int … | |
I am using a program called FunEditor, I doubt many people know about it, but if you do help is requested. Before I go into my problem I will explain ProjectFUN a little bit first. Basically it is a C++ 2D game making program that is slightly simplified and does … ![]() | |
![]() | I've searched every where for any code examples for a manual sorting routine, but the only ones I can find are in C#. I've been able to convert it into its VB counterpart, however I'm having trouble with the data casting. The original C# code came from this address [URL="http://forums.asp.net/t/956540.aspx"]http://forums.asp.net/t/956540.aspx[/URL] … |
Can anyone tell me why this is happening? All the code and input files are below. Stack.h [code] #include <iostream> #include <vector> using namespace std; const char FILE_NAME[] = "palindrome.txt"; typedef char StackElement; class Stack { private: vector<StackElement> myVec; public: bool Empty() { return (myVec.size() == 0); } void Push(StackElement … | |
Hi all, I was wondering if anyone could help with this one. I've devloped an upload form where my customers can upload their own pictures to use in my personalised gifts business, you could call it 'Create Your Own' Range of products. I want to be able to store the … | |
Hi all, so I'm stuck on a certain part of a program for my C class. Okay the program is supposed to query a user for a set number of entries for temperatures which is 26. It is supposed to take those temperatures and calculate the avg. at the end. … | |
which accepts an integer of arbitary length as an input and takes maximum polynomial time to execute , let us define a language L= {n | P does not crash for any input of size n} How is easy or difficult to prove that L belongs to NP ? | |
Hello, I have an array with 10 random numbers ranging from 1 to 10. I'm trying to write a function that would create a new array which would contain the number of times a number apperead in the first array and return a pointer to it. For example: if the … | |
Looking for the best way to search a string for project that must test for bad input. Must be able to detect wrong characters, letters, etc. | |
I assigned String ^ Box1 like this. [code] String^ Box1; Box1 = comboBox1->SelectedItem->ToString(); [/code] What I am trying to do now and wonder is if it is possible is to put [COLOR="Green"]"comboBox1->SelectedItem->ToString()"[/COLOR] to a vector. For the std:: it would look like this: [code]std::vector<string> StdVector; StdVector[0] = "comboBox1->SelectedItem->ToString()"; [/code] My … | |
i want to make a c++ program to run or compile a c++ source file stand alone from hard disk thanks in advance | |
I am currently taking C++, and I just want to know why it says,"Illegal Else without if," and I would like to know how to fix it so I will not encounter this problem again. I would like to know where to put the brackets, "{ " Here is the … | |
Hi, I should printout the value(s) of the "sum" of the end of the code... But i don't know...:( I am not good at C++. Please help! The code is not so difficult: it generates random 3 dimensional vectors, e.g. number of 5. Then makes a matrix of 3x3 from … | |
Hi i want to convert only the first letter of a firstname n his lastname seperating by a space. Note every time he/she input firstname the first letter should be Uppercase and when she/he press the space bar the last name only the first letter should be Uppercase. Help Me … | |
Hi, I'm looking for help with this. I'm tring to get an image back from my SQL Server Express database. The code below is where I'm calling the stored procedure from. If I leave out the IF STATEMENT and WHILE LOOP I'm getting an error saying it's trying to read … | |
Hey guys wondering, if you are using Adobe CS3 and do you think, if there are other alternatives to CS3. Would you recommend CS3 or wait for something else. | |
Hi guys :) I've just learn programming in turbo pascal, and my teacher made an assignment to make pyramid of numbers as this: [code] 1 1 2 1 2 3 3 2 1 2 1 1 [/code] so far i've only come up as this: [code] uses crt; var i,j,k … | |
What would need to be done in order to make an application go full screen? this means NO task bar, or Title bar. I did find a small bit of code (a while back), but it didn't work. Any ideas/solutions would be great! :) Thanks! | |
Could someone help me out I need to change a String such as "asu" I'm thinking of using the ascii but I'm not sure how i could do that | |
Hello EveryOne I need Help here ,i have been trying to view this GUI but it keeps showing me this erroe `NoClassDefFounderError`. Anyones help would be appreciated. import java.awt.*; import java.awt.event.*; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import javax.swing.*; public class HeartLandHomeFinance2 extends JFrame { JPanel Panel; JLabel … | |
I've been working on a program which reads in a sequence of numbers entered by the user. It's read in as a string and then converted to numbers. Then I am suppose to get the sum of those numbers and report it back. I got most done and I know … | |
Hello Could anyone help us , we have a minesweeper's game code in java the game is good but has two problem the first one is when you press a mine button the game should be over and you can not press on any other button but our code allow … | |
Good day all! I have been working on a project that requires me to to the following: Select a user from a list, on submit go to next page. The next page contains the session variable $id of the selected user. On this page, I am assigning menu permissions. I … | |
hello sir i'm a new user,i just want to ask if you have sample programs which deals on linked list....if possible not the add.edit,delete program | |
Can someone through this forum help me out to design Financial Accounts System including Ledger posting, or provide me a copy of the database design or allow me to download such a database design I will realy appreciate the cooperation. Thanks my e-mail is [EMAIL="amjad_munir@hotmail.com"]amjad_munir@hotmail.com[/EMAIL] if some one wish to … | |
im having trouble programming , but its suppose to look something like this,, can anyone help out? im a beginner in c++ so i don't know much... tthis are my notes and im not sure how to do it image that it suppos to look like: [url]http://img86.imageshack.us/img86/2594/55923788ip0.jpg[/url] what it would … | |
Hello, I have dynamically allocated memory that I would like to share across threads. More specifically, I have an ACE thread pool, which I use to process requests on dynamically allocated ACE_Method_Request objects. These objects are created once at startup, and then processed throughout the system's running state (i.e. the … | |
I need to build a simple integer caluclator that perform arthmetic functions of addition, subtraction, multiplication, modulus and disvision. The calculator contains an Accumulator that stores the current result. The Accumulator is also involved with each operation. Make sure that you define a class for this program. Once started, the … | |
I want to change the color of the whole row("which is containing different data types in different cells") depending upon the value of one column. Have any idea????? Please help!!!!!!!!!!!!!!!!!!!!!!!1 | |
Here's a problem we're supposed to do for my class: Input five numbers from the user and print the highest, the lowest positive number, the highest (closest to zero) negative number and the lowest number. If the user enters all positives or all negatives, print "none" for the missing output. … | |
i have a login page with a login button and reset button.now when the user enter its id and password and then press enter both the user id and password textbox becomes blank.i checked the tabbed index of the two button thinking it may be due to the reset button … | |
Hi friends, I am using Netbeans 6.0.1 and I've installed MySql on Fedora 8...I 've been able to configure the jdbc-MySql connector that's bundled with Netbeans and I can create tables and query MySql using the Netbeans GUI.So I guess my connection was correct...My connection properties are as follows: Database … | |
Getting this error don't understand really what i need to do to trouble shoot... hw.c: In function ‘PrintMatrix’: hw.c:14: error: subscripted value is neither array nor pointer hw.c: In function ‘main’: hw.c:27: warning: passing argument 1 of ‘PrintMatrix’ makes integer from pointer without a cast [ICODE] #include <stdio.h> #include <pthread.h> … | |
<?php function extract_url($main_url){ $cek_url = parse_url($main_url); $prefix_url = $cek_url['scheme'].'://'.$cek_url['host']; $f = fopen($main_url,"r"); $inputStream = fread($f,65535); fclose($f); if (preg_match_all("/<img.*? src=\"(.*?)\".*?>/i",$inputStream,$matches)) { foreach($matches[1] as $link){ if(!eregi('mailto:|javascript:|ymsgr:',$link)){ if(eregi("http://",$link)){ $url = $link; } else{ $url = $prefix_url.'/'.$link; } if(eregi('PHPSESSID',$url)){ $url = explode("PHPSESSID",$url); $url = substr($url[0],0,-1); } $output[] = $url; } } } return $output; … | |
I have a string that looks for example like this: "aabbccddeeffgg" I want to retreive the "ee" or the "cc" value from that string. How can I do that ? The tokenizer is not what I am looking for. I'm looking for the function that allows you to specify that … | |
Hi All, I'm a complete novice when it comes to ASP, so please bear with me. I have a GridView bound to an Access Table that has no sorting on it (which is as it should be) and a Combo Box bound to the same table that is sorted on … | |
Hi folks, I believe this is a simple task, but I'm having problems getting things to work the way I would expect them to. What I have is a master file containing about 1000 lines. Each line looks like this: 2008_06_01 07:55 24.8 83.1 What I need to do is … | |
i've been developing a game for quite some time now...it will be finished soon...my only concern now is how to make my game more interesting to the gamer's eyes...so i included a video to be able to give a brief background of how the story unfolds...but the problem is that … | |
Hello Every time i input the character [B]'[/B] and [B]%[/B] in the textfield it generate an error in my query. [B]The error:[/B] Syntax error in query expression 'Title LIKE '%' %%';'. [B]My code:[/B] [CODE=asp]adoList.Open "SELECT * FROM qryOPAC WHERE Title LIKE '%" & varExp & "%';",CoNN,3,3[/CODE] tnx in advance.. | |
Hey can any one help me i'm doing a hangman program and want to display blanks where a to z is. how can i do this? I've got it replacing "a" but can't get it to replace the rest i.e. b to z any help would be appriaciated. [code] show … | |
I dont clean the unnecessary namespaces that .net automatically generates. Is there any problem with that? | |
how do i disable the BACK button of IE.can it be done using session.if so can anyone please explain me how it works and give me a bit of information about this session thing as i have no idea about it and when i searched the web it left me … | |
Hi Everyone, I am new user for this community and as a trend when we are in trouble then we remember friends. Don't mind . My Question: My application creates trace.txt file which contain debugging information when app. is running but in real production there may be a problem because … | |
I have a page that inserts information to multiple tables. This part is working fine. What I want to add is when a user adds a new company not only is it inserting to the db but it is also posting the results on a separate page. For instance it … | |
hi i am `asp.net` beginner, i doing login validation using `asp.net` in c#. here i was create the db in sql server 2005 ,fetch the data from db and compare the text box value. if condition error will be show. it is using visual studio 2005. given below my code … | |
Hi I was create a form in Qt Designer and saved as UR.ui (main title of this forms is "MainWindow") next write in terminal: pyqt4 UR.ui > UR.py and open created file UR.py and write: import sys from PyQt4 import QtCore, QtGui from UR import Ui_MainWindow class StartQT4(QtGui.QMainWindow): def __init__(self, … | |
hi everybody..... i'm using an array to make a program but i'm not able to find the size (length) of the array.can anyone tell me how to do this? | |
hello, i am uploading an excel file from my web application and is working fine from the local machine but gives an error "unspecified error" when i try to upload from another machine. i have used oledb connection with Microsoft.Jet.OLEDB.4.0. i have kept 'impersonation = true' in my web.config file … |
The End.