199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anwatts

I am creating a program that has multiple classes. The program draws various shapes on a gui and the program needs to be modified to incorperate a highlighting function if a shape is clicked on. I have done the coding but it is not drawing the circle and I am …

Member Avatar for JamesCherrill
0
214
Member Avatar for ThirdChaosSaint

I want to make a bot (not a chatting bot), to open and use programs on my computer, to tell it to open/close and use a program. Kind of making my computer use its self with me not being there. and if possible to be able to send commands from …

Member Avatar for 716151
0
2K
Member Avatar for kumar0559
Member Avatar for lakn.comnsense

I have a RTF textbox that contains multiline text. I would like to extract the text only from this box to put in an e-mail. I know that RTFBox.Text will return the plain text but it seems that it strips out the CRLF's as well and I need to keep …

Member Avatar for Reverend Jim
0
133
Member Avatar for xianamersu

I'm trying to make a video store program that allows customers to search for videos and either buy or rent them. I have already made a class with 3 subclasses, VHS, DVD and VCD. for the meantime,When video objects are first put into the store, the status should be “IN”. …

0
77
Member Avatar for Twilitbeing

(I'm a Computer Science 101 student writing programs in C on a virtual Linux machine.) Suppose I wanted to apply a single (arbitrary) function to every element of an array, one at a time. Doing this once is easy enough, but I'd like to find a method that could accomplish …

Member Avatar for dmanw100
0
270
Member Avatar for daino

How do I set the CMAKE_INCLUDE_PATH? Also... How to I set the CMAKE_LIBRARY_PATH? All i know about CMAKE is that is is a GUI with very limited options. Where do I put these variables and why do I set them? How do I set them? Thanks

Member Avatar for daino
0
11K
Member Avatar for ThomsonGB

I have been using the Jove editor by Jonathan Payne for many years. If You are not familiar with Jove - Jove stands for Jonathans own version of EMACS. I love using it. In the 80s I had my own version of jove with a lot of my own personal …

Member Avatar for ThomsonGB
0
345
Member Avatar for shirani21

hello following is my code to add data to database from selecting checkbox bt its not working can u plz help me???? suggest ny changes asap thnks in advance <?php mysql_connect("localhost","root","")or die(mysql_error()); //echo"connection with mysql"; mysql_select_db("cater") or die(mysql_error()); //echo"database cater connected"; foreach ($_POST['check'] as $k=>$c) $query="select * from wed_sweets"; $result=mysql_query($query) …

Member Avatar for ratanji
0
923
Member Avatar for tedy.jd

I was doing xaml with vb coding in vb 2010 I create a datagrid and linked itemssource with table adapter, and also I modify a columns to checkbox datagrid columns. Problem now is I checked the checkbox value in the columns in datagrid but through button check the data grid …

Member Avatar for tedy.jd
0
300
Member Avatar for saamsonn

I'm trying to write a code to take an image as argv[1] and save it in a new file "argv[2]" with the image flipped upside down, but my output does not open with any image viewer here's my full code. some one help me out please #include <stdio.h> #include <string.h> …

Member Avatar for BobS0327
0
3K
Member Avatar for mbhanley

Does anyone know a better way of getting this code to execute the mysql queries. I am trying to Insert table records to a new table then update it. so I need to call the table cms_homecontent first then insert those values to the new table cms_homecontent_versions and also ignore …

Member Avatar for mbhanley
0
241
Member Avatar for Hopp3r

Ok, so I've recently been learning to code in c++, but I'm getting a little confused on how you read files to functions. For instance, say that I have one file with a list of other files in it. The information within the second set of files (each file) contains …

Member Avatar for triumphost
0
3K
Member Avatar for pepsi123

I'm struggling with C++, especially when it's about sorted list. Do they work like arrays? This is what I'm trying to do: 1. Student applicants will now be stored in a link-based sorted list. 2. Student applicants will be organized into two lists: one for female applicants, and one for …

Member Avatar for Lerner
0
157
Member Avatar for MattyRobot

i have spent some time trying to install glut in code blocks and so far I haven't succeeded. i have downloaded the glut-3.7.6-bin [URL="http://www.xmission.com/~nate/glut.html"]from here[/URL] . I have looked at tutorials on where to put the files in the download ([URL="http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/#win"]like here[/URL]) but it doesn't work. :icon_question::icon_question::icon_question:

Member Avatar for Mallot
0
293
Member Avatar for rosstafarian

Hi guys, Im going to properly learn PHP by doing a little project that ive made up. I know the basics of PHP but i havent really done much of it. I need to know how to go about doing what im going to outline below. Please note, i dont …

Member Avatar for rosstafarian
0
1K
Member Avatar for sbarton91

Just a quick question for all of you, I have no prior programming experience, but I'd like to develop a very very simple game for a creativity class I'm taking. I was wondering what language would be the easiest (or quickest) to start with and where I could go to …

Member Avatar for sbarton91
0
99
Member Avatar for Elixir42

I have searched on the internet for a 'working' double to char* does anyone have any idea? I need to pass the string to a function that takes a char* as an argument.

Member Avatar for Elixir42
0
3K
Member Avatar for Violet_82

Hi I have run into a issue recently. I am working on a website that involves quite a bit of scrolling: basically, there is a fixed position menu with some anchor links. when you click on an anchor links the page automatically scrolls down to the desired position. All good …

Member Avatar for Violet_82
0
431
Member Avatar for jcmoney1010

I'm trying to search a string array of names and return an integer to the main depending on if the search was successful or not. for example if the user entered name didn't exist it would return -1 and I can tell the user the name is not listed, but …

Member Avatar for Adak
0
181
Member Avatar for simplypixie

I am baffled, I have the following query which should return 4 records but for some reason it is counting 8 records and returning each row twice. I know I could use distinct, but as I also know that there are no duplicate records in this table I don't want …

Member Avatar for simplypixie
0
135
Member Avatar for kikechithomas

HI, I AM THOMAS. I AM IN A COMPUTER PROGRAMMING CLASS AND HAVE BEEN GIVEN AN ASSIGNMENT. I HAVE TRIED TO FIGURE IT OUT FOR A WEEK WITH NO SUCCESS, READ DIFFERENT BOOKS AND VISITED VARIOUS WEBSITES IN VAIN.I HOPE I LANDED THE RIGHT PLATFORM TO HELP ME OUT. THE …

Member Avatar for Lucaci Andrew
0
145
Member Avatar for steveaustin

how i do this problem, i dont understand this problem plz everyone can help me Write a grading program for a class with the following grading policies: a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, …

Member Avatar for dagurr
0
708
Member Avatar for MasterHacker110

I am trying to make a program that will check the remaining number of an item left in stock and that will, if someone buys it, subtract the amount of the item bought and then re-write it into the database... (Something like what they use in some stores) How do …

Member Avatar for Lucaci Andrew
0
418
Member Avatar for cssweb

hello how are you today i have a problem with cache when i visit my site i saw the old topic of my site until i hit ctl+f5 to update the page so how ca i solve this problem is there any way to prevent browser store cache i have …

Member Avatar for LastMitch
0
545
Member Avatar for sgeep

Hey guys, I've been working on a project recently. It's pretty simple and a few friends helped me out with it, but I wanna try to improve it a little bit. I'm trying to add a sound file whenever a player wins/loses. Being brand new to Pygame, I'm not completely …

Member Avatar for vegaseat
0
328
Member Avatar for pratik65

i want to initialize my id column of my databse tables by 1 again when i empty the table..i tried this code but it is not working.. Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick 02 Dim i As Integer 03 04 i = DataGridView1.CurrentRow.Index 05 …

Member Avatar for pratik65
0
326
Member Avatar for ranam

I want to know how exactly to add the button at the top of the search to note as the search criteria is for example asc to desc or vise versa ![kk[](/attachments/large/1/kk[.JPG "kk[") that is here i need a icon beside the colors to show me when i search weather …

Member Avatar for ranam
0
162
Member Avatar for technoknol

Friends, I have website with wordpress in which i have added plugin for forwarding mail this contains link like below. mailto:?subject=Welcome to my site&body=Check out this post: http://www.mywebsite.com/post-name/ In this "welcome to my site" is title and "Check out this post: http://www.mywebsite.com/post-name/" is body with page link but i want …

Member Avatar for technoknol
0
149
Member Avatar for jcmoney1010

I'm writing a program that is supposed to take in a list of names from the user, store them in an array, and then search through the list to check and see if the next name the user enters is part of the original list of names. The issue I'm …

Member Avatar for jcmoney1010
0
164
Member Avatar for acerious

This is what i have so far guys, //LAB 6 #include <iostream> #include <cmath> using namespace std; double getSides () { double sideA, sideB, sideC; cout << "Enter three sides: " << endl; cin >> sideA >> sideB >> sideC; } bool formTriTest (double sideA, double sideB, double sideC) { …

Member Avatar for NathanOliver
0
209
Member Avatar for m20072

Hello, i have got no expereince at all with c++.. im just adding something to the source of my private server and i failed to do so because of the fact that it wasn't a tutorial on how to add it (just a release) so here is the error: error …

Member Avatar for m20072
0
673
Member Avatar for themaj

I am trying to insert new records into an Access DB and getting some weird stuff. I get the data from a DBF table and load that into a dataset table and DataGridView with no problems. Then I loop through the ds.table and insert it into the DB with this …

Member Avatar for Reverend Jim
0
206
Member Avatar for Cronicle8

Hello, I'm building this app, which requires a Camera, but it is not working, it doesn't show anything except the design, here's teh code: Camera c = null; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.qrreaderscreen); SurfaceView v = (SurfaceView) findViewById(R.id.v); SurfaceHolder surface_holder = null; v = new SurfaceView(getApplicationContext()); if (surface_holder …

Member Avatar for Cronicle8
0
305
Member Avatar for Riteman

I am developing a software that creates controls during runtime. I have used panels to place those controls. I use LABEL and a CHECKBOX to be created in runtime as sepecified by the user. They align one over the other as the checkbox over the label. [This is to allow …

Member Avatar for Riteman
0
109
Member Avatar for ymdeek

I need a way to return the maximum value of five numbers This is the explanation •function -- identify the maximum value of the five integers ◦function name: maxValue ◦function parameters: five integers, pass-by-value ◦function return: the maximum value of the five integers, as an integer This is what I …

Member Avatar for nndung179
0
229
Member Avatar for chipbu

Hi guys, here I have a code snippet that I tried to run for 2 days without any result. There is something wrong with fread function. When debugging, it doesn't read all the file that I need Here is the link to the file http://www.math.umbc.edu/~rouben/2003-09-math625/images/reese_witherspoon.pgm In main: #include <stdio.h> #include …

Member Avatar for BobS0327
0
274
Member Avatar for weblover

Hi, I'm trying to apply a linear regressipn function to my numpy array and then store the results in a new array. But i have 2 things that are not working for me. def regressioncal(valarray): new_col = [] linregres valarray = numpy.array(valarray) l=20000 for t in xrange(1,5000,10): for j in …

Member Avatar for weblover
0
298
Member Avatar for Octet

I am trying to validate a form for my website, at the moment the problem is it shall skip over the JavaScript bit entirely and go straight to the PHP side of it. This is my HTML Form: <form name = "Contact" action = "/PHP/UserActions/Contact.php" onsubmit = "return validateForm()" method …

Member Avatar for Octet
0
298
Member Avatar for sanjeewa.abeywardana

I have downloaded code library from http://jqueryui.com/download related to datetimepicker control to add to a text box in asp .NET web page (Without master page) , and it is working fine (ie. themes are also displayed fine ,as EXPECTED colors) But need to know the **correct sequence of calling the …

Member Avatar for JorgeM
0
418
Member Avatar for sobias

Hi guys, Finally I've registered after being a very long visitor for this awesome community. I have this problem which consumed 2 days of my time trying to figure out how to solve it. And your help is needed guys. The problem says: Transfer elemenents from Stack1 to Stack2 , …

Member Avatar for Taywin
0
8K
Member Avatar for prahesh

Example: #include<iostream> using namespace std; enum e_UserName { planet1, planet2, planet3, planet4, planet5, planet6, planet7 }; enum e_ServerName1 { Venus = 11, Mars, earth }; enum e_ServerName2 { jupiter = 11, pluto, neptune, earth2 }; struct map { enum e_UserName eUserName; enum e_ServerName eServerName; }; struct map name[] = { …

Member Avatar for prahesh
0
190
Member Avatar for somjit{}

this is my code, from the book *Head First Java* ... class Echo { int count=0; void hello() { System.out.println("Helloooo....."); } } public class EchoTestDrive { public static void main(String[] args) { Echo e1 = new Echo(); Echo e2 = new Echo(); // output 10 //Echo e2 = e1; // …

Member Avatar for somjit{}
0
180
Member Avatar for kenomote

Hey guys im having this error on my codes but seems to work on the other new projects it always highlight the .ExecuteNonQuery `{"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at …

Member Avatar for kenomote
0
458
Member Avatar for ised

Write a nested for loop that displays the following outpout: 1 1 2 1 1 2 4 2 1 1 2 4 8 4 2 1 1 2 4 8 16 8 4 2 1 1 2 4 8 16 32 16 8 4 2 1 1 2 4 8 …

Member Avatar for ised
0
3K
Member Avatar for amrita111

IMEI number is used for identification purpose.Some mobile phones have two IMEI numbers.Why to use 2 numbers??

Member Avatar for amrita111
0
90
Member Avatar for ppstyle

Hi! I am looking for a Web Service from which a user can send SMS from his account to a number of his choice. The free ones on the net are not working. The way2sms ones are working but obviously they show the number of the registered way2sms account. I …

Member Avatar for aruhat
0
237
Member Avatar for klemme

I have this pattern which finds links, inside a text string from file_get_contents function. Works fine, it seems. But I am curious to understand the expression, each charachter of it, what it does etc. Here you go: preg_match_all('~href=("|')(.*?)\1~', $var, $out); I know what it does obviously, but what does (.*?)\1~ …

Member Avatar for klemme
0
185
Member Avatar for extjac

Hello, do you guys recomend any CLASS or script to create Thumbnails? what are you using these days?

Member Avatar for ashishrevar
0
347
Member Avatar for muralibobby2015

hello... i have textbox with update option. when i change the value in textbox then update the session value. how to assign text value to session variable in javascript. this is my script. [CODE] <script>function update_value() { //window.alert(window.document.creditform.quantity.value) if((window.document.creditform.quantity.value=='') || (window.document.creditform.quantity.value=='0')) { window.document.creditform.quantity.value=1; } else { <? $_SESSION['qty']?>window.document.creditform.quantity.value; } }</script>[/CODE]

Member Avatar for nuryanto
0
18K

The End.