199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lewashby

The following code block is producing and endless loop and I can't figure out why. Note that charv is just he second command line argument in the main function. int testNumber = 1; while(argv != '\0') { std::cout << testNumber; argv++; testNumber++; } I wrote this piece of code just …

Member Avatar for Suzie999
0
164
Member Avatar for sobias

Hi guys, This is my first time using SQL. So, go easy on me :) I'm executing these queries on some websites online where there is an already made database with Country name,Area,Population,etc What I would like to do is, to get the names of all the countries in Asia …

Member Avatar for pritaeas
0
203
Member Avatar for sh4rif

Hello everyone I am running Ubuntu 12.04 compiling a c++ file which has the following code #include <iostream> #include <libusb-1.0/libusb.h> using namespace std; int main(){ //pointer to pointer of device used to retrieve a list of devices libusb_device **devs; libusb_device_handle *dev_handle; //a device handle libusb_context *ctx = NULL; //A LIBUSB …

Member Avatar for Moschops
0
315
Member Avatar for vb_newbie

hello, this is my first post here. I'm working on my movie library project now in vb2008. I have a form with 3 listboxes, a remove button and find button. Listbox1 is populated with names of actors from a table in the mysql database and selection mode = one. User …

Member Avatar for vb_newbie
0
1K
Member Avatar for lena1990

hi all i want to send html file from pc to android phone if any body have an idea of how to do that i will be greatful for help?? thanxs in advance

Member Avatar for peter_budo
0
209
Member Avatar for code_rum

Hi, I am struggling with this..I have multiple images and data with same class. As I click on a link with class single_image it should pop up the corresponding div. but its not working every time i click it shows me the same image. I have tried using $("a.single_image").each( function …

Member Avatar for code_rum
0
159
Member Avatar for waseemrulez

I m working on project in which i have to store member automatically in binary tree form like 1 is root 2 is child of 1 3 is child of 1 Then 4 is child of 2 5 is child of 2 6 is child of 3 7 is child …

Member Avatar for prakash.ravi.1004
0
140
Member Avatar for Don Ocso

Hello, please i want to learn javascript. I need some links to project-like tutorials that can help me understand javascript better, i have read all the javascript tutorials on w3school now i need some better examples. Thank you in advance.

Member Avatar for Don Ocso
0
111
Member Avatar for sahilkharidia

outlook temperature Humidity Windy PlayTennis sunny hot high false N sunny hot high true N overcast hot high false P rain mild high false P rain cool normal false P I found out unique elements from file and their occurence ( ignored the elements whose occurence was less than 1(taking …

Member Avatar for Ketsuekiame
0
197
Member Avatar for Dili1234

In my database there two table call sample and sample customer in sample table primary key is sample_Note_no and it is a foreign key in sample_customer table I got same error after I wrote this coding also ALTER TABLE Sample Customer ADD CONSTRAINT FK_Sample Customer_Sample FOREIGN KEY (Sample_NOTE_No) REFERENCES Sample(Sample_NOTE_No) …

Member Avatar for G_Waddell
0
154
Member Avatar for silversurf

Hello, Here is the scenario : I have the follwoing sales return from in my software: ![sales_return1](/attachments/large/3/sales_return1.JPG "sales_return1") In the from I have tow listview control, the left is Listview and the right is Listview1. I have the following code in procedure : Dim xsprice As String Dim xsprice1 As …

Member Avatar for hyesin
0
1K
Member Avatar for ngonix

Hello, I have a php script with 3 textboxes that is supposed to search for and retrieve records using the following criteria: Policy Number, First Name and Last Name. The code is as follows: search_page.php <table width="1076" align="center" bgcolor="#eee"> <tr> <td height="10" valign="top"> <p> <div align="center"> <form id="form1" name="form1" method="post" …

Member Avatar for broj1
0
1K
Member Avatar for ryan311

in form1 i have this code #region MaterialSize Declaration //public static string materialtype = ""; private string _materialtype = ""; private string _size = ""; private string _kg = ""; private string _price = ""; private string _barcolour = ""; private string _sizeLength = ""; private DateTime? _datemodify; #endregion i …

Member Avatar for ChrisHunter
0
265
Member Avatar for Prov1

I have a php script that imports a csv into a sql db, seems to be work fine with the exception if the value of the cell is greater than 999, I assume that when the value is 1000, an extra "," is being inserted (1,000) and making my number …

Member Avatar for broj1
0
97
Member Avatar for cobaltfive

so i was wondering if my program could be converted to a string version, if so gimme a start please. I also would like to find out how to set my speed variable if when entered it is less than zero for it to display an error statement, how would …

Member Avatar for tinstaafl
0
281
Member Avatar for xanthian23

So I'm just having a super fun time with overloaded operators and the friend function. I have an addressbook, and for my assignment I have to use the friend function to overload a few different operators. I think I understand how to type the friend function out to tie it …

Member Avatar for xanthian23
0
259
Member Avatar for foxwizzy

<?php require_once('Connections/site.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; …

Member Avatar for foxwizzy
0
194
Member Avatar for pjns19

Hi All, Can anyone offer me some advise? I currently have a listbox i am using, in the listbox there is a list of images from any website. they are grabbed from the website via this method;;; Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted Dim …

Member Avatar for tinstaafl
0
348
Member Avatar for rahul.gour

If .SubItems(19) = "Y" Then chkTax.Value = 1 txtTaxRate.Text = .SubItems(16) Else chkTax.Value = 0 txtTaxRate.Text = "" End If having problem Compilation error : method or data member not found with this code chktax is a check box.

Member Avatar for AndreRet
0
176
Member Avatar for hwoarang69

it have 3 classes. main class = run every thing player class = create player and create his moves level class = render map and player when i run this code below it render a map and two players. 1st player in redering in main when can move. if user …

Member Avatar for bguild
0
257
Member Avatar for jab8288

Yes this is for a homework assignment. I am getting closer to what I need but am running into a block. my code shows how far I have gotten. I am pretty sure I can handle the washer gallons and cost part. its the second section I am aving problems …

Member Avatar for jab8288
0
636
Member Avatar for ms061210

Hello guys, I need some advice/opinions. We are task to create a game in socket programming. We can choose from Java, C, c+, shelland php. Which language is the best to create socket programming for beginners. ? We have a litte knowledge with the given languages, but we don't have …

Member Avatar for ms061210
0
190
Member Avatar for JakeRivett

How do you go about pausing your code from operating. I want to make an animation by making a picture box visable then another then another but I need a period of time between transitions? How would I go about doing this? boredPic(1, 1).Visible = True boredPic(1, 1).Image = My.Resources.Red …

Member Avatar for Reverend Jim
0
319
Member Avatar for tnputnam

I would really like to be able to compare two cells in visual basic from a database access database in two different tables and the idea is to take one paragraph from one cell and a paragraph from another cell and compare how closely related they are. How would you …

Member Avatar for Reverend Jim
0
104
Member Avatar for Suzie999

I'm here with what might seem like a very basic question, but I cannot figure it out. I am using EnumChildWindows winapi to identify a particular child window of google chrome browser. I fail when trying to return the handle of that child window when found. BOOL CALLBACK enum_wnd_proc(HWND h, …

Member Avatar for Suzie999
0
1K
Member Avatar for pars99

Me and my friend are aspiring Indie Game devs. and we're hoping to get some help. As the developer of the duo (him being artwork and music), I need to create a physics engine for the game. I am sure there are some out there, but I think building one …

Member Avatar for Tumlee
0
839
Member Avatar for minimee120

Hello all, I'm fairly new to using PHP, and for my assignment I've coded it all but I'm trying to go the extra step, and code something that if the item amount = 0 it doesn't print it out on the order form The items are $LAPTOP $MONITOR $KEYBOARD $PRINTER …

Member Avatar for diafol
0
211
Member Avatar for Kareem Klas

Hello everyone, I'm studying the while statement now, and there is an example code and I tried to make it and see what it does. When I wanted to start it said it has errors and when I started with debugging I get a weird statement on my cmd program. …

Member Avatar for andreas.bjorn
0
138
Member Avatar for nah094020

So i just started my project on a cpu sim , but right of the bat i ran into a problem #include <cstdlib> #include <fstream> #include <iostream> using namespace std; /* * */ int main(int argc, char** argv) { return 0; } void cpu() { } void memory() { int …

Member Avatar for nah094020
0
503
Member Avatar for nah094020

Ok so here is my problem, i have to write a simple computr system consisting of the processor and the memory, The project will simulate a simple computer system consisting of a CPU and Memory. The CPU and Memory will be simulated by separate processes that communicate I have to …

Member Avatar for nah094020
0
670
Member Avatar for nssrsaran

Hello, Will you please write a c++ program which includes all functions, 1) Recursive function for "vowels", that returns number of vowels in string. 2) Recursive function for "sum of array" 3) Program that uses a recursive function to check whether a string is Palindrome 4) Program that uses recursive …

Member Avatar for Gonbe
0
2K
Member Avatar for terrier_unknown

I was just wondering is there a class handling integrals and derivatives or do i have to make methods on my own?

Member Avatar for tinstaafl
0
319
Member Avatar for king03

Hi people can someone explain this code to me clearly, this is the simplest code I could possibly get I just want to ask how it works hope you can help me. By the way this code asks for an uppercase letter and will convert it to its lowercase equivalent. …

Member Avatar for deceptikon
0
219
Member Avatar for tanmay.majumdar2

#include<iostream.h> #include<conio.h> using namespace std; int re(int); int main() { int a, asd; cout<<"enter number\n"; cin>>a; asd=re(a); cout<<asd; getch(); return 0; } int re(int a) { int b; if(a==1) return ( 1 ) ; else b=re(a-1); return (b); } Hey, i was just trying to understand the concept of recursive …

Member Avatar for Gonbe
0
397
Member Avatar for krystosan

what does it mean by defining a variable with double underscore only at the prefix part ? like in this [example](http://pastebin.com/8e5t2eAZ) at pastebin i.e. self.__weakReference

Member Avatar for vegaseat
0
482
Member Avatar for ChevaneHeadChefCooke

import java.util.Scanner; public class Name { String lastName; String firstName; Scanner scan = new Scanner(System.in); public Name(String LastName, String FirstName) { lastName = LastName; firstName =FirstName; }; public String getFirstName() { return firstName; } public void setFirstName (String FirstName) { firstName = FirstName; } public String getLastName() { return lastName; …

Member Avatar for tux4life
0
444
Member Avatar for anisha.silva

hi i access the Book share API to retrieve data for a book, i search by the isbn, when i do it i get a bunch of text as the request how can i format the content thanks appreciate a reply

Member Avatar for anisha.silva
0
257
Member Avatar for jangojan

hie all i have two text boxes , password and confirm password now what i am trying to do is when password match a label near confirm passwd text box turns green automatically and say match and if not match its should turn red and say not match , and …

Member Avatar for tinstaafl
0
119
Member Avatar for anisha.silva

hi what i wan to do is to get the customer ID from the glassfisn database and displaindey it in a drop down box in a jsp page. in the index.jsp page how to i call the servlet so that the the servlet would load the jsp page? i have …

Member Avatar for anisha.silva
0
556
Member Avatar for hwoarang69

i have a question on how to extends classes. i have three classes main, aaa, bbb classes. i want to draw something in bbb class and print in main. for ex main <-> aaa <-> bbb but nothing is being print at output. if i draw something in main, or …

Member Avatar for hwoarang69
0
147
Member Avatar for jangojan

Dear all i have created a small windows form application, which connect to mysql database, and the database is installed on a remote pc( virtual machine), i am using visual studio 2010 in winxp 32 bit , and i have build this application using .NET2.0, so that it can work …

Member Avatar for jangojan
0
523
Member Avatar for DarkMonarch

Hey guys it's been a long time i've wrote here. I decided to take a course in JS OOP, my problem is the program doesn't do the difference between objects. Exemple the program work only if i pop 1 object, if i pop a second one, it screws my functions. …

Member Avatar for DarkMonarch
0
230
Member Avatar for GlenRogers

Hi, I have a web page(admin page) and using some JQuery I have it so that when you click the 'Add News' link a form appears in another div. This bit works ok. The form data gets sent to another php file which the either adds the data to a …

Member Avatar for broj1
0
256
Member Avatar for flebber

I was reading this article [Click Here](http://maxburstein.com/blog/python-shortcuts-for-the-python-beginner/) http://maxburstein.com/blog/python-shortcuts-for-the-python-beginner/ In there was this example from itertools import combinations teams = ["Packers", "49ers", "Ravens", "Patriots"] for game in combinations(teams, 2): print game >>> ('Packers', '49ers') >>> ('Packers', 'Ravens') >>> ('Packers', 'Patriots') >>> ('49ers', 'Ravens') >>> ('49ers', 'Patriots') >>> ('Ravens', 'Patriots') So I …

Member Avatar for vegaseat
0
434
Member Avatar for longtomjr

I dont know what the responce will be but I kind of like the idea. Pls reply with critisim but pls stay polite. I have been Thinking if there can not be started something like a python guild. Run by an advanced python programer and the people part of it …

Member Avatar for longtomjr
0
198
Member Avatar for harshedh

Hai everybody, I need help in the following value store in database double quotes "$plan['plantitle'] " for example has commented on your plan "test " anybody plz help public function notifyCommentOnPlan($me, $comment,$plan,$section) { //var_dump($comment['personal_id']);exit; //notify Plan owner if($plan['personal_id']!=$me->getId()) { $commentPlan = new Notification(); $commentPlan->setPersonalId($plan['personal_id']); $commentPlan->setSenderId($me->getId()); $commentPlan->setTypeId(3); $commentPlan->setMessage(ucfirst($me->getFullName()) . " has …

Member Avatar for IIM
0
205
Member Avatar for pinkxhmile03

what code can i use in my game when i'm upgrading or i will evolve or build ong picture to another picture ? please help me thanks !

Member Avatar for AndreRet
0
87
Member Avatar for fx.eko

When I create data report use VB6 Enterprise, when I add Data Source to that form, I'm get error message "UNHANDLED EXCEPTION AT 0X89067542 IN VB6.EXE : 0XC0000005 : ACCESS VIOLATION READING LOCATION 0X89067542" and VB6.EXE close What happen ??? any body can help me, thanks for advanced Regards, FX …

Member Avatar for AndreRet
0
171
Member Avatar for PinoyDev

Is there a way to open a form in vb6 when they clicked on one of the field in crystal report? Ex. If I want to update certain deposit, when clicking on crystal report, it will open the vb6 form to display for editing.. Ive found 1 in vb.net from …

Member Avatar for AndreRet
0
532
Member Avatar for prashant9928

Hello everyone, As a freelance i am working on my own project name myOnlineDesk. I want to make a module in admin section where i can create a database backup file and save to the system. The thing that i want is ".SQL" file. When i click on a Backup …

Member Avatar for hometownnerd
0
837

The End.