199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mahmud2008

[code] using System; using System.Collections.Generic; using System.Text; namespace Factorial { class Program { static void Main(string[] args) { int i, n, fac = 1; string s; Console.Write("Please enter any number to find it's factorial(0 to 19):\n"); s = Console.ReadLine(); n = Int32.Parse(s); for (i = 1; i <= n; i++) …

Member Avatar for ddanbe
0
221
Member Avatar for oimenoi

I am keep having the "No overload for method 'GenerateSignature' takes 9 arguments" problem. Can you please tell me what is wrong with this class. This code is the sample from the Oauth.net . I think it too old for my asp.net 3.5 or 4.0. My page. [CODE]<%@ Page Language="C#" …

Member Avatar for oimenoi
0
108
Member Avatar for Maya Pawar

I bind the two comboboxes with table. one combo contains product and another contains subproduct. when i clicked first combobox then subproduct of that is filtered in another combo. when i clicked next,previous ,it is working properly. but when i go to last record second combo is refreshed means it …

Member Avatar for Maya Pawar
0
135
Member Avatar for morelve

I want to make a native win32 program that simply moves the cursor to x=100 y=200 on the screen, and then clicks the left mouse button once. Where do I start? For once, Google got me nowhere. I use VC++ 2010 to compile.

Member Avatar for Adak
0
3K
Member Avatar for angelrapunzel

hi frnds!! i have d code for series x^!+x^2+x^3+....x^m with single loop only //wap to find sum of series and print series also //x+x^2+x^3+......x^n #include<iostream.h> #include<conio.h> void main() { clrscr(); int n,x,count1; int sum=0; cout<<"enter a number"; cin>>x; cout<<"enter nth term till which u want to compute"; cin>>n; int count=1; …

Member Avatar for NathanOliver
0
111
Member Avatar for Tejas

Can smeone help me to write a prog. to find the sum of the following series: 1+(1+2)+(1+2+3)+....... n terms Regds. TEJAS

Member Avatar for angelrapunzel
0
167
Member Avatar for CSherman

Hello all. I am working on this program and having some troubles with it. I have tried lots of different things and can't get it to do what I want. I guess I am not really understanding the code and how to word it properly. I am writing a program …

Member Avatar for Taywin
0
129
Member Avatar for Dorayaki

Hello, I try to do a program that can search whatever the user typed. But I kind of having a problem, which I cannot select everything matches. For example, I type "Hi there hello, what is your name ? please say hello" The I click on the search button. It …

Member Avatar for Taywin
0
99
Member Avatar for senexom

Hey guys, I'm having a "great" pleasure of parsing XML in my ASP page, except I can't seem to figure it out what I'm doing wrong. I have tried a bunch of stuff and can't seem to read a simple xml doc. here is what my code looks like... [CODE]' …

Member Avatar for jamziee
0
5K
Member Avatar for khanan
Member Avatar for vbx_wx

Hello. Can anyone help me how to implement the subscript ([]) operator for a STL list class ? [code] T& operator [] (int n) { } [/code] [code] template <typename T> class list { public: struct node { T data; node* prev; node* next; node(T t, node* p, node* n) …

Member Avatar for nbaztec
0
268
Member Avatar for asher2010
Member Avatar for QWaz

Hi, I am wondering if there is a way to check if a url has an $_GET[] attached to it. I would like to: 1- Send the url from a search option in the site through the url. However the search page can search 3 different things, "X", "Y", "Z". …

Member Avatar for vaultdweller123
0
137
Member Avatar for nsutton

I have a few things I want to make that I havent yet so this will be a later project but I was just wondering, How would a anti virus program work in C#? I've seen ones on youtube that iterate through your HD and looks for keywords like "Virus","Trojan" …

Member Avatar for finito
0
149
Member Avatar for mebob

I have to make a program that takes 4 inputs and outputs the 2 largest inputs. So I wrote this code, [CODE] #include <iostream> using namespace std; void largest_two ( int input[4], int output[2] ) { bool restart; int i; int temp; do { restart = false; for ( i …

Member Avatar for thelamb
0
104
Member Avatar for ashish2234

I know its silly but once i tried this and output is not what it should be.. [code] #include<stdio.h> #include<conio.h> int main() { int i=0; i=i++; printf(i); } [/code] i MEAN post increment will store a value, say 0 here.and then increment but that value is given to the variable …

Member Avatar for genie0582
0
310
Member Avatar for feodal

I need to write a script that would fill in input field on some website, hit submit button which is a picture with java script function attached to it automatically and get result from a new page. It would all be need to be done automatically without user present. The …

Member Avatar for aladar04
0
70
Member Avatar for jrw89

I've been trying to learn C++ for about a year now and came across [URL="http://openbookproject.net/thinkcs/cpp/english/chap04.htm"]this excellent tutorial[/URL]. I can't leave anything alone so I changed some single quotes to double quotes and have the following code:[CODE=C++]#include <iostream> void printTwice(char phil) { std::cout << phil << phil << std::endl; } int …

Member Avatar for jrw89
0
567
Member Avatar for Madawar

Hi, I recently started using Linux and have come to find that it suits me better than Windows. I am a newbie in C/C++ programming and my questions are [LIST=1] [*]How suitable is Linux for learning C/C++ programming as most of the books i have come across are based on …

Member Avatar for lionaneesh
0
125
Member Avatar for shadiadiph

Hi I have never really bothered with javascript before but i am having alot of problems with a ajax php form my php code returns [code] if ($states==false) { $result = 'nostates'; $result = trim($result); return $result; exit; } [/code] And my javascript alert returns nostates but always executes the …

Member Avatar for shadiadiph
0
112
Member Avatar for NewOrder

[code]import java.io.*; class Ex4 { public static void main(String[] args) { Console console=System.console(); String input; System.out.println("Please enter the number"); input=console.readLine(); int number; number=Integer.parseInt(input); int sum; sum=((number/10)*10); switch(sum) { case 60: System.out.println("E"); break; case 70: System.out.println("D"); break; case 80: System.out.println("C"); break; case 90: System.out.println("B"); break; case 100: System.out.println("A"); number=100; break; default: …

Member Avatar for NewOrder
0
86
Member Avatar for trpsjt2008

Create Panel And ToolStrip in panel Panel Property [CODE] Dock = Dock At Left Or Right Or Buttom Or Top High = 40 Backgroundcolor = Black [/CODE] ToolStrip Property [CODE]Dock = None RenderMode = System GripStyle = Hidden Background = Transparent ImageScalingSize = 32,32[/CODE] U Can Extend any side by …

0
144
Member Avatar for Dimansu

Hi, I am using RDLC in my reports.Can someone tell me the syntax for IF THEN ELSE statement in RDLC? I want to write else if loop in my expression. Thnx in Advance

Member Avatar for chan_lemo
0
3K
Member Avatar for hirenpatel53

[CODE] using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data; using System.Data.SqlClient ; using System.Web; public partial class _Default : System.Web.UI.Page { static DataTable dtvalues =new DataTable(); protected void Page_Load(object sender, EventArgs e) { // dtvalues.Columns.Clear(); if (!Page.IsPostBack) { …

Member Avatar for Lusiphur
0
137
Member Avatar for invisi

Below is the code I wrote, for taking the arrow key imput, just wanted to share it and get some feedback thanks :) [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int number = 0; int number2 = 0; while(true) { int arrow = getch(); if (arrow == …

Member Avatar for invisi
0
189
Member Avatar for michtan

I use picture box to view web cam, it works. But i wan to add another transparent picture box on top with upload a picture transparent background circle . So when i open web cam there is a circle on the web cam. Is that possible? How to make picture …

Member Avatar for trpsjt2008
0
2K
Member Avatar for Olliepop

This code should get one random line from sample.txt and put it in Label1 - problem is that it's only getting line 2. Every single time. What's wrong with it? Please help. I bet it's something rediculously obvious but i can't find it :'( Thank you so much in advance. …

Member Avatar for Olliepop
0
113
Member Avatar for lllllIllIlllI

Hi I was wondering if there was any way in which using Python i would be able to move the mouse pointer and make it click at certain x and y values. This would be used in a Macro type machine for the mouse. I have looked around for modules …

Member Avatar for TrustyTony
0
2K
Member Avatar for dalip_007

hi everyone i am doing this <?php $strXML1 = "<chart caption='COST OF TURNOVER' subCaption='' showPercentValues='1' pieSliceDepth='30' showBorder='0'>"; echo $strXML1; ?> can anyone please tell me why echo $strXML1; does not out put anything. how can i do this. Thanks in advance.

Member Avatar for dalip_007
0
144
Member Avatar for Lusiphur

I'll preface this by giving a bit of an overview of what I'm trying for here. I'm trying to create a quasi-blog. Something that I can "post" journal type entries directly to a page in my website but without all the luggage that comes with the readily available blog engines …

Member Avatar for Lusiphur
0
164
Member Avatar for prajaktaran

Hi, I have develop a project on "Hospital Managment System". I want to run that project on client server system. what code or any chages I have to perform to run the project. Thank You prajaktaran

Member Avatar for prajaktaran
0
105
Member Avatar for coolla

Hey hi friends , I have created a project using Asp.net and ado.net but i dont know as how to connect it with iis server and give the url for that .. so some one guide regarding it so that i can run the website on different servers(intranet)...tat is as …

Member Avatar for coolla
0
119
Member Avatar for Thew

Hello everyone, I have a problem in my Borland C++ project. I need to use my own COM object written in C# (this COM allows me to directly print PDF files) in my another project in C++, but as soon as I call some COM functions which require a string …

Member Avatar for Thew
0
250
Member Avatar for BasicDinosaur

Hi. This may seem simple to most but has consumed 3 days so far and a bit of $$ trying to learn simple how to use Enter as a Tab (Yes I know it is a Fau-par but I need it regardless). The idea is to move the focus to …

Member Avatar for finito
0
253
Member Avatar for cwarn23

Hi all, I have ubuntu and just installed sqlite then edit the php.ini file accordingly but for some reason the class named ¨SQLiteDatabase()¨ reports as undefined. The error is as follows: [CODE]Fatal error: Uncaught exception 'SQLiteException' with message 'SQLiteDatabase::__construct() [<a href='sqlitedatabase.--construct'>sqlitedatabase.--construct</a>]: unable to open database: /var/www/vhosts/cwarn23/base' in /var/www/vhosts/cwarn23/php.php:3 Stack trace: …

Member Avatar for cwarn23
0
517
Member Avatar for Tom Desuza

Pls. help me? i need some suggestion to solve my problem on runtime error of jawascript ' e.g. Invalid Character' i am unable to sort out and fix it. [url]http://oraiko-demo.com/ES/index.php?osCsid=b94c8de7c7654125f5c807906b39fc0a[/url] ,, after login problem being started pls help me for fix it. Thanks Tom Desuza <EMAIL SNIPPED>

Member Avatar for Taywin
0
996
Member Avatar for n30h4x

My question is how would I implement sending arguments to a program running in the background? Can anyone point me in the right direction?

Member Avatar for n30h4x
0
205
Member Avatar for xdeja

[I]What I have accomplished so far... Design and implement a Nim class and a NimGame application to allow two human players to play the game of Nim. The game starts with four piles of stones. The first pile has 3 stones, the second pile has 5 stones, the third pile …

Member Avatar for Taywin
0
4K
Member Avatar for luskbo

I have a question that I hope someone can help me with. I have a website that I am loading dynamic content from a database. In my files and instruction I reference the contact page, that is only because that is the file I have been testing this on. Here …

Member Avatar for luskbo
0
235
Member Avatar for IconKana

Hi folks, I'm wondering how to close a VB6 multiform application using the red x on the main form. There should be a message box that lets the user confirm the exit ( yes ), or ( no ) resume the application. Thank You!

Member Avatar for kinwang2009
0
117
Member Avatar for mwattah

can anyone help me on for,while and do loops...i honestly don't get them!!!! can you show me samples of them???

Member Avatar for AuburnMathTutor
0
131
Member Avatar for MONabas

Hello programmers :) I'm new to the c# world as I only have c/c++ programming skills ... I needed a consultation for my graduation project ... any intervention is much appreciated :) I'm thinking about a program that automatically obtains the results of a multiple-choice-exam (auto correction)... it takes scanned …

Member Avatar for MONabas
0
118
Member Avatar for frankinaround

hi. wondering if someone can take a few min to help me out. Well im taking this opencourseware from MIT, intro to programing. I got this assignment [url]http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/pset9.pdf[/url] and I could do it on my own... the only problem is I dont understand what the hell they want me to …

Member Avatar for TrustyTony
0
264
Member Avatar for noobuser

hi guys is it timeconsuming to use memset instead of for? i mean suppose we have an array of int int prime[200000]; we use memeset(prime, 200000, 0, sizeof(prime)) also we can use for(i = 0; i < 200000; i++) prime[i] = 0;

Member Avatar for Ancient Dragon
0
207
Member Avatar for arthurav

Given the degree of the polynomial and a vector with the polynomial's coefficients is there a more efficient way to recursively calculate the polynomial result for a given x? This is what i have tried, and it works, but I am asking if there is a more efficient way to …

Member Avatar for arthurav
0
3K
Member Avatar for iamcreasy

This code is supposed to get one int and one string.But after entering the int, the [B]getline[/B] line is acting weird...it dont prompt me for any string input, rather then it shows the same value as the int. [CODE]#include<iostream> #include<string> using namespace std; int main() { int teacherID; string teacherName; …

Member Avatar for Bench
0
438
Member Avatar for DelilahDemented

I'm trying to use a switch statement in my code but I'm having a bit of difficulty. I have an error message I do not understand and do not know how to fix. The message reads, "switch quantity not an integer". I'm new to C++ and would appreciate any help …

Member Avatar for arkoenig
0
222
Member Avatar for Kedora19

The problem is, I'm beginner with php and have no idea what the difference between ajax and json. So if someone could clear that up first, that would be great. Now on to the bigger problem I found this validation script on this website: [url]http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/[/url] I have it working succesfully …

Member Avatar for Kedora19
0
172
Member Avatar for nazeem2005
Member Avatar for ericjohn
0
363
Member Avatar for Inny

my image veiwer has stopped working properly, I dont know why. It resizes as its meant to, but dosent pop the veiwer window. Can you find the problem? [CODE]<script type='text/javascript'> var popbackground="http://i14.photobucket.com/albums/a345/Instar/greenbgfade17oi.jpg"; //specify backcolor or background image for pop window var windowtitle="Image Viewer" ; //pop window title function detectexist(obj){ return …

Member Avatar for Inny
0
483

The End.