64,152 Solved Topics
Remove Filter ![]() | |
The code below is for my assignment it works i just want to make sure i did this correct any advice is wanted. Also one thing that is bugging me see basepay well if the base pay is 133.20 it chops off the 0 and only displays 133.2 why iv … | |
I'm trying to create a maze with a mouse inside moving up down left right in 200 moves. I've got everything working besides the fact that it duplicates the heart on the other side(If it exits on the left, it'll be duplicated at the right end) when the heart shape(mouse) … | |
Hi I ahve this code which is working on Chrome, Firefox and Safari But Its not working on IE Can any one help me <html> <script type="text/javascript" language="javascript"> function set_padd(){ var tt = document.getElementById("span_padding").innerHTML; var txt = new Array(); txt = tt.split("<br>"); var atxt = ''; for(var i = 1; … | |
I'm re-designing a database that will facilitate registration at various events. One column in the event_person table describes the current status of the registrant. The forces that apply here are: - Various events may have different sets of status values - We may ship this as a framework to various … | |
Hi, Fairly new to MYSQL, still learning. I have create basic web databases before but the project i am working on just now is slightly more complex than before and need some advice. i have had some help qith queries which has been great however i need some advice from … | |
hi everyone :) I hate to do this but I gotta.. This is what I want to do but dont have the foggiest about how to accomplish it! I have 4 forms..frmWeekOne, frmWeekTwo, frmWeekThree, frmWeekFour. These 4 forms are all added forms to my original project. what I need to … | |
Hello, I wrote a 2D game with some simple Collision Detection. I used the function IntersectRect() but I think it's slow. This is the code right now: int Collision(CHARACTER* object1, CHARACTER* object2) { D3DXVECTOR3 pos1 = object1->GetPosition(); D3DXVECTOR3 pos2 = object2->GetPosition(); RECT a, b, *des; a.left = pos1.x; a.right = … | |
I have this program where I'm trying to find the file size with the boost library. I find the files fine, but it won't get the file's size, where am I wrong? Thanx for your help... Here's my code so far. It compiles fine, but won't return the file size. … | |
I am working at a project that is supposed to run a python script. Here is my main class: [CODE] #include <iostream> #include "scripting.hpp" int main(void) { cScripter oScripter; std::vector <double> vectMy (7, 32); oScripter.doRunScript (&vectMy, "test.py", "function"); return 0; } [/CODE] And here are respectively scripter.hpp and scripter.cpp : … | |
From within a template I'm trying to set a variable using a select= which references an absolute path. But when the "root" element specifies an xmlns= namespace, the select fails (returns an empty string). Here's the XSLT: [code=xml] <?xml version="1.0" ?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://foo.bar.com/something" > <xsl:output method="xml" indent="yes" encoding="windows-1252" … | |
I am having problems with sending my array N_List [CODE]int** N_List = create_2d_int_array(len_N_List, 100, "voro:N_List"); double** atoms = create_2d_double_array((int) (8*box_x*box_y*box_z/(lattice*lattice*lattice)), 3, "voro:atoms"); for(i=0;i<len_N_List; i++) for(j=0;j<100;j++) N_List[i][j] = 0; [/CODE] The code runs fine with N_list send and recv omitted but with it, it causes a segmentation fault Send [CODE] if(rank … | |
I am trying to update employee information in my web form but when I press Update Link, nothing happends.. [CODE]<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ViewEmployees.aspx.vb" Inherits="ViewEmployees" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <p class="style1" style="text-align: left"> <table class="style1"> <tr> <td> Enter Employee Name <asp:TextBox ID="txtName" … | |
hallo can someone please help me my Access Database ConnectionString does not work on the server [code] string strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|calculator.mdb"; [/code] | |
I want to make an object move to a new height from the user request. My code below does not do that. Where am I going wrong. thanks in advance. /* instance variables */ private Aobject object; public void moveObject () { int number; { number = Integer.parseInt(Dialog.request("Enter new height?")); … | |
Hi, Recently (today) got an assignment to take a particular code that we've done previously, and split it into 3 files: 2 .cpp files and a header file. Now, i believe i've done it correctly, but the only thing that's throwing up errors is the use of friend for overloading … | |
I've a problem when trying to convert my sql-query to a SqlCommand. The query: [CODE] SELECT L1.[App_Name], DATEDIFF(ss,MAX(L1.MESG_DATESTAMP),GETDATE()) as Seconds FROM sbyn_csf.CSF_CME_LOG AS L1 JOIN sbyn_csf.CSF_LOGGER_LOG AS L2 ON L2.MESG_ID = L1.MESG_ID WHERE logger_code = 101 AND [App_name] in ('002','010','022','025','036','037','040') GROUP BY l1.[APP_NAME], L2.LOGGER_CODE ORDER BY 1, 2 [/CODE] The … | |
hi i want to display the selected values from a "select" object into a new window with jsp but no matter what i do, it always writes "null" can you help me? this is mi code [CODE] <form id="form1" name="form1" method="post" onsubmit="revisar()" action="echo.jsp"> <table width="699" border="0" cellspacing="10" cellpadding="4"> <tr> <th … | |
![]() | This is quite literally driving me insane. I'm new to C++ so bear with me on this one. Basically, I've got two files. One header file (Package.h) and the C++ file (Package.cpp) I've got a class called [B]Package[/B] and function prototype in the header file as follows [CODE] private: string … |
hi all, i am having a login page which includes username, password,submit,clear. ater cuming to this page i am geting focus on textbox but wen i press clear button it is not focusing again on the username text box. so please help me. Thank u. ![]() | |
Hi all, I have a file called Client.cpp, which has main() contained in it. my problem is at the start of the file: [CODE]#include <iostream> using namespace std; #include "Student.h" enum User { NO_USER = 0, STUDENT = 1, ADMIN = 2}; [/CODE] I get errors on the line with … | |
Hi all, I have created a Windows Forms application in Visual Studio.Net 2008. I have some group boxes on the form in order to section various controls on the page. At the bottom of my form is a group box containing a texbox used for display exception messages. I would … | |
![]() | Hey guys, After fixing one of my earlier problems I ran into another one. Basically I'm trying to make an inherited class and add one more parameter to its constructor, but I can't seem to do it properly Here is the masterclass definition [B]Package[/B] [CODE]#ifndef PACKAGE_H #define PACKAGE_H #include <string> … ![]() |
![]() | |
Hi I'm having trouble to access a Parent's property in User Control. I don't know how to access the parent. I saw the example below and tried it: [CODE]CType(Me.Page, Search).Prop = VALUE[/CODE] and the Parent page is called Search.aspx [CODE]Partial Class Search[/CODE] But then I get en error Type 'Search' … | |
[CODE]function projection($x1, $x2, $x3){ //$x1 = first year //$x2 = second year //$x3 = last year if (($x1 != "") ||($x1 != 0) && ($x2 != "") ||($x2 != 0) && ($x3 != "") ||($x3 != 0)){ //MODIFIED EXPONENTIAL $b = ($x3-$x2)/($x2 - $x1); $a = ($x3 - $x2) / … | |
Please help me! What is the time complexity of modified exponential projection? The equation is: population = C + AB^time this is used to project the population for the next years Thank you! | |
what is the time complexity of a decision tree algorithm? using if then else statement thank u! | |
[CODE]$k2 = $subject_k2/40; $j2 = $subject_k2%40; if($j2 >= 15){ $k2 = $k2 + 1; }[/CODE] what is the time complexity of the above code? thank u! | |
I am getting unpredictable behaviour from malloc(). Here is the code fragment: [code=c] float **t; t=(float **)malloc(sizeof(float *)*A); perror("\nError status 1:"); for(i=0;i<600;i++) { t[i]=malloc(sizeof(float)*B); } perror("\nError Status 2:"); [/code] The objective here is to have a dynamic 2D float type array. For testing purposes though, I have hard coded the … | |
Hi! I just upgraded to win 7 64 bit. I have tryed it both on cygwin compiler and MinGW compiler (toolchain) Working on eclipse. My code works perfect in Linux/ubuntu environment but running in win 7 environment I have the following problem. My last cin does not work. The input … | |
sorry i figure it out again. really really easy: i really need to know. i got this one script that is alphabetally and minimal. which i luv. but i need it to be numerical because well, if ther is more than 9 images it sorts it wrong with abc order! … | |
Hi, I have another question: ¿is there a method that allows me to capitalize the first letter of EVERY WORD in a given string? I know that something like: [CODE=python]a = "hello world" print(a.capitalize())[/CODE] would print "Hello world" but I need it to print Hello World. It's for a program … | |
I'm having difficulties understanding and printing the max value of a size_t type. Apparantly the size_t is typedefed to a unsigned long int on my system. Is this safe to assume its the same on all c++ compilers? The 'sizeof' function returns the number of bytes(size char), used to represent … | |
I'm trying to convert a row from a matrix of Char's to a String and all I've been able to get is a bunch of memory locations. I was hoping someone can lend me a hand. Here's what I've got: [CODE] for(int c=0; c<tempBoard.length; c++){ String charArray = " "; … | |
![]() | So I'm trying to write a program that will display a grade depending on the user's input i.e. 90-100 (A) 80-89 (B) 70-79 (C) 60-69 (D) 59 below (F) this is what I have so far but I don't know what I'm doing wrong. :\ It assembles and it'll let … ![]() |
Hai.... Im new to .net ,I need help in doing my project.... If i Give the lastname in textbox then the items in lastname should be displayed in the anthor textbox [B]For ex : Thomus,123,aaa Thomus,345,bbb H_alert,456,ccc[/B] If i enter thomus it should show all thomus from my database but … | |
hi guys, i am doing a final year project regarding the ontology population using information extraction. i am to use Java and GATE. i need some help in the part of information extraction as this is supposed to be coded in java. so please...help me start off my project. all … | |
i want to record report printed date and time when user click on the crystal report print button (which is in the crystal report viewer control). is there are any event like click event.. for that crystal report print button. i want to keep record of printed report. i am … | |
hey guys, i was wondering if anyone could tell me how to separate individual digits of an integer in order to store those individual digits into an array? I need to create a circular shift method so I was just going to separate the digits of the number, put them … | |
![]() | Hi. I'm trying to call a function to convert a decimal integer into a binary number (stored as an array of integers). Before I knew that I couldn't return an array, this is how I thought to implement it. Can anyone help me understand the way I'm actually supposed to … ![]() |
I am trying to get music to loop in the background of a game. However im really not sure how to do this. Can anyone give me a starting point please? I am using Visual C++ btw. | |
I have a while loop and I am trying to associate a number with each line that increments by 1. I am sure this is probably something simple, I am not sure why I am struggling with it. Here is an example of that I have: [code=php] <?php $counter = … | |
Hey all I have been writing my own implementation of a BigInt class and I think I have most of it down. I am using a vector<int> container for my number. I'm curious to what you guys think about. This is my first program using 1000+ lines of code. Please … | |
I am using MS SAPI (5.1 or 5.3) to read a script using a call like this (in MS VC++): [CODE]Voice -> Speak(script.AllocSysString(), SPF_DEFAULT, NULL);[/CODE] I want to be able to limit the total duration of the time spent reading the text to length X (hard limit). Is there a … | |
Hello guys, I've a class with a cpp and .h files. It's a part of a large program. I would like to create an array of structs and use it wherever in the same class, i.e. I want to initialize it in a specific function and use it in other … | |
Here's the code I put together to create concentric circles using Python: [CODE]def concentric(myTurtle,number,spacing): for radius in range(number): x = myTurtle.xcor() y = myTurtle.ycor() myTurtle.up() myTurtle.goto(x,spacing) myTurtle.down() drawCircle(myTurtle,radius*y+spacing) myTurtle.up() myTurtle.goto(x,spacing) myTurtle.down()[/CODE] It, however, has a critical flaw. I need the code to be able to goto any given set of … | |
Hey all, Here is some code for reading Excel spreadsheets (2003 and before) with PyExcelerator. My main problem is that if I leave a cell blank, it gives me an error. I want to be able to have blank cells on my spreadsheet without any problems. Does anyone have any … | |
Hello, What I want to do is reset the pig's position to 0 and it's colour to pink. I don't how if I amended the the constructor correctly so the final line sends a resetCount() message to the newly created Animal object. The above code is not working because nothing … | |
I got some linker error, couldnt find the mistake. What is wrong? [CODE]#include "myStack.h" //Imports the Stack header file containing the declaration of the member functions myStack::myStack() /*The stack is initialized as empty */ { count=0; } //end of Stack::Stack constructor Error_code myStack::push(const Stack_entry &item) /*If the stack is full … | |
i am trying to create a tic tac toe GUI but i am having trouble...here is my code: [CODE]import javax.swing.JFrame; public class TtTDemo { public static void main(String[] args) { JFrame frame = new JFrame ("TicTacToe"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new Main()); frame.pack(); frame.setVisible(true); } } [/CODE] [CODE]import java.io.BufferedReader; import java.io.IOException; … |
The End.