199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daviddoria

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 * …

Member Avatar for _adam_
0
1K
Member Avatar for AdRock

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 …

Member Avatar for AdRock
0
180
Member Avatar for Ghostenshell

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 …

Member Avatar for woooee
0
169
Member Avatar for Ronen444

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]

Member Avatar for _adam_
0
84
Member Avatar for Mapper99

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 …

Member Avatar for uncle_smith
0
235
Member Avatar for deerslayer

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 …

Member Avatar for NightCrawler03X
0
326
Member Avatar for jakx12

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 …

Member Avatar for uncle_smith
0
140
Member Avatar for Passiongamer25

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 …

Member Avatar for Passiongamer25
0
94
Member Avatar for jhonnyboy

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 …

Member Avatar for Andrieux
0
83
Member Avatar for mjavier2k

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 …

Member Avatar for Ramy Mahrous
0
124
Member Avatar for naomiauk

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 …

Member Avatar for cookpau01
0
274
Member Avatar for clutchkiller

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.

Member Avatar for cikara21
0
94
Member Avatar for zskull

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 != …

Member Avatar for diafol
0
98
Member Avatar for hsoni007

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"); …

Member Avatar for Salem
0
105
Member Avatar for sciwizeh

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 …

Member Avatar for Salem
0
99
Member Avatar for serkan sendur

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 …

0
46
Member Avatar for mohinig

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.

Member Avatar for Salem
0
96
Member Avatar for New IT Student

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 …

Member Avatar for Salem
0
106
Member Avatar for rajeesh_rsn

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 …

Member Avatar for almostbob
0
141
Member Avatar for Mahsa_C++

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 …

Member Avatar for Salem
0
180
Member Avatar for chound

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.

Member Avatar for Salem
0
640
Member Avatar for Logi.

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 = …

Member Avatar for Logi.
0
186
Member Avatar for Gigs_

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!

Member Avatar for Salem
0
9K
Member Avatar for BobLewiston

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.

Member Avatar for Ramy Mahrous
0
95
Member Avatar for omrsafetyo

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 …

Member Avatar for omrsafetyo
0
149
Member Avatar for hericles

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 …

Member Avatar for BoomerBrian
0
140
Member Avatar for vartikachandra

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"); …

Member Avatar for peter_budo
0
130
Member Avatar for Lovieron

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 …

Member Avatar for Aia
0
202
Member Avatar for |\|asrin

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.

Member Avatar for |\|asrin
0
156
Member Avatar for omrsafetyo

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 …

Member Avatar for omrsafetyo
0
165
Member Avatar for itrickski

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 …

Member Avatar for itrickski
0
502
Member Avatar for serkan sendur

when i run my application i got "Memory fault(coredump)" run-time error, what might be the possible cause for this? Thanks

Member Avatar for serkan sendur
0
104
Member Avatar for localp

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 …

Member Avatar for verruckt24
0
1K
Member Avatar for jwaldron82

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... …

Member Avatar for pclfw
0
139
Member Avatar for jbennet

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?

Member Avatar for jbennet
0
107
Member Avatar for Nyaato

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 …

Member Avatar for Murtan
0
154
Member Avatar for kin89

can anyone plz help me. i m not able to compile source code.the problem is javac not recognised as internel or externel command.

Member Avatar for stephen84s
0
615
Member Avatar for Clawsy

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 …

Member Avatar for Clawsy
0
78
Member Avatar for wotthe2000

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 = …

Member Avatar for Ene Uran
0
4K
Member Avatar for meo_beo

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 = …

Member Avatar for quuba
0
155
Member Avatar for riya_s505
Member Avatar for stephen84s
0
75
Member Avatar for guest11

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 …

Member Avatar for selvaganapathy
0
246
Member Avatar for mortgage_master

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 …

Member Avatar for Comatose
0
95
Member Avatar for mohan_198505

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 …

Member Avatar for Aia
0
116
Member Avatar for Nicklorion

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 …

Member Avatar for Nicklorion
0
148
Member Avatar for tomtetlaw
Member Avatar for chombe

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 …

Member Avatar for chombe
0
704
Member Avatar for rajeesh_rsn

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 …

Member Avatar for tomtetlaw
0
149
Member Avatar for adam291086

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: …

Member Avatar for adam291086
0
221
Member Avatar for Black Magic

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?

Member Avatar for hieuuk
0
138

The End.