199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tosh123

hello. i have a set of 50 points. (array of 50 objects (arrayOfNodes[]) having x, y locations and distance and nearest neighbor and neighbor table ). The points are given X-Y location randomly in a range of 300 X300. and there is a center point called BaseStaion (BS). For every …

Member Avatar for tosh123
0
153
Member Avatar for Yogesh Sharma

Is Debug Window same as Code Window?? Code window--where we write the code. Debug window--????

Member Avatar for cometburn
0
93
Member Avatar for strictlycustom

I'm trying to write a program that asks the user their hours and returns it to the main program, and then their rate of pay and returns it to the main program. I can't run the program because it is saying there is a problem with this part of my …

Member Avatar for strictlycustom
0
932
Member Avatar for Trckst3

Hey I'm trying to get this code going but i can't get my if(choice==2) to output anything any ideas? #include <iostream> #include <iomanip> #include <algorithm> using namespace std; int main() { int i,num[20],n,j,choice,tmp; cout<< "Please enter 20 integers"; for (i=0; i<20; i++) { cout<<"\nEnter next value:"; cin>>num[i]; } cout<<"\n1.Display original …

Member Avatar for Trckst3
0
81
Member Avatar for Trckst3

Hey guys i'm working with this code but i can't get it to stop looping back into the menu any ideas??? Thanks !! [CODE=cplusplus] #include <iostream> using namespace std; unsigned int menu(); int main() { int i,num[20],sec[20],j,choice; cout<< "Please enter 20 integers"; for (i=0; i<20; i++) { cout<<"\nEnter next value:"; …

Member Avatar for Ancient Dragon
0
100
Member Avatar for daviddoria

I have a class called MyClass in main, I have [code] MyClass A; //calls the default constructor A.date = 4; [/code] I would like a function to do some stuff and then use one of A's constructors , the result being I have A back in main [code] class MyClass …

Member Avatar for dougy83
0
162
Member Avatar for sonia sardana

Hi, I m new to the VB. Can u pls tell me how to change the backColor Of CommandButton I try, [COLOR="Red"]command1.backcolor=blue[/COLOR]

Member Avatar for Jx_Man
0
114
Member Avatar for TheBeast32

Hi, I have a question: What is the mysterious beep on a console program? I made a program that reads a *.exe file then displays it on the screen. I got a massive amount of beeps! Another example of a mysterious beep is: Open Command Prompt, Press Ctrl+G, then hit …

Member Avatar for TheBeast32
0
68
Member Avatar for jobob64

MMmmmmk so what i am trying to do is simply throw a the ERROR object from the Array<T>::operator[] and catch it in main take a took... it prints out the equivalent of an empty space in memory. [code] //error.h class ERROR { public: ERROR(char * Incomming) { m_message = new …

Member Avatar for jobob64
0
125
Member Avatar for niladri.user

pls help me!! why this code is not executing?also send me the exact code to fetch a table from a database in a table format in a web page!!!!! [code=php]<?php $con=mysql_connect("localhost","root",""); mysql_select_db("niladri",$con); $sql="SELECT * FROM `category` "; $res==mysql_query($sql); while($row==mysql_fetch_array($res)); { echo $row['cat_id']; echo $row['cat_name']; } ?>[/code] :'( :?: :icon_cry:

Member Avatar for niladri.user
0
75
Member Avatar for TheBeast32

Hi, I made a simple program that copies files. I tried to copy an exe file, but after I tried to run the copied version, it doesn't work properly. Please help:?: Here's the code for the test file to copy: [code=C++] #include <iostream> int main() { std::cout << "Hello!"; std::cin.get(); …

Member Avatar for TheBeast32
0
177
Member Avatar for Skeezo

hello, I am trying to pass the array songID[numSongs] to the function playRandomSong. What am i doing wrong? The compiler is telling me "error C2660: 'playRandomSong' : function does not take 1 arguments" [CODE=C++]#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <cstdlib> using namespace std; const int numSongs = …

Member Avatar for Skeezo
0
314
Member Avatar for lolodede

Write a C++ program that reads from keyboard 3 words, with proper input prompt. Then for these 3 words that were read, the program displays first the word of the longest length, then the word of the shortest length, and finally the remaining last word. You may assume that these …

Member Avatar for ivailosp
0
252
Member Avatar for drastic

i made a form with 2 input buttons(for taking number inputs) and 4 radio buttons(add sub mul and divide) and one submit button(calculate) to make a simple calculator and wrote a php script which takes input values and and according to the button selected do the operation but when i …

Member Avatar for drastic
0
301
Member Avatar for namsSoftee

Hi Frndz , Suppose i am copying a project from one system to another system, Its enough to copy the project folder and place it ah ? Any other additions i need to make in the destinatioin system ? i mean copying a web application developed using asp.net in vb.net. …

Member Avatar for Hosam Kamel
0
98
Member Avatar for scottmichael

I am new to .net and want to create a search field that querries my SQL database then display results sort of like google. Meaning query all fields for %Like% statements. I am using Visual Studio 2005.

Member Avatar for Hosam Kamel
0
85
Member Avatar for dkerr

Can I query a SQL Server 2000 mydatabase.mdf file directly via SQL? If so, how?

Member Avatar for dkerr
0
154
Member Avatar for priyamsc

hi, In my internet explorer the onclick =window .close() is working in my home(i have used html control instead of asp control).. but in my office its not working because here we r using mozilla firefox...but here too its working in internet explorer..but i need to show this in mozilla …

Member Avatar for Hosam Kamel
0
136
Member Avatar for rdaptl
Member Avatar for Hosam Kamel
0
83
Member Avatar for psspl

hi all, i am developing a content management system in asp.net with C#. i have a master page named "Master1.master" with 5 content place holders-"cphHeader, cphLeft,cphCenter,cphright,cphbottom". i have another default.aspx page which is inherited from the "Master1.master". it takes as input,the following fields from the user : 1. text to …

Member Avatar for Hosam Kamel
0
454
Member Avatar for dskumar_85

hai ...... how to enter the specified (company e-mail id) in a textbox and restrict the other e-mail id's like gmail , yahoo .rediff etc ... by using asp.net 2005 ...

Member Avatar for Hosam Kamel
0
82
Member Avatar for jiah

Hi guys! I'm beginner on the scene and I'm trying to make an ascii maze game. I have managed out how to get the character to move and how to make a goal where to go. But now I have faced a problem...the walls. I'm not sure how should I …

Member Avatar for TMD
0
509
Member Avatar for nathanpacker

Wasn't sure whether to put this in java or php, so I'm putting it here. I have a bit of java that opens a php page in a popup window, using this code: [CODE=java]<a href="javascript: void(0) "onclick="window.open ('my_form.php','linkname','height=465, width=400, left=550, top=150, scrollbars=no')">Click Here</a>[/CODE] So that code opens up "my_form.php" in …

Member Avatar for effu
0
318
Member Avatar for blue_misfit

Hi folks! This is my first python script! It will be executed within AvsP, which is an application for writing AviSynth scripts. It provides a full Python interface, for macros and other operations. Here's the code I have now: [code] # batchCreateD2Vs # by Derek Prestegard # Last Modified 4/3/08 …

Member Avatar for woooee
0
149
Member Avatar for justinmyoung

I've searched through the forum, but I couldn't find an answer. How do you display a result within HTML? Such as: [CODE=php]$query = "SELECT * FROM customers WHERE job_number='$jobnumber'"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)){ echo $row['first_name']; echo $row['last_name'];[/CODE] Thanks in advance.

Member Avatar for effu
0
1K
Member Avatar for roachic

Hi everyone. I was wondering what is the best way to check if a text file is empty? When I read from a text file: file.Open(path, CFile::modeRead); And then try to access it: file.ReadString(line) I get an error.. I have tried if 'file.end' but file.end returns true every time so …

Member Avatar for roachic
0
158
Member Avatar for deepakraj

how image verification done by javascript during registration process or login thanks and regards deepak

Member Avatar for hacker9801
0
106
Member Avatar for bbradley

I'll make it blunt of what I can't seem to get my head round. I have two edit boxs, values in both, and I want the value in editbox1 to be added to the value in editbox2. And then the value appear in editbox2. If you can think of a …

Member Avatar for jsosnowski
0
201
Member Avatar for oneguy

Any hints in converting this C++ code to java [url]http://pastebin.com/f2db2b32e[/url] I have pretty good idea what is going on in main () , but I not sure about the top template part and the class called Moron :) The program just reads a text file counts up the frequency of …

Member Avatar for Ezzaral
0
109
Member Avatar for lostandfound

This question is driving me batty!! I am currently teaching myself and enjoying the results of VB6. However, whenever I ask a colleague anything regarding VB the first reply is always the question "Are you using .NET?" and after the answer "No, I use VB6!" they reply with "Ooooh, you …

Member Avatar for lostandfound
0
190
Member Avatar for Arne Kristoffer

Hello! I have a string which may look like this: (arne kristoffer)(1231232)(12.12.12)(asdasdf 12) This is just an silly example, but never mind. THe point is that i need to seperate the contents of the string into a string vector. This is my code (which of course doesn't work, if it …

Member Avatar for Lerner
0
149
Member Avatar for zorgoban

Hi all! Im using a ComboBox and a DataGridView in a Form and use the same DataSet-Table for both. Unfortunately they automatically synchronice their current selection now. When I select a row in the grid for editing, the ComboBox gets automatically switched. How can I avoid this absolutely unwanted behaviour? …

Member Avatar for Ramy Mahrous
0
110
Member Avatar for dav555

Does somebody know a better tool as the "Resource Bundle Manager" for managing translations/resources ? [URL="http://www.icu-project.org/repos/icu/tools/trunk/unicodetools/com/ibm/rbm/docs/index.html"]http://www.icu-project.org/repos/icu/tools/trunk/unicodetools/com/ibm/rbm/docs/index.html[/URL] Thank you!

Member Avatar for jwenting
0
95
Member Avatar for debee

Hello there, I am trying to build a square matrix of the type Double, with the following code: for( i = 0; i < weightVector.length; i++) for( j =0; j< weightVector.length; j++) { weightMatrix[i][j]= weightVector[i]* weightVector[j]; if(i==j) weightMatrix[i][i] += 0.0001; } The problem is each time the vector "weightVector" has …

Member Avatar for debee
0
87
Member Avatar for wollacott

can anyone help me make my program work. after it capitalize i want it to reverse the new string. something like palindrome. [CODE] #include<stdio.h> #include<ctype.h> #include<string.h> /*program begins here*/ int main() { /**/ char string[100]; char *ptr = string; /*shws the user what to do*/ printf("Enter string and use a …

Member Avatar for jephthah
0
148
Member Avatar for brianvolkmann

[code=cplusplus] #include<stdlib.h> #include<stdio.h> #include<conio.h> #include<string.h> #define ff fflush(stdin); void main() { int r; char str1[10], str2[10]; clrscr(); printf("Enter password:\n"); gets(str1); ff; printf("Re-enter password:\n"); gets (str2); ff; r=strcmp(str1, str2); if(r==0) { printf("Enter"); } else { printf("Exit"); } getch(); } [/code]

Member Avatar for Nick Evan
0
153
Member Avatar for charlie81

This is what my lab says to do Start Main( ) or btnRun_Click( ) Create a RaceCar object Set the car name to “Fast One” Set the x coordinate to 200 Set the y coordinate to 100 Call the car’s Move( ) method and show the resulting message Display a …

Member Avatar for Ramy Mahrous
0
261
Member Avatar for Jennifer84

Here I am putting 2 Number into a std::vector<double> and sort these numbers like this. When putting Number1 and Number2 wich are declared variables into the vector, the Number 5 and 10 are put into the vector. If I after the sort write this: Numbers[0], this will give me the …

Member Avatar for Jennifer84
0
259
Member Avatar for SandraC

Hi all! I have two functions, one which calls the other (here simplified) that are part of an autocomplete process. The scripts run without error, however the part I am posting here returns "undefined" for one of my variables. The alert in the function findValue() returns the correct "thisID" in …

Member Avatar for SandraC
0
146
Member Avatar for jgritty

I'm sure this is stupidly simple, but I am trying to add words to two different dictionary files I have created. I think my problem is here: [code=python] myDict = Dictionary.Dictionary() myDict2 = Dictionary.Dictionary() [/code] Because when I write out the files, it writes the same thing to both files, …

Member Avatar for jgritty
0
305
Member Avatar for CoolGamer48

[CODE] ResourceManager(void (*CreateResourceFunction) (Type** resource, char* name, char* path) = NULL) { m_list = new LinkedList<Type>; CreateResource = CreateResourceFunction; }[/CODE] hey - this is code for a contructer for a class (taking the code from a book I bought). What exactly is the parameter of the function? Is the parameter …

Member Avatar for Salem
0
93
Member Avatar for raajji
Member Avatar for Jahed

Hello everyone, i need some help with my project. I wish retrieve data from a database onto a combo box on a VB form. I can add data on one form which is stored on the database however i need the same data to be updated on a combo box …

Member Avatar for Jahed
0
127
Member Avatar for ITech

my problem is that i have a search form for customers ,i want to use msh flex grid to show the results of search, i am searching for a customer which are stored in a database. suppose i want to update some information of a specific customer listed in msh …

Member Avatar for Jx_Man
0
614
Member Avatar for roachic

I want to read a file which is in the same folder as my program. What is the notation to get the current folder? I tried '.' but it doesn't work.

Member Avatar for roachic
0
97
Member Avatar for Trckst3

Hi guys I'm new here and basically new to programming. Unfortuanetly i'm probably gonna be quite annoying to you just because you guys know what you're doing and I'm like the little slow train that's trying to catch up. Though hopefully you'll help... Here's my situation I'm supposed to write …

Member Avatar for ivailosp
0
100
Member Avatar for Beginner2008

How do i make my program work for 5 times and then Expire and will never work again ? In which i'll have to rebuild a new one using VB so that it will work for another 5 times more.The approach i used is as follows. I created a text …

Member Avatar for bwkeller
0
117
Member Avatar for ninjajake

I am using dr. scheme and I need to retrieve the 2nd item in a list. is there a function like car that returns the second one instead of the first one?

Member Avatar for azimuth0
0
115
Member Avatar for sandip250382

Hi, friends this is my first post here. Well, I want to learn C# from home. For this I need all your help.Can any one kindly suggest any easy e-book , I have little concept about OOP's earlier? Thanks in advance. Hoping for a pleasant stay here.

Member Avatar for sandip250382
0
82
Member Avatar for kiwihaha

This program is a simple bejewel game... i need to enter the matrix pos[alpabet][number]...eg(a1 or b7) so if i error input for example: 11 (cout error) this can work aa (cout error) but this will infinite loop... please help me... besides some one can tell me what can i do …

Member Avatar for Ancient Dragon
0
99

The End.