199,114 Archived Topics
Remove Filter ![]() | |
Hi I'm having a lot of trouble with this problem. Here is the assignment... Write the definition of the function template seqSearch to implement the sequential search on a vector object. [CODE] template<class elemType> int seqSearch(const vector<elemType> &list, const elemType& item); //If item is found in the list, return the … | |
Hello, I'm currently working on a simple SFML game using its 2D library. Here's the part of the code the problem is coming from: [code=C++] data.SetCenter(data.GetSize() / 2.0F); data.Resize(50,50); data.SetColor(sf::Color(255,255,255)); [/code] If I remove the call to SetCenter, the square shows up fine. But when I add the call to … | |
Am a student novices in vb.net. But task to vb.net for school project. I want a code to help me add a No fo Months(this is an integer) from date and the result display in a tet box as a date. I have 2 fields: Months and startdate, the third … | |
I just reconstructed my new code and am having trouble. When I try to compile it I keep getting an error message. At the end of the program something is wrong, but I can't figure it out. [code]#include <iostream> #include <cmath> #include <string> using namespace std; int main () { … | |
hey. I am trying to add a menuscreen to my game using the enumeration method. I get 4 errors: No overload for method 'UpdateMenu' takes '0' arguments (at L: 161 C: 25) No overload for method 'UpdatePlay' takes '0' arguments (at L: 166 C: 25) No overload for method 'DrawMenu' … | |
Hello friends, I try to rewrite links with htaccess, but the server does not change the links. I want, e.g.. the link [url]www.example.com/index.php?option=com_content&view=section&id=7&Itemid=54[/url] To be: [url]www.example.com/cat/7/Item_54[/url] (Or something similar). My .htaccess file is: [CODE] ## # @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $ # @package Joomla # @copyright Copyright … | |
Okay, so I have this program I'm working on, and I was wondering if it was possible to disable/enable TextBoxes when specific words are wrtten. I tried doing this, but it errored. I'm a new programmer to VB, I just started a month ago, and I'm doing this for fun. … | |
Hi all, I've got quite a simple question and after searching here and on other websites I can't seem to resolve what the "correct way" of doing this is in C++. Below is a simple piece of code illustrating what I am trying to do: [CODE] #include <iostream> class BaseClass … | |
Hi everyone, I'm complete newbie in spring framework especially in xml based on AOP. I really don't know about what is interceptorNames, MappedNames, pointcut and else for what did they use for. Please explain to me for what the xml code's work flow do below. I got it from my … | |
how can i call data from usb to my "main" at desktop. Example i want to call the variable 'x' at my file in usb, then use it in my desktop file.. | |
hello sir ... I want to know something about asp... how can i add .swf file into the asp page.. | |
How would I create a simple loop so that the person using this program (user) can keep inputting weights until they want to quit. Also, I need trying to create a limit that the user can only enter in a certain range of numbers in the input. I want the … | |
<S> --> <A><B> <A> ---> a | b <B> ---> 1 | 1 <B> It's suppose to start will a or b and 1 afterward. it doesn't matter how many 1's are after a or b. [CODE]/* <S> --> <A><B> <A> ---> a | b <B> ---> 1 | 1 … | |
Hello and HELP!!!! I'm in CSC250. I'm writing a prog that needs to do the following: 1- read files from the directory, avoiding sub-directories (along w/ _chdir) 2- read the contents of the file (as binary) 3- extract info from the files 4- modify the file name to reflect info … | |
I'm not sure how to title the question I have so I can't be certain this hasn't been answered before. That said, following is a description of my programming question. I have a class R containing 2 integer elements, say X and Y. I then have two 24 element arrays … | |
Hi, I'm just learning to program and I'm stuck on a basic problem, printing today's date in a form typified by (e.g.) 28 February 2011 Java Syntax (Toggle Plain Text) import java.util.*; class Date { int day, month, year; } class PrintToday { static Date thisDay() { Date today = … | |
Hi I'm trying to display wordpress posts in October 2010. My best attempt was SELECT * FROM 'wp_posts' WHERE 'post_date' < 31/10/2010; but it shows an empty result and I think the dates need to be in a range. Any suggestions? Thanks, Kevin | |
[quote]Write a program to prompt the user to input an amount in pence. Your program should then work out what coins are the least number needed for this amount of money. The possible coins are £2, £1, 50p, 20p, 10p, 5p, 2p, 1p. For example, the coins which are the … | |
Hello, I've made a program that uses an array of objects, it's work well so far, upto the point that I try to increase the size of an array. So, in main the relevant code loops like this: [CODE]int main(){ /* classes used */ phoneBook *p; .... numLines = 0; … | |
im trying to make a program with win32 GUI and im having trouble getting this to compile. Here are the errors im getting [QUOTE]D:\Documents and Settings\Skull\Desktop\Dorzon\main.cpp||In function 'BOOL DialogProc(HWND__*, UINT, WPARAM, LPARAM)': | D:\Documents and Settings\Skull\Desktop\Dorzon\main.cpp|57|error: 'ShellExecute' was not declared in this scope| ||=== Build finished: 1 errors, 0 warnings … | |
I keep getting an error message when running my code at the end. I think it has something to do with line 26, but I'm not sure how to correct it. the error is sh: PAUSE: command not found My code is attached. Thanks for help in advance. [CODE]#include<iostream> #include<cmath> … | |
Hi there, today I have written my first PHP script (and it even works, how cool!) and I have few questions. Here's the script [CODE]<?php $to = "myemail@myemail.com"; $subject = "Comments on page"; $message = $_POST["comments"]; mail($to,$subject,$message); echo "Thank you for sending your feedback. That will help me improve the … | |
I'm making a fairly easy to edit and change public dictionary and am working on the viewer hooked to an SQL server. The problem I'm having is, isn't really a problem but I'm looking for a better solution, due to it possibly devolving into a huge mess of sorting a … | |
What is the difference between these two types of assingment? (a) [CODE]string color("red"); [/CODE] (b) [CODE]string color="red";[/CODE] | |
Could someone familiar with command line compiling using GNU C/C++ Compiler Collection please help me with a Dll creation problem I have? What I would like to know is how to create a Windows Dll out of the following very simple test file that is essentially just a "Hello, World!" … | |
Hi I am working on a contact us form. I got the form working correctly, but when it validates it puts the error on a new page. How can I have the error message show on the form page? HTML Code: [code]<form action="contact.php" method="post" id="contactform"> <ol> <li> <label for="name">Full Name … ![]() | |
I'm making a project with OpenCV about tracking. But what I want is the ability to let the user import his own tracking algorithms. Is there some way that i can check in a specified folder if there are new algorithms added and how can I include them in my … | |
Hi, i am making a search engine in php and i just get a warning that i cant understand: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/eoopoedt/public_html/sok/search.php on line 27 See it your self: [url]http://eoop.org/sok/[/url] My code: [CODE]<?php $button = $_GET['submit']; $search = $_GET['search']; if … | |
Yes i realize this is the fibonacci sequence and i understand the math im just having trouble understanding the line in red what does it equate to in laymans terms? Thanks in advance :D [CODE] a,b=0,1 while b < 100: print b [COLOR="Red"]a,b=b,a+b[/COLOR][/CODE] | |
I want to set precision to 2 with the results. Does that mean that I have to put << setprecision (2) << after every weight on each planet or is there something easier I can do? [code]#include<iostream> #include<cmath> using namespace std; int CheckWeight(int weight, string Planet); int main() { int … | |
I am trying to make a program that will read in a text file and count the number of words that have a certain length from 1 to 20. So it should count the words that have a length of one, two, etc., and print it out. I have been … | |
How do you determine what the main hard drive is? This is what I have: [CODE]filename="savefile2.txt";[/CODE] and this is pseudocode for what I want: [CODE]filename="MainDrive:/JavaProject/savefile2.txt";[/CODE] My problem with it is, what if C: isn't the name of a person's hard drive? F:\ for instance. And also, if the folder name … | |
I have used DirectSound for years but I have started a new Direct3D 10 game and wanted to use something more supported and newer. Target VC++ 2010 build for Win7 platform, prefer an OOP model if one exists. Suggestions? | |
Hello , i'm trying to solve a problem Tower of Hanoi recursively. I'm having problems with coming up with logic how to treat disks in terms of value. Lets say i have 3 disks how should i assign values to them ? My function is supposed to be defined such … | |
[CODE] class Switch { public static void main(String args[ ]) { String season; int month =10; switch(month) { case 12: case 1: case 2: season = "Winter"; break; case 3: case 4: case 5: season = "Spring"; break; case 6: case 7: case 8: season = "Summer"; break; case 9: … | |
hi!!! i have got a small problem wid an sql query that i m writting in jsp the query is real simple... but i dont know y m not gettin it... [CODE] q="select '" +col+ "' from '" +ta+ "'"; Class.forName(sq.getName()); cn=DriverManager.getConnection(sq.getConnstr(),sq.getUser(),sq.getPwd()); st=cn.prepareStatement(q); out.println("before query1"); rst=st.executeQuery(); [/CODE] [CODE] q="select ? … | |
i am a newbie in programming and undergoing Software Engineering Course in current semester. I am making a a simple word processor project more like a Rich text document editor. [B]what can be the basic features to add to in it?[/B] [U]Since time is short to complete it, which features … | |
![]() | This is my computer science project,we were told to make any software we wish to make,so I thought about making a calculator,below is the code,but it doesn't seem to be functioning well,could anyone help and tell me what went wrong(I am using borland cpp 4.5 compiler,this program uses getch() to … ![]() |
This program is supposed to take the array of command line arguments and sort them alphabetically. Problem is I'm getting an ArrayOutOfBoundsException somewhere. I also have a problem with the while loop. The way I've decided to alphabetize the array with looks a little bit shoddy. My plan was to … | |
my switch statement is not working properly. it works fine till case 'C', after that nothing is happening. Any ideas? [CODE]void processData(List<Movies>& myList, Stack<Movies>& myStack, Queue<Movies>& myQ){ Movies movieObj; int numInStack = 0, numInQ = 0, num2process = 0; fstream inFile("newReturns.txt"); if(!inFile){ cout << "Unable to open Returns.txt." << endl; … | |
I have a small problem when I edit cells in my datagrid. If I leave my cursor in the cell I just edited. and runds the updatecommand the cell does not update the edited value. But if I leave the cell before I run the updatecmmand it does. Anyone who … | |
ok im making my first app in VB and i saved it and i run the exe file all workes great but when i close the program the exe stays running i can see it in task even after i close the program can some one help? | |
Currently I'm interested in various search algorithms and how they operate in real life situations, as a part of my MSc. assignments. I have heard that there are toolboxes/toolkits which let the user to create an example of a real life problem and see how different algorithms work on it. … | |
I don't really know how to make the code for the following question. I need a program that counts. The program will ask the user what he/she wants to count by and It will then count from 0 to 20 using what ever increment that user has chosen I want … | |
Hello, I made a 2D game using XNA 3.1 in visual studio 2008 professional. In the game you can control a cannon and shoot cannonballs at ufo's. It worked when I had a Rectangle collision but when I followed a tutorial for per-pixel collision, and I got errors I have … | |
![]() | Hi, I'm currently trying to do something which I thought would be relatively straightforward, but it appears not. Basically, I have a set of data that needs to be done logarithmically in a histogram, but appears the 'log=True' command in the pylab.hist() only refers to the y axis, rather than … ![]() |
Hi, I'm new here and also new in programming. I have a home assigment to make a c++ program which calculates the difference between two dates in days. (present - dateOfBirth). I don't think I'm allowed to use functions already implemented in c++, but my own. I've found many examples … | |
hi all!! here's the deal: i have this code [CODE] Sub SaveToTextFile() Handles Button1.Click Dim name1 As String = TextBox3.Text Dim st1 As String = TextBox1.Text Dim st2 As String = TextBox2.Text Dim br1 As String = "{" Dim br2 As String = "}" Dim desck As String = br1 … | |
Hi all :) I basically want to use the .append() data to append the data that I got to the selected div. this is variable that i've declared [CODE] var li_template = '<div style="display:none" class="load_reply"><div class="reply_img"><img src="status/blankSilhouette.png" /></div><div class="reply_text"><a href="#" class="blue">Test Name</a><p class="tex">%s</p><div class="date">%r · <a href="#" class="light_blue">Like</a> · <a … |
The End.