199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blackryu21

I have to match up airlines for flights in c++, but for certain matchups, the value would be equal to x. I need help to do it. Here's the code I have so far: [code] #include <iostream> using namespace std; int main() { int nROWS = 4; int nCOLUMNS = …

Member Avatar for stilllearning
0
136
Member Avatar for jcafaro10

Hello, I'm new to python and I'm trying to learn how to read/write programs written in python using eclipse. I'm used to java so a lot of things are familiar but a lot of things aren't and I'm having trouble finding a good place to go to learn what different …

Member Avatar for lllllIllIlllI
0
99
Member Avatar for n03ly

Hi Guys, I have an assignment to do a gpa calculator using class construction and an array of grades. The assignment is to have a class called Student and have a user enter an ID and then enter however many grades they want and then have the program calculate the …

Member Avatar for n03ly
0
722
Member Avatar for google503

[COLOR="Red"]When I open my page I get this error:[/COLOR] [code] Parse error: syntax error, unexpected $end in /home/a9617139/public_html/order2.php on line 215[/code] [COLOR="Red"]Here's all of the code for the page:[/COLOR] [code] <? session_start(); ?> <script language="JavaScript" type="text/javascript"><!-- function placeFocus() { if (document.forms.length > 0) { var field = document.forms[0]; for (i …

Member Avatar for R0bb0b
0
166
Member Avatar for gangsta1903

I want to draw a tree in Jframe, the tree view is available in the attachment, As you see there are nodes connecting to each other.I know that I have to find the midpoint of the nodes at the same level or things like that. What I want your help …

Member Avatar for Ezzaral
0
3K
Member Avatar for it2051229

I'm trying this tutorial using the get system metrics functions so what i did was to include the windows.h preprocessor directive although when i'm trying to compile my program i get th e error "undefined symbol '_GetSystemMetrics@4'. I'm using TCC as my compiler.

Member Avatar for Narue
0
117
Member Avatar for rrreeefff

Hello! I am working on some code for a program that squares,sums and divides 3 numbers: [code=cplus] int num,sq,sumd; int a; int b; int c; printf ("Please enter a positive integer for a/n"); //input scanf ("%d", &a); printf ("Please enter a positive integer for b/n"); //input scanf ("%d", &b); printf …

Member Avatar for ahamed101
0
105
Member Avatar for amerninja2

[COLOR="Red"]How can I get a compiler for C++ like Dev-Cpp to support chinese character and pinyin input? Like if I wanted to make a chinese program that would allow chinese input and output in the console window... Example:[/COLOR] [CODE]#include <iostream> using namespace std; int main() { wchar_t input; char loop; …

Member Avatar for Salem
0
2K
Member Avatar for Jayaprakash.BS

Hi, I want to read .wav file from the any directory in windowsXP and draw the graph of that particular file using C or C++ code.. Can anyone help please?????

Member Avatar for ahamed101
0
82
Member Avatar for serkan sendur

hi guys, 20 percent of my grade is composed of presenting a simple project with microcontrollers, do you have any idea of what to do? i need some samples, i dont need to do something unique, all i need to do is to have something work and demonstrate that i …

Member Avatar for Salem
0
59
Member Avatar for OriginalCopy

Hi. The following calculator will return wrong values for operations which are more complicated than <INTEGER><OPERATION><INTEGER>. I suppose I'm making a mistake in parser.y, but I can't figure out what. I know there are mistakes, memory leaks and other technical issues I'm doing wrong, but please concentrate on my biggest …

Member Avatar for ahamed101
0
884
Member Avatar for kittycat07us

Hi, I'm having trouble coming up with a function that scans a word, starting from bit StartingBit, until the first zero bit is found. The function is suppose to return the index of the found bit and if the bit at StartingBit is alrieady what sought, then startingbit is return. …

Member Avatar for Salem
0
167
Member Avatar for skvikas

Hi All , I am facing some error in destructor in my class. Below is the constructor and destructor. Constructor seems to work fine . While the class get destructed it give the following error *** glibc detected *** ./main: double free or corruption (fasttop): 0x08743cd0 *** ======= Backtrace: ========= …

Member Avatar for skvikas
0
149
Member Avatar for laspal

hi, I am using reportlab to generate pdf but having a problem in making list in tabular format. final list should be in this format: list =[ ['companies', 'industries'], ['1', '11'], ['2','22], ['3', '33'] ] data =[] data.append('companies') for item in some_list: data.insert(0, item) -> Assuming item gives me values …

Member Avatar for woooee
0
107
Member Avatar for grisha83

Hello, i have wrote a program using the while loop but it crashes whenever i run it Basically, the goal of a program is to calculate the population of a town with constant 10% growth annually and then find how many years left. here is my code (any help will …

Member Avatar for grisha83
0
171
Member Avatar for sanfan49er

Hello once again fellow programmers I need help with a C# program. The program is supposed to include fields named radius, are and diameter. I got most of it up but it is not working saying there does not contain a static 'Main' method for suitable entry point. [code=charp] using …

Member Avatar for LizR
0
188
Member Avatar for Stefano Mtangoo

Hello All, Greetings! I have question concerning OOP with Python. I want to know when Python class or being specific, how py class ends in package like wxpython. What I mean is I have one class let say of frame and another class of a dialog box all in same …

Member Avatar for Stefano Mtangoo
0
101
Member Avatar for chris5126

Hi guys, I am creating a monitoring program. I need to create a windows service to send a ping request to a list of servers from a sqp server database then store the results back into a sql server database. Need some help gettin started can i run the windows …

Member Avatar for LizR
0
134
Member Avatar for absu

Hello, I am opening a calendar popup when user clicks on a button but here I have to click twice to get this calendar. On the 1st click it doe not do anything but on 2nd click it shows up the calendar. here is my code- [code=csharp] <script type="text/javascript" > …

Member Avatar for LizR
0
114
Member Avatar for bjaanes

I have a standard Windows Forms Application project with an SQL database connected to it. It got some textboxes and stuff. But the tricky part for me is the checkboxes (bit values). It says (as far as I can see) in the properties that their checkstate should be Unchecked. And …

Member Avatar for LizR
0
88
Member Avatar for SoulMazer

Well, I have recently created a "translation" program. It basically asks what languages you would like to translate between, then goes to the appropriate page on a translation website. I have integrated an option to keep using a language, rather than having to start at the main menu again. Except, …

Member Avatar for SoulMazer
0
158
Member Avatar for coveredinflies

Hi I am outputting data to a spreadsheet and have looped through one set of values. Later on I want to put some more values in the next column, I can move across to the next column but don't know how to get back to the top. Is this possible …

Member Avatar for coveredinflies
0
87
Member Avatar for joed13k1941

I have to convert this program that I wrote to use switch case statements to handle user input (+, -, /, *, X). Any ideas? [code]#include <iostream> #include <string> using namespace std; int main() { double total = 0, counter = 0; char sign, X = 0; double value; do …

Member Avatar for joed13k1941
0
118
Member Avatar for mb2442

I'm trying to load a text file into a MySQL table. The text file has 2 delimiters (tab and space). The problem is that some of the fields in the text file occasionally have NULL values. When this happens, and I split (preg_split or split) the file out into an …

Member Avatar for mb2442
0
88
Member Avatar for pravdexter

Hi all, How to Enable/Disable port of a system by triggering the URL through Python program. Please help if possible.

Member Avatar for pravdexter
0
109
Member Avatar for johanna26

I need to reproduce the following java applet (click potometer simulation) to modify with some more parameters. [url]http://kegsnet.org.uk/mod/resource/view.php?id=2760[/url] I tried to retrieve the applet class file (Potometer.class)but could'nt get it... Can anyone guide me in extracting the code... Thanks, Johanna

Member Avatar for MoZo1
0
119
Member Avatar for klevine

Hi The menu form that starts up when I open access has a bug in it...I wanted to close the form when a certain condition exists but I used the quit command (instead of close) so it quits access completely! I cannot get in to fix my bug. Is there …

Member Avatar for klevine
0
85
Member Avatar for need_Direction

Hi, I wanna ask how to create 3D volume object contains x, y, z without using 3D array in Java?

Member Avatar for MoZo1
0
169
Member Avatar for corteplaneta

Hi, I'm not too experienced with .NET programming, but I was wondering if anyone knows of a custom control in VB.NET that involves a list (sort of like a ListBox), with at least 2 columns, and the ability to select individual members of this list. I basically have a dynamic …

Member Avatar for corteplaneta
0
195
Member Avatar for cutedipti

Hi, I have one query that: Can we write [B]a function similar to printf()[/B]? If it is possible then how could it be written?

Member Avatar for Narue
0
128
Member Avatar for justted

Hello everyone, I have been trying to get this piece of coding to work! It contains multiple if statements and has just sent my mind spinning. I have an error code and cant seem to get past it! What im trying to achieve is to basically check if the username …

Member Avatar for humbug
0
127
Member Avatar for alin_yuhee

i want to make a simple game with c++ but i really do not know how to do it:-/ ....can somebody help me to do that because i really want to know how to make a game by using c++...:?:

Member Avatar for William Hemsworth
0
124
Member Avatar for guravharsha

Currently I am working on one form development using Java. In JSP page I retrieved the data from table using F9 keys i.e for any input field variable available in JSP page, once I pressed the F9 key, all the related data is displayed in the popup window. Once I …

Member Avatar for PoovenM
0
2K
Member Avatar for rrreeefff

Hi I am working on a program that computes the sum of N in increments of 3. I do not have any errors but when you run the program it does not compute correctly for example if you enter 2 for n the sum should be 5 [code=cplusplus] #include "stdafx.h" …

Member Avatar for Amisha_Sharma
0
135
Member Avatar for cproud21

I have the following programming challenge to complete, and am stuck. I know what i have to do, which is to get information from the other three classes into the parking ticket class, and then print the parking ticket using an if statement if the time has expired. I am …

Member Avatar for PoovenM
0
166
Member Avatar for amardhembare

Hey Guys, I'm developing window based software application in c# in which I need to give login process with user privilages for different forms. can anybody tell how is the login process implemented for window based applications in .net? and what abt user privilages?

Member Avatar for LizR
0
129
Member Avatar for swapna7999
Member Avatar for suganzeni

Hi to all I am working with Sql server ce for mobile application with vb.net. I want to crete a table before that i have to check weather the table exists or not. Also want to know about Object id in sql server and how to create it. Thanks and …

Member Avatar for vinu_32123
0
219
Member Avatar for masterovpuppetz

I wanted know if there's a way in c++ to know what character exists at a particular x,y coordinate. for eg: suppose i used [B]gotoxy(2,5)[/B] and my cursor is now at (2,5) and i want to know what character exists next to my cursor at (3,5). How can i know …

Member Avatar for masterovpuppetz
0
148
Member Avatar for fishky

Hello guys, I'm selfstudying C++ and atm am reading about classes. I want to define ostream operator<< but compiler cant find ostream to be regular use. I'm using Visual Studio 2005 on XP SP2 and have MSDN installed. And another question - am I using proper initialisation for operator<< ? …

Member Avatar for fishky
0
1K
Member Avatar for google503

[COLOR="Red"]I have a code and it comes up with this error:[/COLOR] [code]Parse error: syntax error, unexpected T_VARIABLE in /home/a9617139/public_html/order2.php on line 1[/code] [COLOR="Red"]I don't know why it does. This is my code for that page:[/COLOR] [code] <?php session_start(); ?> <script language="JavaScript" type="text/javascript"><!-- function placeFocus() { if (document.forms.length > 0) { …

Member Avatar for cwarn23
0
137
Member Avatar for ejosiah

Hi everyone, anyone got a solution to this problem; some floating point arithmetic do not return the correct answers in Java one of such is subtracting 0.8 from 0.9; you would expect to get 0.1 but u get 0.09999999999999998. No one should tell me about trying bigDecimal because that does …

Member Avatar for javaAddict
0
169
Member Avatar for OmniX

I am trying to crosscheck a column in a table with 30 rows. Example: [code=php] $value = "a"; $sql = "select * from characters"; $query = mysql_query($sql); $fetch = mysql_fetch_array($query); for ($i = 0; $i < 30; $i++) { if($value == $fetch['letters']) { $counter++; } } echo $counter; [/code] The …

Member Avatar for OmniX
0
119
Member Avatar for dbroncos

Hello All, Rookie here... I have run into a problem coding my first Registration form with PHP. Everything works great with the form. I just want to know how to check two fields in the database to see if the values being posted already exist. I have one working but, …

Member Avatar for R0bb0b
0
82
Member Avatar for rainny

Does anybody know how to create the login page by using Java and MySQL? The login page is contains the username and password, then after check the database, if the username and password is match, then user can login to the main page. Anybody have any idea on it? Or …

Member Avatar for peter_budo
0
111
Member Avatar for piggysmile

Is there an algorithm in C++ to determine the digit located on a given place value of an integer? For example, 9 would be outputted as the tens value of 196. If none exists, is it possible to code it? If so, what are some of your ideas to do …

Member Avatar for Denniz
0
394
Member Avatar for IrishUpstart

Hiya gang. I am currently in need of help (again! Bollocks!). Currently, i am unsure of where to start because, well, quite simply, I am not that smart. The problem is as follows: [I]Develop a program that will solve the transcendental equation x = cos(2x) to within +/- .0001 radians. …

Member Avatar for VernonDozier
0
78
Member Avatar for Dontais

This has me a bit stumped but I must be doing something wrong here, if you don't mind checking this for me would be greatly appreciated. [CODE]int main () { int input; cout << "Enter a positive intiger to determin if it is odd or even (-1 to cancel): "; …

Member Avatar for VernonDozier
0
80
Member Avatar for god_1896

hi all; im looking a good example of 3 selector like for region province and city. if select form the list of region the province would have a list of province belong to region and the city well provide a list of cities belong to the region. and if province …

Member Avatar for god_1896
0
133
Member Avatar for VernonDozier

Okay, suppose I have a class A and subclasses B, C, D, E, F, G. I have a function: [code] public void foo (A object) [/code] I have the default function handler which handles A objects which aren't subclassed, and the B, C, and D subclasses. Subclasses of type E, …

Member Avatar for VernonDozier
0
262

The End.