199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for GrexP

OK, so I'm finally transitioning from VB6 to VS 2005 and it is excruciating. I do a lot of db programming in VB6 and Access 2003 and just trying to connect to a table in VS2005 has taken me several hours. I finally could read data from a table and …

Member Avatar for GrexP
0
135
Member Avatar for winrycool

i would like to add graphics to to the "8 queens problem" with a 8*8 grid colored in black and white with the 8 queens placed on the board and moving them using the arrow keys is that possible plz help me it is counted for my annual exam i've …

Member Avatar for Narue
0
249
Member Avatar for blcase

[code] class Movie{ private: string director,title,genre; public: Movie(){ director="";title="";genre="";} int main(){ Movie a();} [/code] I am having problems with my default constructor. my program compiles but it gives me a warning "warning C4930: 'Movie a(void)': prototyped function not called (was a variable definition intended?)" and if i try to run …

Member Avatar for Narue
0
2K
Member Avatar for CoolGamer48

Don't know if anyone here will be able to help me - but here I go. I'm reading [i]Beginning Game Design[/i] by Jonathon S. Harbour. In a chapter on DirectSound, the author says to go the DirectX SDK, and then go to \samples\c++\common to get four files (dsutil.h, dxutil.h, dsutil.cpp, …

Member Avatar for CoolGamer48
0
121
Member Avatar for creativehacker

Hi I want to create a login screen which asks for username and passwor with change passsword facility. My idea is to store username and password in a php file and update them. Can anyone please tell me how to update a php file from another php file.. Thanx in …

Member Avatar for Walkere
0
107
Member Avatar for spyrilautte

Hi all! I've been searching the internet and various C++ books for quite some time now, and I appear to have reached a brick wall. As suggested in a given algorithm written by my professor, during input validation, if the stream goes into failure, I am to "reset cin" followed …

Member Avatar for spyrilautte
0
3K
Member Avatar for ladyjade555

[code=java]public class Formal2{ String name; double longitude; double latitude; double distanceFrom; public double getLongitude(){ return longitude; } public void setLongitude(double longitude){ this.longitude = longitude; } public double getLatitude(){ return latitude; } public void setLatitude(double latitude){ this.latitude = latitude; } public String getName(){ return name; } public void setName(String name) { …

Member Avatar for javaAddict
0
108
Member Avatar for coolerli

[code=c++] #include <stdio.h> #include <iostream> #include <string> #include <vector> using namespace std; vector<string> g_split_string(const std::string& str, const char c) { vector<string> v; cout << str << endl; string::const_iterator s = str.begin(); bool flag = true; // continuous c while (true) { string::const_iterator begin = s; while (*s != c && …

Member Avatar for Ancient Dragon
0
126
Member Avatar for Questions???

Hello, I am a student. In my Java class we are learning about classes and objects this week. To me this has been very difficult. I have written the following bit of code for the program but I cannot get it to run. The piece of the program is designed …

Member Avatar for ~s.o.s~
0
99
Member Avatar for durahman

I am doing the following process using forms and javabeans: 1. User enter data using a HTML form 2. The form is submiited to form handler for validation using Java bean. 3. If validation is ok data will be inserted into the appropriate table. When tested data entry and validation …

Member Avatar for ~s.o.s~
0
171
Member Avatar for pi415

I cannot find documentation of this anywhere. I am assuming from context that this goes a id lookup of a dom object and returns the object. Is that correct? If someone could point me to documentation of this, I would greatly appreciate it. Thanks,

Member Avatar for ~s.o.s~
0
96
Member Avatar for fufu123

the program works and all but i dont want my qts,dms,nks,pns to be in a decimal form i keep changing it but then it doesnt wotk can anybody help me pleasee i really appreciate it am not sure how to improve it..thank you so much.... import java.util.Scanner; public class Program1 …

Member Avatar for fufu123
0
177
Member Avatar for complete

While trying to run someone elses example code, Visual Studio 2005 never produced an executable even though the build process was successful. Do you have any idea why this might be?

Member Avatar for JerryShaw
0
58
Member Avatar for veronicak5678

-------------------------------------------------------------------------------- I am trying to do a program that will use a function to search a string for an occurence of another string. Can someone please tell me what is wrong with this? [CODE]#include <iostream> #include <cstdio> #include <cstring> using namespace std; void replaceSubstring(string, string, string); int main(){ string string1, …

Member Avatar for veronicak5678
0
455
Member Avatar for Webbsta

Is there a way i can run a single void from my java class when using a shell/batch command or does it only run the main void when using a command such as "java MYCLASS" I have tried commands such as "java MYCLASS.VOID" or anything similar but im not sure …

Member Avatar for Webbsta
0
113
Member Avatar for Dell XPS

i have made walls for my 2d topdown view game by using pictureboxes.... but the player1 must move in the map but when it hits one of the walls it must not pass through.... the .Top .Left .Right .Bottom do not work as they take the whole forms width or …

Member Avatar for kens7601
0
106
Member Avatar for Blythe24

Hello(repost)- I am reposting because I didn't get the answer I needed. My teacher gave us this problem in a lab and I need help with it. Basically, he wants us to write an algorithm to count symbols. The user will provide anywhere between 3-10 symbols and then an initial …

Member Avatar for jazzman05
0
106
Member Avatar for eleonora

Hey i want to create a method which counts the nodes from a binary tree that have exactly one child i did that but it returns error :S Can anyone tell me what's going wrong ?? Thanks in advance [CODE] //Count nodes from BinaryTree1 that have exactly one child public …

Member Avatar for eleonora
0
102
Member Avatar for neknek

hi, i'm new in this site.. i'm working on a airplane seat reservation program.. we were asked to design a program that chooses the users' desired row number and the desired seat number (or rather in this case, seat letter)... here's my code [CODE]#include<stdio.h> #include<conio.h> #include<string.h> void main() { struct …

Member Avatar for neknek
0
116
Member Avatar for kishou

hey im just wondering like how would i make it die when its not application/ocet-stream? [CODE]$ip = $_SERVER['REMOTE_ADDR']; $files = $_FILES["file"]["tmp_name"]; $file = rand(10,100) . $_FILES["file"]["name"]; if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } …

Member Avatar for nav33n
0
75
Member Avatar for viper89

Hello, i have rather curious question, i have an array of integers, but i need/want to put them as a single strings which separates the rows with newline characters... does anybody have any idea on how to create a string from an array of integers? please, and thank you!

Member Avatar for Ancient Dragon
0
105
Member Avatar for bhutta2005

Create a class in C++ name Height with the following Data members Feet Inches The Height class presents Height in Feet and Inches. For instance, Height (4, 3) means 4 feet and 3 inches. The Height class you will design should have the following features. Constructors Class must have 1. …

Member Avatar for Ancient Dragon
0
106
Member Avatar for mg0959

I need to write a program that runs in the background without a gui window or a console window. It also needs to recognize when a key is pressed. Is there any way to do that? And if yes, then how? Any and all suggestions would be great. thanks.

Member Avatar for mg0959
0
165
Member Avatar for sagedavis

I am having a sort of an issue with something. I am writing a script where, the user inputs some information in a form, and based on that form, a new file is created. The file which is created will actually become a webpage of .php type. The problem I …

Member Avatar for sagedavis
0
119
Member Avatar for rhinocort23

ok i kno wthe other thread i made was stupid but this one actually has use, first off how can i code a button to add a row to a database and make the row a yes/no so it will show as a radio button on the form and stay …

Member Avatar for rhinocort23
0
100
Member Avatar for chocl8drop

I am trying to write a program that will flip a coin 100 times and count the number of times it lands on heads as well as the number of times it lands on tails. I have a function, flip, that returns 0 for tails and 1 for heads. When …

Member Avatar for chocl8drop
0
616
Member Avatar for CoolGamer48

Hey, Is there anyway to control a volatile number of objects (don't know if I'm using the right term here... I mean when you don't know how many of an object you're going to have at any one time), like bullets in a shooter. If you have a bullet class, …

Member Avatar for VernonDozier
0
129
Member Avatar for kylcrow

Hello, I have been stuck on this for awhile, and can not seem to get it to work exactly correct. I am trying to read in a file ("in_text.txt") and print out it's contents to the screen for now (eventually i will manipulate the data with a block_cipher class). Here …

Member Avatar for kylcrow
0
187
Member Avatar for blacklocist

Hi All, I am having this issue and don't really know a good way to overcome it. I have a main form. With a click of a button another form is created. For the example let's just say it has a simple text box. You type whatever you want in …

Member Avatar for blacklocist
0
184
Member Avatar for KRK

Hi, Good Afternoon to All. Need Some Help Regarding file saving on server. I am developing a Client Server Architecture using VS.NET2005 and i want to Save All files to Server only. But i am not able to get hw can i achieve this? Can anybody help me.......? Thanking You.....

Member Avatar for Ramy Mahrous
0
93
Member Avatar for woozyking

Say I have an infinite loop, and I want to start over or terminate depending on what user inputs. [CODE] while( 1 ) // start the inifite loop { printf( "Enter your number: " ); // prompt scanf( "%d", &operand1 ); // store user entered number into operand1 if ( …

Member Avatar for invisal
0
94
Member Avatar for creativehacker

Hi everyone, I want to delete uploaded files from the server. here I am not using database please check my code and suggest me any changes Del.php [CODE]<?php $jpgdir = "uploads/"; $file=$_REQUEST['file1']; echo $file; //echo $jpgdir; // Open a known directory, and proceed to read its contents if (is_dir($jpgdir)) { …

Member Avatar for nav33n
0
83
Member Avatar for gaurav2589
Member Avatar for rajaboys
Member Avatar for jonc
0
122
Member Avatar for manushetty_2005

please help us in getting information regarding working of internet browsers(in general IE or Mozilla etc).... API's involved.. we want to develop a server tool that monitors and logs the users internet activity such as sites visited, on client machines in LAN.

Member Avatar for jwenting
0
69
Member Avatar for esy928

Im creating a slot machine program and used the kbhit command to stop the reels. Right now im tryn to change how the program works instead of stoping it all at once i want the reels to stop one at a time (everytime a key is pressed one reel would …

Member Avatar for esy928
0
237
Member Avatar for ShyamalShah

Introduction Reverend Zeller developed a formula for computing the day of the week on which a given date fell or will fall. Suppose that we let a, b, c and d be integers defined as follows: a = the number of the month of the year, with March = 1, …

Member Avatar for neosomosis
0
111
Member Avatar for free2rhyme2k

Hi there I am writing a simple while loop which terminates on the condition that a certain value is found, as follows [code] std::string question = q.quest().que(); std::string answer = q.ans().answer(); std::string graphic = q.inf().info(); std::string english1; std::string english2; std::string arabic1; std::string arabic2; while((answer != english1) || (answer != english2)) …

Member Avatar for neosomosis
0
124
Member Avatar for wollacott

ok people i wrote this code myself. i just need your help so this program can accept any digits and print the decimal equivalent. i worte more than i needed too because i wasnt so sure how muchi needed. i dont think it works very well. i tried 1101 and …

Member Avatar for VernonDozier
0
140
Member Avatar for Robbieg6

Hey all, first post here and as im sure once i ask my question.. you will all know that i am very new the shell scripting. I spend all of time in php, not shell. I need to figure out a way to see if a shell varable has a …

Member Avatar for eggi
0
105
Member Avatar for IIMarckus

Hey guys, I just have a simple (?) question. What difference is there, if any, between [inlinecode]cin[/inlinecode] and [inlinecode]std::cin[/inlinecode] (for example)? If the latter is better form, why is it so?

Member Avatar for IIMarckus
0
141
Member Avatar for toko

Okay, im trying to write a simple calculator. Heres my code: [CODE=VB]Public Class Form1 Dim value1 As Double Dim value2 As Double Dim sign As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = " " Then TextBox1.Text = "1" Else TextBox1.Text = …

Member Avatar for toko
0
70
Member Avatar for wollacott

Input an integer containing only 0’s and 1’s( ie. “binary” integer) and print its decimal equivalent. {hint: use the remainder and division operators to pick off the binary numbers digits one at a time from right to left. Just as in the decimal number system, in which the right most …

Member Avatar for WaltP
0
297
Member Avatar for jimmy.rocks1

i m trying to terminate a thread when it is executing . could anyone help me how to go about this... thanks, aravind

Member Avatar for Ancient Dragon
0
132
Member Avatar for andyg55

Hello!! I have an array filled with figures stored in an input file. My program has read the input file, and filled the array with the contents. I also have a random number generator. I have made this make 2 random numbers between 0 and 1 at a time. I …

Member Avatar for VernonDozier
0
234
Member Avatar for rysin

Hey guys, recently I started playing around with pygame. Right now im making a little orb move when you hit a key. But its stuck with the image loading! [CODE]background_image_filename = 'C:\\orb\\backroundorb.jpeg' sprite_image_filename = 'C:\\orb\\orbsprite.jpeg' import pygame from pygame.locals import * from sys import exit pygame.init() screen = pygame.display.set_mode((640, 480), …

Member Avatar for rysin
0
100
Member Avatar for kxh29

Hello All! I am running AIX4.3 UNIX OS. I am developing using the C-Programming Language. I have inherited code which creates a dialog box. [code] dialog(box_height, box_width, position_x, position_y, "message")[/code] The requirement [B][I]now[/I][/B], is to place a list of say numbers in the box and grow it dynamically. Problem is, …

Member Avatar for Ancient Dragon
0
133
Member Avatar for AP1

[B]RE:Google Analitcs[/B] Hi gang, I'm new to PHP... as you will probably be able to easily recognize by my following dialog. ;-) Anyway... I am taking over a website written in PHP with dreamweaver CS3. It has a seperate footer.php file in a sub directory and I believe this makes …

Member Avatar for nav33n
0
142
Member Avatar for dreambreeze

I'm relatively new to programming in wxPython and I have been trying to put a BoxSizer within a wx.Window. This only results in a small square (which is the panel within the BoxSizer) appearing in the window. Could somebody please tell me what I'm doing wrong? Sample code: class TestPanel(wx.Frame): …

Member Avatar for vegaseat
0
97
Member Avatar for steve57

Is there a script I can put on my webpage that will create a search bar so people can type a name to match it on the current page in my website? It will be exactly like the finder search bar that comes with your browser window, IE; click edit, …

Member Avatar for serkan sendur
0
139

The End.