199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zhengcyy

I'm creating the a Card game c++ program and I got some problem. PLZ help!! I got few files: Main.cpp (ask user which card game he want to play) Card.h (creat rank and suit for cards) War.h, War.cpp (creats War game) TicTacToe.h, TicTacToe.cpp (creats TicTacToe game) Game.h, Game.cpp (required to …

Member Avatar for DeanMSands3
0
402
Member Avatar for pradeepamca
Member Avatar for srinidelite

Hello i was assigned for a task to find the Name and books Taken as a count from the given TWO array table , I wrote a program but it's not working , experts pls help me out!! commondata b/w the TWO ARRAY TABLES are - ID of a student …

Member Avatar for DeanMSands3
0
146
Member Avatar for sdevanab

Hi. I am having connection issue while connecting to using below string provider=IBMDADB2;Data Source=XXXX.XXXXX.COM:5000;Database=C2RCU0;Uid=s858;Pwd=cccc Getting error like database not found. But What i found was connection to mainframes it self was not happenning. Do i need to provide any other information or what i am missing here.. sConnection As String …

Member Avatar for Begginnerdev
0
1K
Member Avatar for claywin

Hi everyone, I've been having some troubles with this code (I'm a beginner). All errors are resolved and it runs, but as soon as it starts it says "main.exe has stopped working" and closes. I'd appreciate if someone could look over it and tell me what's wrong. main.cpp: #include "SDL/SDL.h" …

Member Avatar for Labdabeta
0
1K
Member Avatar for phaedrusGhost

I have looked at quite a few posts on the issue and there seem to be several ways of doing this which is causing me confusion. The validation errors are popping up properly but the form is sent without entry in the form fields. I have tried a few different …

Member Avatar for fobos
0
97
Member Avatar for kumaresen

i have a error in this program...i m tryin to write a java GUI program that converts character to corresponding integer and vice versa...tis is my code...can anyone help me solve the error???the error is : 1 error found: File: C:\Users\Kumaresen Nair\Desktop\Conversion.java [line: 58] Error: The local variable word may …

Member Avatar for stbuchok
0
162
Member Avatar for YCP1

Let's debate about the flaws and the benefits of Javascript and HTML/HTML5 and how effectivaly they work together. Lets also talk about what improvements you would like to see in future developments of both. i would love to see every ones opinions.

Member Avatar for diafol
0
245
Member Avatar for Lucaci Andrew

I was wandering what could be the causes of this error message? Like in general. `\\: *stopped,reason="signal-received",signal-name="SIGSEGV",signal-meaning="Segmentation fault",frame={addr="0x00402d53",func="Domain::Movie::show",args=[{name="this",value="0x1"}],file="..\\src\\Domain\\Movie.cpp",fullname="e:\\eclipse for c++\\workspace\\lb6-8oop\\src\\domain\\Movie.cpp",line="36"},thread-id="1",stopped-threads="all"` 10x.

Member Avatar for gusano79
0
712
Member Avatar for hypernova

Hi all! I was experimenting a little with scanf. I am posting the code and the outputs I am having prolems understanding: #include <stdio.h> int main() { char a,b,c; int d,e; scanf("%c%c",&a,&b);//-------------------(1) printf("%c %c\n\n",a,b); scanf("%d%d",&d,&e);//-------------------(2) printf("%d %d\n\n",d,e); scanf("%c abc",&a);//--------------------(3) printf("%c\n\n",a); scanf("%c abcdefgh",&a);//---------------(4) printf("%c\n\n",a); getch(); return 0; } In (1): Doesnt …

Member Avatar for hypernova
0
302
Member Avatar for vizz

following is my code,It need to include function on index.php. But, I want to make it **counter.js** I tried my best but I failed to make that. can anyone help me? <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> // JavaScript Function $(document).ready(function() { $('.slogan_main').slogan_main(); $('.slogan_social').slogan_social(); $('#social_media').social_media(); }); $.fn.extend({ social_media: function() { return …

Member Avatar for vizz
0
999
Member Avatar for veledrom

Hi, I'm getting `this.form undefined` error message when I submit it. Do I miss anything? Thanks function signup_scramble(uid) { alert(uid.value); return false; } <form action="do_signup" method="post" onsubmit="return signup_scramble(this.form.text_username)"> Username : <input type="text" name="text_username" value="" /><br /> Password : <input type="password" name="text_password" value="" /><br /> <input type="submit" name="submit_button" value="Signup" /> </form>

Member Avatar for veledrom
0
4K
Member Avatar for Johannady2

This is an attempt to stop the timer in this code: [Click Here](http://www.daniweb.com/software-development/java/threads/422817/how-do-i-stop-this-timer#post1805134) I just learned threads but I'm not sure if I'm using it right.. It doesn't have any erros when I compile it.. but it still doesn't stop the time. the clock starts when you enter "y" though.. …

Member Avatar for NormR1
0
325
Member Avatar for charisma

I built this page and I'm noticing it works fine in Dreamweaver browser but not in opera and safari and IE? What am I doing wrong? http://www.rendemolition.com/patio1.html

Member Avatar for charisma
0
87
Member Avatar for kukula

Hi there, at the beginning I must admit that I am not good at PHP. I made a few websites in HTML but now I don't know what happened and what to do with it. I wanted to change a few things at [http://www.tips2.pl/](http://www.tips2.pl/) which is made in PHP. Everything …

Member Avatar for kukula
0
201
Member Avatar for geansra

if Julian_Date > Base_Date : Target = (Julian_Date - Base_Date) % 28 print First [Target], Second [Target], Third [Target] Shift_Set = [First [Target], Second [Target], Third [Target]] elif (Julian_Date < Base_Date) & (Julian_Date != 28) & (Julian_Date !=0): Target = (Base_Date - Julian_Date) Shift_Set=[First[(28- Target)],Second[(28- Target)],Third[(28- Target)] else pass #the …

Member Avatar for vegaseat
0
125
Member Avatar for rashid_khan

Hey , i am new to visual basic.NET , i want to recognize a barcode device in VB.NET , further have to generate some barcodes using VB.NET and recognize barcodes through barcode device. so anyone can help me... Thank you

Member Avatar for Jeff-Bennett
0
174
Member Avatar for Jake.20

Good evening guys, I'm having a problem on my web page. I'm trying to store a data on my mssql but it's not saving anymore. but it was working perfectly this morning. it doesn't display any error so i don't know what happened. Thanks in advance.

Member Avatar for Jake.20
0
230
Member Avatar for albertHankock

So I need to write an ping client and server for my networking class. Server code is running no problem but I'm a bit lost on my client code. I copy and pasted the server code because I figured it would be easier to modify.. Please check this out.....THE PROBLEM …

0
336
Member Avatar for TrustyTony

Gribouillis has allready posted code similar to this in his snippets, but here version for input suitable for for expressions, generators and list comprehensions. Need to add robustness by some try...except blocks for real world use.

Member Avatar for vegaseat
0
553
Member Avatar for suganyar

when i move cursor on image in one location it should display some information, and moving cursor in another location ,and need to display some other information. help me with visual basic 6.0 code. thanks

Member Avatar for Jeff-Bennett
0
1K
Member Avatar for perllearner007

Hello all, I have tab delim file as follows #file1 #version1.1 #columns with the information as follows state1 class1 report_version_1.1 9428 4567 . . call=1;times=5;toss=head->tail;sno=A1B1;effect=positive state1 class1 report_version_1.1 3862 4877 . . call=1;times=5;toss=head->tail;sno=A1B2;effect=negative state1 class1 report_version_1.1 2376 4567 . . call=1;times=5;toss=head->tail;sno=;effect=positive state2 class1 report_version_1.1 4378 2345 . . call=1;times=5;toss=tail->tail;sno=A1B3;effect=positive,negative, both …

Member Avatar for perllearner007
0
231
Member Avatar for atasoulas

Hi, i need to know how to convert ms access database to work on sql. Any help would be appreciated. Thank you

Member Avatar for JorgeM
0
97
Member Avatar for eng_m

Hi guys. so I have been trying to solve this problem and I wrote a bit of which I think its part of the solution. so I would apreciate a help from you guys. The problem: A palindrome is a word, phrase, or any other sequence of letters that can …

Member Avatar for SanRubik
0
184
Member Avatar for buster2209

I have an xml file that looks like this; <?xml version="1.0" encoding="utf-8"?> <!--This file is generated by the program.--> <Product ID="23" Name="Soap" test="one"> <Price>10.00</Price> <OtherDetails> <BrandName>X Soap</BrandName> <Manufacturer>X Company</Manufacturer> </OtherDetails> </Product> I can use the following code to read the 'ID', 'Name', and 'test; XmlReader reader = XmlReader.Create("Products.xml"); while (reader.Read()) …

Member Avatar for thines01
0
192
Member Avatar for volscolts16

Evening to everyone. I have a new project that is rather lengthy, but I am almost done with it. Sorry about the long read, but I was hoping to answer any questions that you may have upfront by posting all that I know about this project. Thanks Here's the assignment: …

Member Avatar for deceptikon
0
4K
Member Avatar for mgn2683

How would I go about inserting a page break to occur within a repeat region for printing? I have a recordset pulling 222 records to be displayed. They want to be able to print each record on a page, so I would have to put the page break code in …

Member Avatar for aslamswt
0
12K
Member Avatar for Junior999

#include <stdio.h> #include <stdlib.h> int main() { begin(); } int begin() { long int b,res1,res2,res3; int a,c,d,e,f,i; printf("Enter first number: "); scanf("%d",&a); printf("Enter second number: "); scanf("%ld",&b); c=b%10; d=b%100-c; e=b/100; res1=a*c; res2=a*d; res3=a*e; f=a*b; printf("\n\n\n"); printf(" %d\n",a); printf("x\n"); printf(" %d\n",b); printf("________\n"); printf(" %ld\n",res1); printf("+ %ld\n",res2); printf(" %ld\n",res3); printf("_______\n"); printf("%d\n",f); system("PAUSE"); …

Member Avatar for deceptikon
0
104
Member Avatar for luvrahul30

Please Tell me how to scan a source file in c..suppose a file i am giving as input and i have to scan that files for different things...can anybody help me!!!!!

Member Avatar for deceptikon
0
120
Member Avatar for GH23

I'm working on a mobile application that is meant to send the device's GPS location to a server ever minute or so. We might adjust the time later depending on data usage and how useful a minute interval is when tracking our drivers. The interval between polls will be no …

Member Avatar for GH23
0
87
Member Avatar for poojavb

Hello Friends... I need help on regular expressions.... I tried the following way but it did not work for me....please help me to create a regular expression... ^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(^[a-zA-Z0-9@\$=!:.#%]+$) My requirement is -> Min 8 to 15 characters - this I will do with the length validation or by including in …

Member Avatar for poojavb
0
250
Member Avatar for Stjerne

OK, hello guys. I'm trying to make an image fit a JPanel. What I mean is to set a maximum size on a image, depending on how big the JPanel is. I'm using a JSplitPane to show some images. On the lef side I'm using a JList, and on the …

Member Avatar for JamesCherrill
0
658
Member Avatar for anand01

Hi all, Now i am learning Jstl , The amin advantage of jstl is to avoid scriptlets ad avoid hard code in jsp , But still we have to code using <c:if>,<c:forEach>,<c:choose> etc , then wh ywe are using jstl , pls some one guide me. thanks in advance ..

Member Avatar for anand01
0
124
Member Avatar for hwoarang69

warning: int format, pointer arg (arg 2) i have no pointers this function :( main.. functions.... functions. int test(char num) { int total[SIZE]; printf("%d",total); fflush(stdout); //no pointers return 0; }

Member Avatar for deceptikon
0
239
Member Avatar for codemonkey88

Is anyone on here using FCKeditor filemanager? I know its quite old now, but it came with a CMS. I have been trying to upload some large zip files using the filemanager, but it just says unvalid file. When I've had a look round on the net, I found a …

Member Avatar for codemonkey88
0
115
Member Avatar for anuj.juthani

I am developing a IE toolbar using MS VISUAL STUDIO 2010 VC++ I have a popup menu, having two options WEB SEARCH and IMAGE SEARCH. my problem is the pop up menu works fine when i see the output in DEBUG mode ... The pop up menu works fine even …

0
214
Member Avatar for minbor

Hi everyone, I have a web page where a fields needs to be validated if another is not empty. e.g. 'date' needs to be checked if 'quantity' has a number in it. I’m not exactly a pro with .net and am fiddling with compare and custom validators. All help on …

Member Avatar for absb
0
144
Member Avatar for Johannady2

WHEN I put void in this method.. it says *"void type not allowed here"* in my if statement. but when I erase the void in my method.. it says *error: invalid method declaration; return type required* in the method... what should I do? public void setStop(int day , int hour …

Member Avatar for NormR1
0
438
Member Avatar for Soubhik

import javax.swing.JPanel; import javax.swing.ImageIcon; import java.awt.Image; import java.awt.Graphics; import java.awt.Graphics2D; class View extends JPanel { Image icon1,icon2; public View(){ ImageIcon i1=new ImageIcon(this.getClass().getResource("tile1.png"));//image I drew ImageIcon i2=new ImageIcon(this.getClass().getResource("tile2.png"));//image I downloaded icon1=i1.getImage(); icon2=i2.getImage(); } public void paint(Graphics g){ super.paint(g); Graphics2D g2=(Graphics2D)g; g2.drawImage(icon1,10,10,null);//this image is not displayed g2.drawImage(icon2,200,200,null);//this image is displayed } } …

Member Avatar for NormR1
0
186
Member Avatar for rkumaram

Hi, I am creating a small page with the help of jquery , What I want is when I click on **shortdesc** TR class, only the corresponding **fulldesc ** TR class should be visible. Currently Its showing all the **fulldesc** TR clasees. Please help me to solve this. Following is …

Member Avatar for rkumaram
0
230
Member Avatar for Acidz

Hi, been sometime since I posted here... Okay strait to the point: I'm having trouble getting my head around coordination system for a game. So lemmy explain a example; I use panda3d which uses python, ofc i'm programming in python. So the question. I want to create a coordination system …

Member Avatar for Acidz
0
207
Member Avatar for mehrantahir

Hi everybody, So, 'Litmus', a web app for testing emails and webpages across browsers and email clients, has a proprietary method that they claim is able to track not just opens, clicks, browsers, etc (standard with an embedded image and pass-through link tracking.) What's unique is they claim that they …

Member Avatar for mousecraft
0
263
Member Avatar for ftrzjocelyn

Hi, I'm a new java user, working on a brute-force knights tour algorithm in linkedlist. The move function worked perfectly (for a while), I mean, the pointer could move forward, or backward if a wrong path was chosen. But all of a sudden, it returned me a stackoverflow error. i'm …

Member Avatar for JamesCherrill
0
571
Member Avatar for manhthaodn

For the purpose of synchronizing data in sql server, such as: **1. Synchronize data between servers and client 2. When loss of internet, the client can still work based on the data required to run on the client. 3. When have the internet connection, data from workstations to be synchronized …

Member Avatar for maniat123
0
131
Member Avatar for dbsp

I am trying to sort an ArrayList of Strings using the Merge Sort algorithm. However, I am having an error where it occurs on line 67 **`result.set(i,right.get(r));`** Where I get the IndexOutOfBoundsException. I have tried printing out the index of the result, and it seems to be that I am …

Member Avatar for wen_cai
0
824
Member Avatar for reco21

Hey Everyone. Im using jquery's Validation plugin to check post values before I submit a form. Im trying to check a mysql table column to match user name to check for a duplicate name before submitting. This snippet of code below works as expected.. [CODE]<?php $request = trim(strtolower($_REQUEST['login'])); //sleep(2); usleep(150000); …

Member Avatar for reco21
0
209
Member Avatar for showman13

Hi, I have a question that on the surface is probably pretty simple, but with a couple of caveats... What I have is a membership site, where the members have a replicated website, and their personal link is the domain.com/username I use htaccess MOD ReWrite to capture the members username …

Member Avatar for showman13
0
256
Member Avatar for UFO Disko

Hello, I'm trying to get mysql data with a simple select statement, I need to get the number of the row as well. The table should like this: 1 - Song Name, Artist 2 - Song Name, Artist 3 - Song Name, Artist The problem is with the code I'm …

Member Avatar for vibhaJ
0
50
Member Avatar for kairoland

I'm not very good with php or mysql so I can't figure out what I'm doing wrong. I get this error: Failed You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tests,'20120508,'5.5,'20120508)' at line …

Member Avatar for kairoland
0
431
Member Avatar for riahc3

Hey I have the following: <?php echo $_COOKIE["name"];?> <?php echo $_item->getId();?> With the $_COOKIE["name"] having a value of "hi" and the $_item->getId() having a value of "5" (or 5, irrelevent as it is all strings) what if I want to do something like (fake nonworking code): concat joins 2 strings. …

Member Avatar for vibhaJ
0
149

The End.