199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Salman_3

Problem: A salesman travels from one to another state. he may visit either n=2,3,4,5 or 6 cities of punjab. For every number of cities he may adopt different routes. Some routes will be longer and other rwill be shorter. We neeed to design a C++ Program. *TO DISPLAY EACH ROUTE …

Member Avatar for ArashVenus
0
183
Member Avatar for Patrick_3

Hello everyone, I am working on a VB project which implements a number of custom controls. So far I have had no issue with the controls I have been writing; until now. Every time I add the control to the form it appears like a normal control, however when I …

Member Avatar for tinstaafl
0
208
Member Avatar for Qazi_1

Hi guys, Tomorrow is my theory paper exam of C++ OOP and Data Strucutre. Paper will be based on 50% theory Q/A and 50% on coding implentaion. Can you give me some hints to prepare for this coming exam? PS. I have gone throw all lectures slides and course material, …

Member Avatar for mathijs
0
258
Member Avatar for Agent168

THIS IS A NO GUI TEST. GUI COMES AFTER THIS IS DONE. " i hope to learn from this so i can use it on the gui " :D i have my database : friends , table : info , values : (name ) : dragon , (address) : china …

Member Avatar for Ewald Horn
0
199
Member Avatar for STVG

i'm working on a array header from base definition of an array to create an array of any type with this header,so i created a array class with functions and constructors. this is my code so far: #include <iostream> #define newline "\n" class Arr { public: typedef float T; public: …

Member Avatar for deceptikon
0
460
Member Avatar for Fenrir()

So here's the thing and it's been quite simple up to here. I have never been required to do something like this and most tutorials are vague at best. I have a Stackpanel with numerous children. Each child then has a label and an image. These were all dynamically created …

Member Avatar for Fenrir()
0
143
Member Avatar for giancan

Dear friends, I need help understanding my error with urllib. I wrote the following code to check the availability of updates for a software I wrote try: datasource = urllib.urlopen("URL to FILE.txt") while 1: line = datasource.readline() if line == "": break if (line.find("<") > -1) : LastVersion="Error" else: LastVersion=line …

Member Avatar for snippsat
0
217
Member Avatar for kausarhusain

Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/kamsarph/public_html/index.php on line 3

Member Avatar for splink105
0
170
Member Avatar for jursnamo

#include <stdio.h> #include <stdlib.h> int buku; int jum; int total; char member; int main(int argc, char *argv[]) { printf("\n---------Tarif Peminjaman Buku-------\n"); printf("Member Rp.5000.oo,-\n"); printf("Non-Member Rp.15000.oo,-\n"); printf("Regist Member Rp.30000.00,-\n"); printf("-------------------------------------\n"); printf("Silahkan Masukan Pilihan Anda\n"); printf("Jumlah Buku : "); fflush(stdin); scanf( "%d",&jum ); printf("Apakah anda member [Y/T]"); fflush(stdin); scanf("%c",&member); if (member !='y') …

Member Avatar for Banfa
0
158
Member Avatar for nkwaga

Write a program to compute and print the number of miles a car has travelled during 2013 and compute the average litre comsumption per mile. the program shouls ask for daily number of miles, also give its output the total amount spent on petrol for the year.

Member Avatar for Paul.Esson
0
126
Member Avatar for mark.mcrae.92

I have a path I trying to hook up to marathon (an automation testing tool) to locate a folder on an SVN but I keep getting a name error here is the module code def LookUpPathPrefix(pathToFind): from marathon.playback import * inFile = open("paths.txt", "r") mountPointName = "start" while (mountPointName): mountPointName …

Member Avatar for mark.mcrae.92
0
300
Member Avatar for king03

Hi there guys I just want to know how I can create a reset button that will erase all the contents written by a user in textboxes? I am creating an Enrollment Form for Students and I need some help about it. I have attached a screenshot for you guys …

Member Avatar for brite_a
0
8K
Member Avatar for Vish0203

Hello everyone! I got this question in a book.. I thought of doing it using map() or using loops return the first count multiples of number in desc order in a list. e.g call with input (3,2) returns [6,3] call with input(5,3) returns [15,10, 5] but the hint along with …

Member Avatar for rrashkin
0
244
Member Avatar for jacob21

Hi, I have a table: user uid status 1 1 2 1 3 1 4 2 5 2 6 1 7 2 8 1 9 3 10 2 I am trying to fetch data for below logic: 1) fetch top 6 rows having status=1 2) if status=1 has less then …

Member Avatar for pritaeas
0
214
Member Avatar for Lethugs

Hi Is there a way a vb form structure the same as its backgroud picture? Its same with making the form invisible and let its background picture remain Im trying to make a program that when it runs, it displays like widget. thanks

Member Avatar for Deep Modi
0
264
Member Avatar for tadejbo

Hy there! I am a student in my final years of collage, where i studied computer science. I consider myself a good programmer, and i enjoy coding in C++. But for my thesis I decided to write an application for a tablet like Nexus 7 and others that have Android …

Member Avatar for Rick_Daniels
0
253
Member Avatar for learncoding

I have a vector personInfo that contains class objects of person details vector<person> personInfo; I am trying to use std::find to search for a existing name in the vector. I overloaded my == operator. person.h class person { public: std::string name; friend bool operator==(const person &lhs, const person &rhs); }; …

Member Avatar for Paul.Esson
0
570
Member Avatar for ebanbury

Hi My forgotpass.php function used to work. Suddenly it only works up until you get the message: 'An email has been sent to you with instructions on how to reset your password. <strong>(Mail will not send unless you have an smtp server running locally.)' However no email is sent. It …

Member Avatar for ebanbury
0
483
Member Avatar for marifard

Dear, I have two database connection files. It is possible to use them to connect with two database instead of one only? this code shown below is the coding of one of them to connect with the particular database. The other file is used for username and password of the …

Member Avatar for pritaeas
0
127
Member Avatar for Mkaveli

Hi im building a JavaFX project and am using JavaFX Scene Builder 2. I wanted to link my controller to my fxml file but i can't see the possibility to add a controller to my fxml file in Scene Builder 2. I was wondering if someone could help me out. …

Member Avatar for JamesCherrill
0
204
Member Avatar for missy_mi

Hello.. good day evryone, i encounter a problem with my save as form..i use savefiledialog..the result is that the page is saved..but when i open the word doc, it is empty..there is no data whatsoever.. i dont use database..it is suppose to save the the data that i filled in …

Member Avatar for missy_mi
0
478
Member Avatar for Gulzar_1

I have project of vb.net when i make setup and run in my machine it works perfectly but when i run that setup in another machine it is giving "System.Runtime.InteropServices.COMException (0x80040154) HRESULT-class not registered" error..I have to give this project to client...please help

Member Avatar for Minimalist
0
612
Member Avatar for ZixCo

Hi! I'm making an app and I need to know how to set position of strings in java. Here is a code: import java.awt.*; import javax.swing.*; public class Draw extends JFrame{ JPanel panel; JLabel string; public Draw(){ super("CO-LERNER"); setSize(300,150); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); setLocationRelativeTo(null); string = new JLabel("Example"); panel.add(string); add(panel); } }

Member Avatar for JamesCherrill
0
213
Member Avatar for CJMW

So, Im making a game in c# using Xna. I have a function that will read a text file and display a map on screen, using numbers in the file as texture references. The file is a integer multidimensional array. I have another file which is used to set collision …

Member Avatar for CJMW
0
502
Member Avatar for elanorejoseph

Hi, i have script ,and i want to useit inside iframe ,does any one know how. for eg:<i frame src=""></iframe> is the normal way to use iframe. i wantto know cani use a script inside iframe.

Member Avatar for nauticalmac
0
221
Member Avatar for karaman1

Hello guys,i have some issues uploading a task 10152(shellsort) in the online judge website. The code works fine,i get the results you need to get on my computer,but when i try to upload it on the site it tells me that i have an error. this is the code: #include …

Member Avatar for Meron Aragaw
0
123
Member Avatar for Mr.M

Hi Dw I'm working on a program which has many forms and these forms are for setting the functionality of this program so now I want to detect if, let say Shift+F is pressed then the appropriate form will show. I don't want to use the Form_KeyPress or KeyDown or …

Member Avatar for Mr.M
0
318
Member Avatar for suavedesign

I made a jquery popup box, and I am having trouble getting the background of the page to darken when the windw pops up. The url to the page is http://rejuvenateusa.org/endorsements.html. Heres the code I am using: html: <div class="cover"></div> <div class="popup"> <div class="close"><img src="images/test_eherenfeldbig.jpg" /><button>close</button></div> </div> <div class="letters"> <div …

Member Avatar for suavedesign
0
7K
Member Avatar for sagisgirl

Hi everyone..I have a problem.. I want to make an auto calculation on each row..the things is, I only can do it on the first row..but for the second row, nothing happened.. here is my code: <script> function compute() { var inputObj = document.getElementById('k8goodsQty'); var otherObj = document.getElementById('valuePerUnit'); var diffObj …

Member Avatar for JorgeM
0
2K
Member Avatar for soujanya.bhat.184

Hi. I am learning Java and now stuck in the exceptions chapter. I wrote a code to understand exception. But i am not getting why there is an error saying "Unreachable catch block".Please help me out here. Code is as shown. public class GetException { static int i; public static …

Member Avatar for soujanya.bhat.184
0
131
Member Avatar for Lp_baez

I am looking for a noob friendly C++ IDE for mac computers. I'm looking something similar to microsoft visual studio. I have tried xcode, but it appears to be missing some of the basic cpp. and h. files like stdafx.

Member Avatar for mike_2000_17
0
443
Member Avatar for kumar89hitesh

how to send email from form in php? i used the code mail(); function of php but did not successfull. i also configure php.ini and send mail files but did not get success. Please give me suitable examples with all configure file in php.

Member Avatar for coreyavis
0
211
Member Avatar for twiggy145

I'm trying to create a dropdown list in a HTML form populated by results for a mysql query. However it is not loading and i am just given a white screen. $query = mysql_query("SELECT eventName from sgt")or die(mysql_error()); while($row = mysql_fetch_array($query)) { echo "<option value=\"$row['eventName']\">" $row['eventName']"</option>"; } Any help would …

Member Avatar for twiggy145
0
927
Member Avatar for np complete

I need to extract a certain string from a webpage and workon it. In the website it is given like this : `Decrypt the following random string: O2tsOGJeLj0saj07ODM1IQ==` I need only the base64 encoded part, but I can't think of any way. I tried using `substr()` and `strstr()` but I …

Member Avatar for diafol
0
142
Member Avatar for beforetheyknew

I'm basically wanting to design a java questionaire gui (not on java) basically just a program that holds a bunch of questions and the corresponding correct answers. So the question i would imagine i would make appear on the label and then having four possible answers a b c and …

Member Avatar for stultuske
0
823
Member Avatar for twiggy145

I have this project where i have to create an events website using a mysql database and php. I'm having some toruble with some code that will allow users that change their password. I know it's a problem with the mysql syntax in my query but i can't figure out …

Member Avatar for twiggy145
0
269
Member Avatar for tony75

Hi I would like display visitor ip address and location on my website and save it in ip.txt file in my webserver. How can I do it? <?php $ip=$_SERVER['REMOTE_ADDR']; $file = fopen('ip.txt','w'); fwrite($file,$ip); echo "Your IP Address is $ip"; ?> //When I run in my xampp localhost I got like …

Member Avatar for tony75
0
1K
Member Avatar for TechxRay

Greets to all! I have 2 user defined controls. 1 is the main, the other is the control that contains all the radio buttons. One of the criteria is to have a clear button in the main control to select the 0 radio button that clears all the text fields …

Member Avatar for NeilR
0
584
Member Avatar for mcoliver88

Hi I have to create an sql database for work, for my students to work with. I have created a large portion of the program, but i am stuck on the searching of data. So searching for a person or department. Not sure how to do it, here is my …

Member Avatar for Cameronsmith63
0
260
Member Avatar for mixelplik

I was writing a program that opens a file assigns each element to an array. I was wondering if anyone had suggestions on how to get the number of items in a file, without knowing before hand. I was usuing this: int main() { ifstream inputFile; inputFile.open("P6.txt"); int index = …

Member Avatar for Ancient Dragon
0
367
Member Avatar for jjtheflash

I am not a programmer, nor do I pretend to be. I have slowly been taking in advice from videos I have been looking at through youtube to help with my advancement of knowledge in C#. I was looking for a way to combine a list box item to a …

Member Avatar for Cameronsmith63
0
200
Member Avatar for Mike Askew

I've been toying with some code for the last thirty mins to try move a substring from one cell to another. In debug I can see the correct contents being picked up and moved to the new cell and even got a save prompt popup when running over line 31. …

Member Avatar for Mike Askew
0
478
Member Avatar for learncoding

Ihave a vector that contains monthyear Jan2013 Jan2013 Jan2013 Jan2014 Jan2014 Jan2014 Jan2014 Feb2014 Feb2014 Basically what I want to do is to search through the vector, for every same record, group them together like e.g total count for Jan2013 = 3; total count for Jan2014 = 4; total count …

Member Avatar for NathanOliver
0
168
Member Avatar for ZixCo

Hi! I need a bit of help here. I started a new project and i need to know how to set position of JLabels(strings). Can I just set pixels or use Int x = 300, Int Y = 400?? I realy need help. I will be thankful for all the …

Member Avatar for ZixCo
0
417
Member Avatar for Cameronsmith63

Hi, I kind of hit a bump in the road with SQL and C#. I am sending information through to a stored proc like: SqlCommand TestCaseManager = new SqlCommand("TestCaseManager", thisConnection); TestCaseManager.CommandType = CommandType.StoredProcedure; TestCaseManager.Parameters.Add(new SqlParameter("@TestCaseName", TestCaseName)); if (c.Controls[2].Text.Equals(string.Empty)) {TestCaseManager.Parameters.Add(new SqlParameter("@Steps", DBNull.Value));} else {TestCaseManager.Parameters.Add(new SqlParameter("@Steps", c.Controls[2].Text));} if (UnitTester.GroupBoxCreator.SomeClass.PictureLocation.Count.Equals(0)) {TestCaseManager.Parameters.Add(new SqlParameter("@Img", DBNull.Value));} …

Member Avatar for Cameronsmith63
0
211
Member Avatar for Eric_8

Hi, I'm newbie in Python Programming. I created the below code. I want to optimize it, but dont know where to start. I am sure, I can do the same with less lines of code. Please advise on best practices and ways on how to optimize it. import math def …

Member Avatar for Eric_8
0
381
Member Avatar for rpro2

How would I go about editing this code for displaying a random post from a category for 24 hours, then switching to another random post? This would be to show a Tip of the Day. if ( ! function_exists( 'cb_breaking_news' ) ) { function cb_breaking_news(){ $cb_breaking_filter = ot_get_option('cb_breaking_news_filter', NULL); if …

Member Avatar for cereal
0
359
Member Avatar for M.Waqas Aslam

Hello All! I want to create my own proxy site. I googled alot and I find not a single solution in .net to do this. Everyone is using php for it. I am very new to php so i dont know how to use it. here is the code i …

Member Avatar for M.Waqas Aslam
0
297
Member Avatar for Lisa3103

For this assignment, you must develop a program which will merge the contents of two lists, removing duplicates. You must: • develop the pseudocode • desk-check • test the program to ensure that it works for appropriate sets of data Your list merge program should be a simple program which …

Member Avatar for Lisa3103
0
162
Member Avatar for 26bm

Hi, I am wondering if there is any easy way to up the frame rate of a pygame program. For example locking the frame rate? I don't know. Thanks in advance! 26BM

Member Avatar for 26bm
0
248

The End.