199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Xufyan

i want to write a program using "for" loop, that will generate the following output. value of a is 0, value of b is 2 value of a is 0, value of b is 4 value of a is 0, value of b is 6 value of a is 1, …

Member Avatar for WaltP
0
286
Member Avatar for Xufyan

Hello everyone i am new in C language and need some basic help. see this program, [CODE] void main(void) { int a,b; clrscr (); { for (a=1;a<5;a++) { for (b=2;b<6;b++) { printf ("value of a is %d , value of b is %d \n",a,b); b=a+1; a=a++; } } } getch(); …

Member Avatar for shah1248
0
296
Member Avatar for Raj2786

"Cross-thread operation not valid: Control 'lstPrime' accessed from a thread other than the thread it was created on." = How can we solve this error??

Member Avatar for Diamonddrake
0
122
Member Avatar for Ballistix

Hello I'm new to c++ i need help with a area and perimeter function. I can get the program to run fine with out using it as function but cant with trying to get it to run as a function. Here is my code: [code] #include <iostream> using namespace std; …

Member Avatar for Fbody
0
205
Member Avatar for DCvonB

Hello, I am trying to create a doubly linked list that will print the entered input in the original order and then print it in the reverse order. Earlier I was able to get it to print the list twice, but the second time was not in the reverse order. …

Member Avatar for DCvonB
0
308
Member Avatar for wiz83

hi i have written a script whose output is getting mailed to me using crontab what i want it to do is mail it to someone else. this is what iam doing. 37 01 24 1 * /usr/local/bin/perl /tpf106/data2/cis_web/cis3/cis3.11/work/rishi/s-branch/perl1/perl/compare.pl | mail -s "file compare output " [email]rishi83@yahoo.in[/email](not real) but [email]rishi83@yahoo.in[/email] …

Member Avatar for chongopants
0
227
Member Avatar for swapna7999

hi all i have a vb application and i need to include this in a php page i tried the exe file of the application to include in the php page but i have to download it to run what i want is to call this vb application as part …

Member Avatar for democracy7.com
0
94
Member Avatar for selvaganapathy

This code snippet convert Number to String in VB6. For instance input 100 will be return as Hundred, It converts upto Core....

Member Avatar for SoftwarePaladin
0
308
Member Avatar for timbomo

quick question how will i go about setting setting up characters to draw a shape such as a triangle. but the user must pick an odd # that equals to the shape . the one i have is simple but idk how to input the number the user choosen to …

Member Avatar for timbomo
0
297
Member Avatar for yznk

Im working on a knights tour problem. And ive run into some issues. Im able to get the program to run randomly till it finds a full tour but how would i go about running it only a 100 times and then printing the average number of moves the knight …

Member Avatar for HealBrains
0
183
Member Avatar for sexyzebra19

I'm trying to use matrix multiplication to multiply b onto a. Using the method I've written below, changes the values of matrix A which I've then realised messes up later calculations. Would the best way to get around this be to make two copies of the matrices A and B …

Member Avatar for sexyzebra19
0
97
Member Avatar for coachkrzyzewski

I'm making a binary expression tree, and to do so I'm reading in values and putting them into a tree node and a pointer to that tree node into a stack. How do I use the STL stack implementation with pointers to my TreeNode class? relevant code: [CODE] stack<TreeNode> s; …

Member Avatar for dusktreader
0
167
Member Avatar for centraspike

Hello, I need some help writing code for a stack using link list implementation without using the STL. Basically what the stack would do is to convert an infix expression to postfix and then show the results of the operation. The stack should utilize a class not a struct. I'm …

Member Avatar for mrnutty
0
124
Member Avatar for coollife

I am trying to browse an image and i will search for the images with the same name in the folder called IMAGES . If it exists i just replace it when i run my project using Visual Studio its working fine and image is perfectly getting replaced when i …

Member Avatar for YanivC
0
86
Member Avatar for mrbool.newguy
Member Avatar for sleepybug

i m trying to do this program to get digits from a number using linked lists..but don't know something is wrong.a logical error:-/ at the place of actual output it shows nothing clear blank ecept the message.so here's the code: [CODE] //DigitNode.cpp # define NULL 0 class DigiNode { private: …

Member Avatar for mrnutty
0
132
Member Avatar for tquiva

I am trying to find the value of a given base and exponent, with the exponent being an integer greater or equal to 0. However, I am getting strange numbers at output. Could someone please take a look at my code ? [CODE]/* File: driver3.c * Date: February 28, 2010 …

Member Avatar for anup375
0
109
Member Avatar for tikoti

Hi, I am having an issue with a program and I have ended up realizing I don't know how to pass an array as a parameter. It seems that when I do it the arrays length is one inside of the function, even though outside is different. Here is the …

Member Avatar for mrnutty
0
160
Member Avatar for Cardinals1980

Can someone help me with this, having trouble with loops. I need to write a program that prints every integer value from 1 to 20, along with its squared value. Thanks for any assistance.

Member Avatar for ddanbe
0
107
Member Avatar for ganeshhsk

The following are the program i did...... and the problem im getting is object expected in onchange function at line 27(where i marked that one in bold for ur ease of identifying the error occuring area) in Task123.jsp. The value in not passed from Task123.jsp to Task113.js. First Page : …

Member Avatar for ganeshhsk
0
216
Member Avatar for spartan118

Figured problem out. Please delete post. -- original text -- hey all I'm a novice C++ programmer and I'm stumped on a console app I'm trying to build [CODE]#include <windows.h> #include <stdlib.h> #include <tchar.h> #include <iomanip> #include <stdio.h> #include <time.h> #include <Winuser.h> #include <atlbase.h> #include <iostream> #include <conio.h> #include <direct.h> …

0
67
Member Avatar for daviddoria

When compiling some working code on Fedora 11, I am getting this error: [code] /usr/include/c++/4.4.1/cstdarg:56: error: ‘::va_list’ has not been declared [/code] I am using: [code] [doriad@davedesktop VTK]$ g++ --version g++ (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2) [/code] Does anyone know what the problem could be? Thanks, Dave

Member Avatar for daviddoria
0
1K
Member Avatar for maharjun

i tried making a string class but my program seems to be repeatedly crashing. why so? I have the following two files in to my program 1.)Strng.h (in INCLUDE directory) [CODE] #ifndef __STRNG_H #define __STRNG_H #if !defined(__CONIO_H) #include <conio.h> #endif #if !defined(__STRING_H) #include <string.h> #endif #if !defined(__STDDEF_H) #include <stddef.h> #endif …

Member Avatar for mattjbond
0
181
Member Avatar for toll_booth

[CODE] def create_widgets(self): B_PAD = 4 PAD_X = 3; PAD_Y = 2 NUM_PAD = 7 '''Create Boolean variables for all the buttons.''' def create_button_vars(): self.backspace = BooleanVar() self.CE = BooleanVar() self.C = BooleanVar() self.MC = BooleanVar() self.MR = BooleanVar() self.Mminus = BooleanVar() self.num = [] for i in range (10): …

Member Avatar for vegaseat
0
130
Member Avatar for chavanak

Hi guys, I have a list which I have obtained from a python script. the content of the list goes something like [CODE] d.complex.1 24 25 67 123 764 d.complex.2 23 54 35 64 d.complex.3 . . . [/CODE] I want to split this list such that, a new list …

Member Avatar for vegaseat
0
93
Member Avatar for nevergone

Ok, I'm trying a large experiment. This would consist of large posts (in the 500-800 words) and wanted to have the post split every 200 words or so, like a book. I know I can do that by manually adding the 'nextpage' tag but then I'd manually have to count …

Member Avatar for nevergone
0
66
Member Avatar for closebys

Hi, I am full time PHP programmer for the past 2 years. Now I am trying to gather some project on my own and work from home besides office. I don't know how to quote a project. Now I have one project where I have to do coding for creating …

Member Avatar for smartbuzzinc
0
151
Member Avatar for endframe

Hi all, I need some help finishing this program, I know it's easy but I'm new in C++ and programming. [CODE]#include "stdafx.h" #include <iostream> using namespace std; int main() { const int arraysize = 10; int a[arraysize] = {11,22,33,44,55,66,77,88,99,100};[/CODE] This is the start of my program ; a giving array …

Member Avatar for endframe
0
206
Member Avatar for Friktion

hello everybody, im coding a game with opengl,pyggel,python,pygame etc and it runs smoothly without any problems =) [url]www.youtube.com/watch?v=JlDuje39S_8[/url] - My python 3d game projekt <--- sorry if outside links isnt allowed =( But the thing is that when im compiling it with py2exe using this as setup.py [CODE=python] from distutils.core …

Member Avatar for vextorspace
0
429
Member Avatar for bayo_84

Hi .. I try to override the XmlWebApplicationsContext and I dont know how to register my subclass. I found in ContextLoader.java in the method determineContextClass the following code: String contextClassame = servletContext.getInitParameter(CONTEXT_CLASS_PARAM); I looks like I could set the class by setting this Parameter but I down know how. In …

Member Avatar for ~s.o.s~
0
129
Member Avatar for marcel222

Hello all, I have a question about coupling C++ classes to a GUI, in a nice Object Oriented solution. The problem is as follows: I have designed a GUI application in a separate class Gui for instance, in a other source file I designed a hierarchical statemachine for my GUI …

Member Avatar for Ancient Dragon
0
160
Member Avatar for jigar_cool

[B][COLOR=red]I m in urgent need of online flight reservation system source code coded in JSP since i hav to submit it before 15feb.[/COLOR][/B] [B][COLOR=red]the system must do the necessary functions-[/COLOR][/B] [B][COLOR=red]flight infornmation,[/COLOR][/B] [B][COLOR=red]fare details,[/COLOR][/B] [B][COLOR=red]online reservation,[/COLOR][/B] [B][COLOR=red]cancellation,[/COLOR][/B] [B][COLOR=red]view availability of seats,[/COLOR][/B] [B][COLOR=red]administration functions such as edit details,reports generation,etc[/COLOR][/B]

Member Avatar for rizwanshaikh
0
207
Member Avatar for giahmed

Hy all, I am sure its very simple thing and I am not just getting it, I am trying to send textbox value from one page to another and its keep giving me an error, basicaly its not finding the class I created in previous page. My web pages are …

Member Avatar for giahmed
0
106
Member Avatar for omeli

Letter Maker Objective This project will give you some practice with loops, static methods, removing code duplication and introduces the notion of having multiple classes working together in a single project. Overview The project consists of several classes working together -- most of them are provided for you -- only …

Member Avatar for kvass
0
229
Member Avatar for waheed.hussain

HELLO I AM NEW TO THIS BUT I NEED HELP WITH MY ERD, I JUST DO NO UNDERSTAND THE SCEANARIO!!! COULD SOMEONE PLEASE HELP ME WITH THIS...... this is the scenario.............. A local education authority (LEA) has a database which centralizes admissions to courses that are offered by different colleges …

Member Avatar for jwenting
0
143
Member Avatar for devstarter

[This is a multi-post; I thank you people for the attention] hi How could I show a database datetime field (like mm/dd/yyyy) on a JTextField? regards

Member Avatar for javaAddict
0
111
Member Avatar for astronomical

All, I have worked extensively on my looping and sentinels here. As you can see I have my program working but it is not taking the series. I know I am missing something stupid but I just can't put my finger on it. I have my inupt validation working as …

Member Avatar for javaAddict
0
841
Member Avatar for shyami

Hi, I need to define some common variables in one file and use that file in my python script , Like in php we define some variable in (eg :definevble.config) file, later we will use that file using include method in php script. Plz let me know how to do …

Member Avatar for shyami
0
123
Member Avatar for rcook

I have a simple web application with a login page. I am now adding authentication to code that already checks username and password in a database; I use Forms Authentication to write a cookie with an authentication ticket (if that's the right term) to enable a user to access pages …

Member Avatar for rcook
0
286
Member Avatar for hosamath

Hi friends... I have a series of points which are actually the points that form a circle... Can anyone help me how to get the circle image when i load these points as input... A simple code example will be helpful... Thanks in advance....

Member Avatar for pritaeas
0
252
Member Avatar for kiranbvsn

hi, i've got a problem in asp.net i am using a master page with standard headers and footers in all the child pages. i've given the links of the header image in a cssstyle sheet and linke the style sheet in aspx master page, but how to include the header …

Member Avatar for kiranbvsn
0
120
Member Avatar for bigtreeworld

Hey, I want to get the user's approximate location (down to like a 1km radius) by their IP. Is this possible in VB Express 2008?

Member Avatar for pauldani
0
265
Member Avatar for amit3119
Member Avatar for venusseo

please help me with this parse error.. tnx Parse error: parse error in C:\wamp\www\concentrix\aboutUs.php on line 49 <form action=<?php $_SERVER['PHP_SELF'];?> method="post" enctype="multipart/form-data"> User Name:<input type="text" name="u_name"> </form> <table border=2> <tr> <?php $con = mysql_connect("localhost","con","centrix"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("concentrix", $con); $result = mysql_query("SELECT * …

Member Avatar for urtrivedi
0
74
Member Avatar for pato wlmc

Well first of all, hi, and thanks to all of you guys, cause this may be the first time I start a thread, but not the first time that one of you solve my problems. Anyway. I'm following an internet tutorial about API development, ( [url]http://www.winprog.org/tutorial/menus.html[/url] ) But rigth now …

Member Avatar for mitrmkar
0
714
Member Avatar for nike_jj4

Hello! I have the following problem> I have this 3 structures: [code] struct student { char name; int index; }; struct modul { char mod_name[10]; struct student st[10]; }; struct faculty { char fax_name[20]; struct modul mod[3]; }prom; [/code] ------------------ My question: How can i reach the name of the …

Member Avatar for nike_jj4
0
86
Member Avatar for chinnaedu

hello all I am looking for a sample C code for packet interceptor.... Any help is appreciated Thank you

Member Avatar for chinnaedu
0
87
Member Avatar for kvass

The commonly used syntax: [CODE=Java] public class Foo { private int x; public Foo(int x) { this.x=x; } } [/CODE] Is actually "flawed." If you have an anonymous inner class inside the Foo constructor (i.e. if this were a GUI code and you were adding an ActionListener) then the private …

Member Avatar for javaAddict
0
177
Member Avatar for jiten_raulo

Can any one tell me how to put a part of program into a header file or how to work with multiple files? According to my book, I need to put the template and class part into a separate file and include the header as "counter.h". I have done same …

Member Avatar for jiten_raulo
0
140
Member Avatar for Fridericus

Hello everyone, I have a problem with TkMessageBox on Windows: My program receives a message from a server and then it should show a MessageBox, but instead of doing so, the program freezes. Elsewhere in the program, a MessageBox is called after the user having pressed a button, and this …

Member Avatar for Fridericus
0
388

The End.