199,114 Archived Topics
Remove Filter ![]() | |
In integration.h I have this [code] class FunctionClass { public: virtual double f(const double x) = 0; }; [/code] Then in probability.h, I have this [code] #include "integration.h" class Mass1 : public FunctionClass { public: double Clutter; Mass1(double c) : Clutter(c) {} double f(const double x) { return Clutter * … | |
I am still trying to come up with a simple solution where i add lines of words to a 2d array so i can pick an array element and display what is in that array I can read the lines of text and output which words are on which line … | |
Can someone explain how to add a file to a dictionary. The file is simple. Maybe a word or a number on each line. Here is the code I have. Didn't know if i should use this post or the List and Dictionaries post so kind of posted twice... sorry … | |
Hi guys... I've downloadws today the IronPython. One thing i've noticed that if you type, for example, 5+6 it calculates it..! So, i tried to do that with my App too, without success... Note: I've tried "if" sentences, but they are pretty useless... [B]Help![/B] | |
I have a simple problem and I do not want to write 24 if statements. I am creating a URL string which requires precise formatting to work. This URL is getting created on the fly based on variables ($Layer1.','.$Layer2.','.$Layer3) I pass in to create the URL string. The URL string … | |
I have written and application to search through a text file and find the following data and pull out the 5th varible and place in a text box. P_SPEED 0 10 1100 0 .01 23 0 The next issue I am having to input, into a text box, a integer … | |
The code is this: [code=php]<html> <head> <link rel=stylesheet type=text/css href=style.css> <title> Search Results </title> </head> <body> <?php include("header.php"); ?> <center> <div class=indexboxlarge2> <?php SESSION_start(); include("dbcon.php"); $searchresult = $_POST['result']; dbcon(); $query = mysql_query("SELECT * FROM user_info WHERE 1_name LIKE '%$searchresult%' OR WHERE 2_name LIKE '%$searchresult%'") or die(mysql_error()); $total = mysql_num_array($query); if … | |
I need help with my program. The program reads water temperatures and when they were recorded from an input file called " biodata2.txt." Then the output is displayed in a file called "results.txt" So the input file looks like this: 2 // number of readings taken 200707211245 // date recorded … | |
hello everyone i am currently working on a php script on my website. I wanted to make a script for registering users. So that they may log in, log out, register, and access member only functions. I found a good tutorial online but since im fairly new to php and … | |
Hi All, I have a question regarding on how to manage a child form with a datagrid inherited from a parent form. In most cases, changing the control modifier from private to protected will make the control editable in the child form, but with a datagrid, these seems not to … | |
Hi members... I have made a simple chat bot in Visual Studio with C#.. Its very basic and basically talks to you, saying a few lines.. I need help urgently sexing this chat bot up, making it say more stuff, etc,... I'm wondering if anyone out their can help me … | |
I want my program to run on start up through editing the registry, how would i do that? Certain API's? or a specific way through c++ to do it? Or is that even the right method? Basically i would prefer to not use the startup folder in XP. | |
Heres my Code Goodluck lol any how the if statement works but always coming up true not false dont understand why [CODE]$_POST = valid_post($_POST); $i=1; $i4=1; $result4 = mysql_query("DESCRIBE ".$table2.""); while($row4 = mysql_fetch_array($result4)) { $test4 = mysql_num_rows(mysql_query("DESCRIBE ".$table2."")); if($row4["Field"] == "id") { print''; } elseif($row4["Field"] != "id" AND $i4 != … ![]() | |
When I run the following program , after loop it outpur "Enter Valid Number". How can I solve this problem? --------------------------------------------------------------------------------- #include <stdio.h> #include <conio.h> #include <string.h> void main() { int var1,var2,sum; char Choise; while (Choise!='q'){ printf("\n(1)A-Add two integers.\n\n(2)C-compart two integers for the larger.\n\n(3)F-Test an integers for odd or even.\n\n(4)Q-Quit.\n\n"); … | |
Hello, I'm not sure that this shouldn't be in the C but it is mostly a theory question, although it is also implemented in C, so here it goes. I've been looking at some ways to make a modifiable array to hold geometric data for a simplistic 3D program (using … | |
if the object is created on the stack, the destructor is called automatically when the object is out of its scope. if the object is created on the heap using new operator, the destructor is fired explicity by using delete keyword. i created an example to demonstrate both cases: [CODE]#include … | |
i m a new user of c language.whenever i try to run my program a message error is displayed as"not able to open the file named C0S.OBJ.what is the meaning of that?and what should i do?please anybody help me. | |
Hi, I had a question. Actually this is a first question from me at the site. We all know that how Text and Numbers are stored in the computer. Numbers and for Text use ASCII codes and binary codes. So how are pictures stored. Because Every alphabet has its own … | |
I had a php server and a directory named "images" in it. I need to change the folder's permission to 0777 via php script.... I had the code like this [CODE]chmod('/images',0777);[/CODE] But It will give the following results... [CODE]Warning: chmod() [function.chmod]: No such file or directory in /home/keralaba/public_html/bkp3/new.php on line … | |
Hello everyone, I'm into writting a project ,that's all about dealing with directories and more specificly to code something that finally well work as"windows command prompt" in standard console.... i Got alot help from the experts here & got alot progressed, But a bug has occured in between: yestreday i … | |
Which is the best language for creating windows applications? What is .NET framework? Is there any software with which I can use to create win apps with using minimal code and drawing windows and menus and buttons etc without creating them using code. Something like Microsoft Visual Basic. | |
Hi there, I am trying to write a queue ADT using a linked list in C and have hit a snag initialising my queue... [code=c]typedef struct qNode{ int element; struct qNode *next; } qNode; typedef struct Queue{ struct qNode *front; int len; } Queue; Queue create_queue() { Queue q = … | |
HI, I have exe file writen in c++ or c and wanna decompile it to source code. Is that possible? If it is, is there any decompilet that can do that? thanks! | |
Please forgive what is surely a stupid question: How do I use .Net Reflector to find out which namespace a class, method or property is in, or to see parameter lists? There's no way to enter a character string to tell it what you're looking for. | |
I am trying to keep formatting between cell references. For instance, I have a date in once cell (J9) and would like to add this date to a text field so e.g.: ="This will take effect on " & J9 & "." However, when I do this, I end up … | |
Hi, I recently started reading up on Ruby on Rails and decided to install it so I could give it a go. I found some inconsistencies and problems that I hope I can get some help with. First, when creating a project I used the ruby script/generate command and it … | |
i am trying to retreive the contents of the table in my databse into a html form using servlets in tomcat. here isthe code: [code] import java.io.*; import java.lang.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class ServletusingData extends HttpServlet{ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ response.setContentType("text/html"); … | |
THIS PROGRAM IS not yet complete the only problem is when the program calls for the find it process..it does not work perfectly i don't know why..but when i separate it its working..please help me with this.. this is how it looks separated from the optional program: #include<stdio.h> #include<conio.h> int … | |
Please somebody help me! I`m a beginner and want to learn web designing. I want to khow taht is there any diffrences between Java & JavaScript if yes which one of them is better for me I have learned just C programming language. | |
Unfortunately, I don't think this question is solved with a simple vlookup, or etc. I have a spreadsheet that has several tables of data with the following format on one sheet: gxxxx gxxxx gxxxx zzzzz gxxxx gxxxx gxxxx zzzzz The "g"s above would indicate an item for lookup. The "z"s … | |
i have developed a c#/.NET web app using VS 2005 on my local machine. it works fine, and i have copied the files over to the web server (running ASP.NET 2), and it works great with JIT compiling on the server. before moving to production, i would like to compile … | |
when i run my application i got "Memory fault(coredump)" run-time error, what might be the possible cause for this? Thanks | |
i want to know how to send sms from a java program, so far i am aware that you will need a sms gateway, but i dont know from at which point to start coding .... i am an absolute beginner, and i please help me with step by step … | |
I'm designing a database model for a Gallery. Never done Normalization before, I did some research online and came up with these rules, followed it and this is what I came up with. Trying to get to from UNF to 3NF. Are these stages correct? or am I way off... … | |
what is the method for removing a node from a linked list in pseudocode? i know how to add (im coding in java btw) but deleting has me stumped any pointers? | |
Hello, I'm currently programming a C++ Snake game and I'm stuck at a particular part of the program. This particular part had me wondering for sometime now, and I've got absolutely no idea how to work it out. I want to implement a collision detection between two snakes that would … | |
can anyone plz help me. i m not able to compile source code.the problem is javac not recognised as internel or externel command. | |
Hi, I always tried and SEARCHED for this but low chances to find out the answer, an example. I try to DETECT whether 2 pins of COM port are connected or not. If you have at least very low electronics knowledge you'll understand this. It's like having a relay or … | |
Hi I'm getting the error TypeError: argument of type 'int' is not iterable when i run my program and don't know where I'm going wrong. My code is: [ICODE] class loan: global loanlist loanlist = [] def loanbook(self, name, ISBN, author, title): self.name = name self.ISBN = ISBN self.author = … | |
Hi, I wrote a simple Java program that allows changing the background color of itself by clicking on the radio button, like this: [code] import java.awt.*; import java.awt.event.*; class Colors extends Frame implements ItemListener, ActionListener{ Label lblTxt = new Label("Choose a color:"); Label lblInform = new Label(); CheckboxGroup cbg = … | |
hi all, I want to use combo box in my application and i want to give user only selection option for combo box when they are entry data so i make combo boxs style property to drop down list. But when he edit the data then i access that record … | |
Hello All, I am a first time poster here, and had a general question. Briefly, I have developed a fairly simple app in VB5 (a couple of controls and some code to run them) and would like to be able to use it on a PDA, rather than having to … | |
hi ,i want to know that if i m taking the input from user in C through scanf what should be the code if the requirments are following. 1.should accept string minimum of 3 and maximum of 15 characters. 2.accept alphabets ,blank space hyphen(-)and & 3. first latter should be … | |
Hi, Could some one point me in the right direction. I'm trying to get a value thats in a file between tags. for instance: I'm reading an array out of a file per line example: [code=C++] myArray[0] = "<FILE_NAME>Testfile.dat</FILE_NAME>"; [/code] What i'm trying to do is to read every field … | |
Hi there I'm a newbie to asp.net and trying to learning it doing small forum application. In the application I've a page which lists the available threads in a given topic and I used a gridview. In the gridview the thread's title is hyperlinked and when clicked it will redirect … | |
Hai I am new to game development............... I am a MEL script programmer..... also know .NET, php....... I need to make a simple 3D game for that I model a background set using maya . Any one help me about the next step ..... Which game engine or language used … | |
I am trying to set a cookie but when i check my browser cookies nothing is set. What am doing wrong [CODE] #!/usr/bin/python # e begoli, python connector for mysql # import MySQL module import MySQLdb import cgi import Cookie import time cookie = Cookie.SimpleCookie() cookie["ID"] = "" print "Content-type: … | |
Hello, I have came from C++ and have decided to learn C# and XNA 2.0, I am wanting a good book for C-Sharp for complete beginners, but [B]not[/B] for dummies. I have came accross: [url]http://www.amazon.co.uk/Microsoft-Visual-2008-Step-Developer/dp/0735624305/ref=sr_1_3?ie=UTF8&s=books&qid=1232880050&sr=8-3[/url] Btw, because I have programmed in C++ I get the basic consepts Reply please? |
The End.