199,114 Archived Topics
Remove Filter ![]() | |
i have tried to answer this question like this (show your attempt) and i did it like this because (show your reasons why you think it is the correct approach) and the results that it gave are like this (show the results that your query produces) and i cannot understand … | |
sharky_machine Offline Posting Whiz in Training Join Date: Oct 2006 Location: New York City Posts: 253 Rep Power: Re: Starting Python Today, 1:41 pm | Add to sharky_machine's Reputation | Add Infraction | Flag Bad Post | IP | #86 -------------------------------------------------------------------------------- Vegaseat: I have been reviewing this code you had … | |
Hello I am working on a search page. When you type the person's name insted of displaying a listing I want to be redirectd to the user information. I am getting a warninig: Warning: cannot modify header information - headers already sent( at start of D:\search.php: 108) in d:\search_play.php on … | |
hi everyone, i am working on a simple C++ code that will randomly generate a DNA strand of bases. How this is what i have so far: [code=cpp] #include <iostream> #include <ctime> #include <cstdlib> using namespace std; string my_string; int main() { int random_integer; char 1 = 'A'; char 2 … | |
Can someone explains what specific "0x30" does in the decimal to binary function below: void dec2bin(long decimal, char *binary) { int k = 0, n = 0; int neg_flag = 0; int remain; char temp[80]; // take care of negative input if (decimal < 0) { decimal = -decimal; neg_flag … | |
This is a simple script I copied from a book to create a form, then mail it to an address. I cant get it too wok and wonder if its the script or my server. I even copied the source form the publishers website and it still wont work. Basically … | |
I usually have no trouble with sites, but i need some help making a PHP chat room for a website. Nitto1320(the game), [url]www.kirbynos.tk[/url] thats the site so far and the other is [url="http://www.gotglitch.com"]www.gotglitch.com[/url] I know downloading all the PhP stuff is required but it seems on the confusing side for … | |
i'm currently learning php. i'm making a file for a friend instead of using the page that comes up when theres no index file in a folder. i want the directories to come up first and then the files. heres the essence of the code: [code] //$entry is the filename … | |
[B][COLOR=#000000] [/COLOR][/B] [U][B][COLOR=#000000]Question 1 - Multiplication[/COLOR][/B][/U] [COLOR=#000000]Develop a program with following functionality.[/COLOR] [COLOR=#000000]- Input from the user will be five numbers separated by comma e.g. 56,80,123,3,2[/COLOR] [COLOR=#000000]- On selection of Go command button you have to populate list boxes by separating [/COLOR] [COLOR=#000000]- [/COLOR][COLOR=#000000]Even Numbers[/COLOR] [COLOR=#000000]- [/COLOR][COLOR=#000000]Odd Numbers[/COLOR] [COLOR=#000000]- [/COLOR][COLOR=#000000]Multiples … | |
the program i have to make is as follows: use the string comparison function and the sorting array techniques to write a program that alphabetizes a list of strings. use 10 town names for your program. and this si what i have made.... and it doesnt work: [code] [COLOR=Black]#include<iostream> [/COLOR] … | |
Fist of all I need links lol... How do I use openGL? How do I compile the stuff without getting error? NEED HELP!!!:?: :?: :?: | |
Howdy everyone again, Just thought that i would post another snippet for those interested in working with databases and C# in the windows forms environment. I did some searching on this and found that there was not really any clear concrete answer on how to do this. After some searching … | |
i wanna get started with programming 3d stuff....is there any programming language that you would recommend me? i heard that visual c++ would be good... but what if i wanna make something that works on linux too? i tried to learn some java but its kinda nasty :):rolleyes: ty in … | |
Short example of problem I have: [code]class A{ public: int x[10]; }; int main(){ int A::*pointer = &A::x; A a; a.*pointer = 3; return 0; }[/code] I got an error: cannot convert from 'int (A::* )[10]' to 'int A::* ' in second line of 'main()' I tried to remove '&' … | |
i have learn to wite out a few simple program on paper. However, after installing microsoft visual C++, i found out that i do not know how to use it to create C++ application. I click file-->new, and and the Visual C++ software prompt me to create a workspace or … | |
Given two spheres, I need to determine if a collision has occurred between them. I need to input the radii and the centers from the screen and use a double-valued function (outside of the main program) for the distance formula. What I have so far is [code=cpp] #include <iostream> using … ![]() | |
I have an assignment Write an encryption program to read in last name and convert letters of last name into the next letter of alphabet can anyone tell me if what i have is correct or almost correct [code=cpp] #include<iostream.h> voidmain() { float turner, char cin>>Turner; cout<<Turner; char t='u'; char … | |
is it possible, to use, or otherwise import and access the class in a .pm file by a suggested name (this would be after compilation)... here's the lowdown, I've been working on a project for a while now, it is an XML processor. One of the parts of a process … | |
[B]Here's my problem: [/B] The user needs to enter a char/string for a .dat file with a max of 15 characters. I've tried to use both a char and a string to make sure the user enters 15 or less characters. If I use char, and if the user inputs … | |
hi, i think i have overwritten ActionListener from my compiler( dont know if it is possible). i accidentally saved a file as ActionListener.java and now anything i try to compile that need ActionListener doesnt work. is there a way i can get it back? i already uninstalled and reinstalled my … | |
Greetings, And an advanced "thank you very much" if you can help me :) I just played with the great tutorial from Dave Sinkula [url]http://www.daniweb.com/code/snippet151.html[/url] but I'm having trouble altering it. I want it to read the file, and each one of the lines, and output something like this: [QUOTE] … | |
I am interested in learning if it is indeed possible to sort a Python dict. What I have researched tonight points to that it is [B]not[/B] possible, although snippets were posted inferring that you can sort a dict; I tried some of this code and it did not seem to … | |
Hallo! New in Java, and asking a very stupid question: Can i change the icon "?" in showInputDialog? `cause in JOptionPane.X i can do it, like JOptionPane.ERROR_MESSAGE, or JOptionPane.WARNING_MESSAGE. :mrgreen: | |
Hi Help with the decision of the equation 1/x1 + 1/x2 + 1/x3 + 1/x4 + 1/x5 + 1/x6 + 1/x7 + 1/x8 = 1/2 x1 <= x2 <=x3 <=x4 <=x5 <=x6 <=x7 <=x8 (natural) It is understandable, that 3 <=x1 <=16 what about x2, ... ,x8 ? thanks | |
Ok, so I am a total PHP n00b so I will explain my problem then say how I would personally logically solve it. I am creating a website using a php include at the top of the page (same for every page on the site) and one for the bottom … | |
Hello everyone This is my problem- I am a C# student and I wrote a program for a address phone book. So when my teacher offered extra credit- I accepted- but the catch is he's not going to help at all. He said we can use any source but him. … | |
I would post this in my other thread, but I marked that as solved so I think less people would look at it. I want to say this: [code]if list1 is empty: do this elif list1 has any value in it: do this[/code] How do I word that in python? | |
Hello all and thanks in advance, I am attempting to add an image in an email that is generated from php. Here is the php code [code=php] $ttext = " Hello, $_POST[name], whose email address is $_POST[email] thought you may be interested in this event. $_POST[refurl] $_POST[name] Has left you … | |
I have this little problem.... I have a dynamic array.... I have to creat a function to give me the max and min values of that array... I can't think of a way to send data to a function without knowing the number variables.... can anyone give me a nudge … | |
I have multiple pages with the same information on them (forthcoming events information), and when that information needs to be changed i have to change every page which takes time. I was wondering if XML can be used to change the information on the pages by editing one central XML … | |
Hi I need help in programming with strings....I started a code, but I'm not sure how to do it....Please help [LIST=1] [*]read in one string which consists of two words Ex. "Computer Science" [*]call a function [B]makewords()[/B] which receives three parameters: a string which holds the original phrase and two … | |
Is there some sort of wildcard search function in C? Detailed explanation. [code]Phrase: <blah="*" uid="ekdopakek"> So let's just say we've got this 48764546545blah<blah="whatever" uid="ekdopakek">blahblahblah I'm looking for a function that will return the whatever, and just the whatever (nothing else). Thanks![/code] | |
i don't see anything wrong with it... what's the deal? this is the results page that displays the results of a search query. [b]Parse error: parse error in ../../../../merchandise/testreg/results.php on line 21[/b] [code=php] @ $db = mysql_connect("localhost", "apache", "R3GP@SS!"); if(!$db) { echo "Error: Could not connect to the database. Please … | |
Hi, I am a relative newbie to PHP no doubt I will run into no end of problems, speaking of which :sad: I have implemented a vb board and need to add another admin. Apparently it mentions that the ID of the person be added after the superadmins line which … | |
Hello everyone. I was writing somthing in C++ today and a little "issue" occured to me. How can you avoid the possibility of a buffer overrun when reading from STDIN into a character array? In this simple example [code]#include <iostream> using namespace std; int main () { char *some_text = … | |
Hello. I am currently dabbling with C++ with view to learning openGL. I am using Microsoft Visual C++ and Borland compilers but the problem is neither of these programs want to accept any OpenGL code I put into them. Can someone please help me? | |
hello all, i'm building a CMS and i'm have some trouble with a certain page i've been working on. I have information stored in my database that the admin user can edit and update and change, obviously. on this edit page i have HTML input fields that have been pre-populated … | |
hi, i'm trying to figure out how to mirror a given a value. for example: FF0A, i'd like to make it A0FF. i thought of a code like shifting it left 8x but i find it brute forceish. is there a better way? thanks | |
hi everyone; i am doing a project for my sis in unversity, and it says that i have to find [B]the first 100 prime numbers and store them in an array.[/B] i managed to find the prime numbers but when i try to store it in an array a bunch … | |
hi. this is harisha, newbie. how to compare two strings in java.:confused: . String id,t; if (id.compareTo(t) > 2) {....} is this correct.while i compile it shows error. reply me soon.. | |
hi guys, I have an assignment that is due on december first and i cant seem to get a wrap around it and was wondering if someone could help. I have been given a Robot module with 17 testboards and some predefined functions such as sensor, move, currentPosition, boardSize and … | |
Hi, I tried to run following script of drawing a sin/cos curve using python 2.4 , there is error: [B][COLOR=red]Traceback (most recent call last): File "", line 6, in ? File "C:\Python24\Lib\lib-tk\Tkinter.py", line 1564, in __init__ baseName = os.path.basename(sys.argv[0]) AttributeError: 'module' object has no attribute 'argv'[/COLOR][/B] [B][COLOR=blue]Can anybody tell me … | |
My task is this, and I'm having trouble finishing up the code: [LIST=1] [*][QUOTE] Write a function named deleteS that accepts one character pointer as a parameter and returns no value. The parameter is a C string. This function must remove all of the upper and lower case 's' letters … | |
I am having problems trying to create arrays from text files. The text files created from the program I am working on is like this: Name Test1 Test2 Test3 Avg Grade =================================== Student 999 999 999 999 X The first two lines in this are headings that are added into … | |
Hey whoever was good enough to take a look at this thread I have to stress I am a complete noob! I picked up "Java programming for the complete beginner" five days ago and here I am with 50% less hair and stuck on a challenge at the end of … | |
Hi, I am running a webapp in Tomcat 5.0 with Axis 1.4 My web app loads on startup. When I make a SOAP call to the webapp (which is a servlet) it takes a new instance of the servlet instead of the original servlet that is already running. The wsdd … | |
Hi Could someone please help me do this final yer project please, your help is greatfully apperiated. Here it is: The form should be white and in the centre of the screen. There is a vertical black line down the entire form, dividing it into approximately two halves. All the … | |
I have recently began programming in the windows api rather than the command prompt\ms-dos environment. I am still using windows 98 and bloodshed dev-cpp 4.9.9.2. I need to know how to disable the START MENU, TASK BAR, and the little boxes in the top right hand corner of the application … | |
It's the newb again. I have a lousy professor who won't even show us how to get started on importing a file (call it 'independent study'). Can anyone help me? I need to import the following data to produce a bar graph. Here's the data. Can anyone help me to … | |
Hello people, I have just started to learn JS, and have a question. I want make my script to load (for preview) an image file chosen by user through HTML form. My code is following: [html] <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <title>Upload form</title> <script … |
The End.