199,114 Archived Topics
Remove Filter ![]() | |
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, … | |
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(); … | |
"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?? | |
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; … | |
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. … | |
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] … | |
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 … | |
This code snippet convert Number to String in VB6. For instance input 100 will be return as Hundred, It converts upto Core.... | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
hi do you know any good tutorial about nhibernate? thanks | |
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: … | |
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 … | |
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 … | |
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. | |
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 : … | |
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> … | |
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 | |
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 … | |
[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): … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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] | |
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 … | |
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 … | |
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 … | |
[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 | |
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 … | |
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 … | |
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 … | |
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.... | |
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 … | |
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? | |
I want to insert,update,delete,select using dataset in vb.net | |
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 * … | |
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 … | |
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 … | |
hello all I am looking for a sample C code for packet interceptor.... Any help is appreciated Thank you | |
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 … | |
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 … | |
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 … |
The End.