199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sDanyal

I am going to build a 3d racing game but i failed to make sky. Can anyone tell me that how can i create sky in game Please tell me some methods or tricks for creating sky. Also can anyone give me example program which is compile-able so that i …

Member Avatar for SgtMe
0
171
Member Avatar for aviavyne

Hello, I have a problem which goes like this. I need to be able to design a simple class, which i have done, and it must represent any numeric value, which includes a decimal and negative value. So i need to overload the operators, because the '%' will make an …

Member Avatar for Clinton Portis
0
256
Member Avatar for knellgust

[CODE]#include <iostream> using namespace std; class NumDays { private: double hours; double days; public: NumDays(double h=0) { hours=h; days=h/8.0; } void setHours(double h) { hours=h; days=h/8.0; } double getHours() const { return hours; } void setDays(double d) { hours=d*8.0; days=d; } double getDays() const { return days; } NumDays operator …

Member Avatar for jonsca
0
101
Member Avatar for JoeyWong

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to …

Member Avatar for JoeyWong
0
85
Member Avatar for youlichika

I want to post value from index.php, then get the value by self without refresh the page. one botton with two values, I want explode them and finally get $namea and $nameb. then use them in other php part. but when I use echo $name, in the source code, I …

Member Avatar for saiprem
0
175
Member Avatar for unika010690

i have a project my next task is to display the item selected from my listview to the textbox in the other form heres my code on the listview Public Class listemployee Private Sub listemployee_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Create the column headers. ListView2.Columns.Add("EmployeeID", …

Member Avatar for codeorder
0
6K
Member Avatar for brycematheson

I'm making a Sudoku game. When reading in from a file, I would like to convert all of my "0" to blank spaces. However, no matter what I do, those "blank spaces" always turn to "32" because, that's the value of a space on the ASCII Table. How do I …

Member Avatar for xikkub
0
166
Member Avatar for coco24

Hello all: The task is to: Create a row of Alien attackers, class RowOfAlien, patterned after the partially filled array. Put five Aliens in the row. When the row hits the left or right of the screen, the Aliens snake downwards (see demo). Note that this is different from the …

Member Avatar for coil
0
181
Member Avatar for Dante2

Ok, I am trying to access my table via php. I have a successful connection to the server and a successful selection of the right database on the server. But I keep getting this error message when I try to run my query line through the mysql_fetch_array() finction: Warning: mysql_fetch_array(): …

Member Avatar for Dante2
0
363
Member Avatar for sandeep789

I am Sandeep Dave. I am animator and designer. I am flash game (cooking games, dress up game, escape game, shooting game, any flash game developer).

Member Avatar for lamxuan
0
93
Member Avatar for anithajerome
Member Avatar for anithajerome
0
66
Member Avatar for berwick53

I've been learning C/C++ and I'm currently doing an ATM project. It all works fine but I would like to improve it so when i quit the program and it will load the data used previously. currently I use a struct like this [CODE]struct database { int pin, sort, account, …

Member Avatar for taylorc8
0
178
Member Avatar for JeremyJ

Hi, Can someone help me with the CURL library using GCC on Cygwin? I can't find anything in the documents that explain exactly how to compile with g++. For instance: g++ -I curl CurlSample.cpp gives me errors such as: /tmp/ccrXZUYr.o:CurlSample.cpp:(.text+0x17): undefined reference to `_curl_easy_ init' I'm using gcc version 4.3.4 …

Member Avatar for JeremyJ
0
749
Member Avatar for ndkv

I have problem how to calculate mutiple checkboxes on the panel. ex: 24 roses with a bear: This costs $72 or 1000 points and $12. 14 Lilies: $24 or 360 points [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.border.*; import java.io.*; import java.text.NumberFormat; public class customerInfoGUI extends JFrame …

Member Avatar for quuba
0
1K
Member Avatar for b1izzard

Hi all, I want to compile the cobol program with a click of a button in toolbar provided if its compiler location and command to compile is specified. e.g [CODE] c:\cob>cobol hello.cob 'command line equivalent [/CODE] VB equivalent: [CODE] Dim command As String command = "cd " & app_path 'app_path="c:\cob" …

Member Avatar for b1izzard
0
183
Member Avatar for pichi20

Hey, I'd appreciate if someone would help me modify this code so the descending order can be displayed on the screen , here it is.... [CODE] #include <iostream> // ostream #include <vector> #define SIZE 10 using namespace std; int partition(vector<long unsigned int> & a, int start, int end) { unsigned …

Member Avatar for pichi20
0
1K
Member Avatar for Toxic_Rice

Hello, everybody! I am kind of new to the forums, and I will do my best to follow the rules when posting a new thread. I am to create a program that is supposed to generate 30 random integers between 10 and 200, and insert them into a Heap. The …

Member Avatar for Toxic_Rice
0
237
Member Avatar for akamini

Hi This code, compiles fine but results in a segmentation fault and when I comment out the part which adds the null character then the segmentation fault doesn't appear and it removes whitespace from the beginning but not the end. [code] #include <ctype.h> #include <string.h> #include <stdio.h> char *trim(char *s) …

Member Avatar for Narue
0
192
Member Avatar for nitins60

Hello friends, I am new to java and enum use. Actually I need to give only 3 options to customer for Payment Type. So i thought of using enum and making the limited members of Payment [CODE]enum PaymentType { CHEQUE, CREDITCARD, CASH }; public void Customer(String name, PaymentType paymentType) { …

Member Avatar for quuba
0
107
Member Avatar for newbiecoder

hello I have a piece of code starting like that: [CODE] #include <iostream> #include <conio.h> #include <stdlib.h>[/CODE] When I have try to compile this with g++ with a command as:[B] g++ new.cpp[/B] I get this error: new.cpp:2: fatal error: conio.h: No such file or directory I couldn't find where is …

Member Avatar for skorm909
0
116
Member Avatar for adams161

I'm a little self taught at java. I have a package: package: package org.newdawn.spaceinvaders there's folders like org and newdawn are created and nested. the main is Game.java at end of those folders. How do i run it? i went to the end folder and typed java Game that didn't …

Member Avatar for adams161
0
95
Member Avatar for luke noob

this is my code... [code=javascript] $(function() { $(".Like").livequery("click", function(e) { var ldl_session_id = $("#session_id").val(); var name = $("#commentName").val(); var ldl_id = $(this).attr("id").replace("post_id",""); var parent = $("#display_like_names-"+ldl_id); // var parent = $(this); $(this).fadeOut(200); $.ajax({ type: "POST", url: "ajax_like_names.php", data: "ldl_post_session_id="+ldl_session_id+"&ldl_post_id="+ldl_id, cache: true, success: function(html) { parent.html(html); parent.fadeIn(200); } }); return false; …

Member Avatar for luke noob
0
788
Member Avatar for adiiz

[B]I have this XML code and I want to print value of UserName and Email on console.Can you help me??[/B] [CODE]<?xml version="1.0"?> <USERS> <User> <UserName>abc</UserName> <Email>abc@gmail.com</Email> </User> <User> <UserName>abc</UserName> <Email>abc@gmail.com</Email> </User> <User> <UserName>abc</UserName> <Email>abc@gmail.com</Email> </User> <User> <UserName>abc</UserName> <Email>abc@gmail.com</Email> </User> </USERS>[/CODE]

Member Avatar for Diamonddrake
0
348
Member Avatar for ujsiriwardana

I want to undestand how session arrays working. can u explain below code please. $_SESSION['ddc']['price'] I want to undestand what is doing in ['ddc']['price'] . Are they separate arrays or 2-D arrays.

Member Avatar for P0lT10n
0
99
Member Avatar for suvra123

Hi, How can I store youtube latest vedio in my mySql database dynamically. I want all the latest data will store dynamically at a perticular time. Suppose, if I click the video and copy and past the link from youtube in my site, it will display that link, but I …

Member Avatar for P0lT10n
0
95
Member Avatar for haye321

I am trying to create a PHP bot for a project for my cs classs that will automatically log me in to a site and perform certain tasks once that is complete. I have been doing some research and I believe the best way to acomplish this would be wish …

Member Avatar for haye321
0
468
Member Avatar for gnarlyskim

Next project in my C++ course is to create a class Polynomial to add, subtract, multiply by a scalar, and multiply by another polynomial. I've written my code, and it works fine when I run it, but there's an application that is provided by our instructor to compare my .exe …

Member Avatar for Calista Flock
0
2K
Member Avatar for rebellion346

So, when I run the program and try to list all the information I get an interesting error message that pops up: ----- Debug Assertion Failed! Program: ...ocuments\Programs\C + + Programs\Checkbook\Debug\Checkbook.exe File: f:\dd\vctools\crt_bld\self_x86\crt\src\tccpy_s.inl Line: 19 Expression: (((_Src))) != NULL ----- Though I have an idea that it probably has something …

Member Avatar for rebellion346
0
234
Member Avatar for islam-morad

Hello Guys, I don't know where to start. I'm a little confused. i'm 23 years old, graduated from the faculty of commerce. Now, i'm a student at [URL="http://www.uopeople.com"]university of the people[/URL] majoring in computer science. I realized that i want to be an engineer. When i was a kid, i …

Member Avatar for islam-morad
0
149
Member Avatar for CHawk619

I have a couple of C++ labs that I need to finish before the end of the semester and I have been beating my head against this computer for days and I am not getting the code to work. I need some serious help. I need to get these done …

Member Avatar for CHawk619
0
165
Member Avatar for digan

Can anyone see any way of improving this? [CODE]//____________________________________________________________________________________________ // START #include <iostream> using namespace std; int maxQ, total1; //____________________________________________________________________________________________ // CLASS(ES) class Queue { int array[]; public: //variabes int count; //constructors Queue(); Queue(int q); //functions void add(int i); void take(); }; //constructors initialization Queue::Queue(int q) { array[maxQ]; count = …

Member Avatar for arkoenig
0
96
Member Avatar for PieterA

Hi all I'm having a List of Entity's here which I would like to traverse. I want to call the function DisplayEntity for every node. Here's the catch: I have expanded the Entity class (same name different namespace) to have SDL data and methods. So basicly what I'm trying to …

Member Avatar for PieterA
0
197
Member Avatar for kerp

Hi everybody, this text turned out to be rather long and maybe not so clear, please excuse me. I'm currently using the winsock library to send and receive data in an application made with WinAPI, I'm not using MFC. I'm using asynchronous sockets (I think that's what it's called) which …

0
181
Member Avatar for corrwee

Hey guys I'm having some trouble with a homework question from Zelles python. I have to make a Set class then test a variety of methods. However my teacher wants us to just use lists and not actually sets. I'm getting an error for the setElements method, it keeps saying …

Member Avatar for SgtMe
0
248
Member Avatar for Philosophy

I am just wondering if there is a way to put the following code into a loop or two so that it is easier on the eyes and doesn't take us so many lines. I have not been able to think of a way to do this with so many …

Member Avatar for Philosophy
0
438
Member Avatar for shishh

I have a problem when I try to compile my code. Sorry in advance for non-english language in code.. npipe.c:78: warning: passing argument 1 of ‘sprintf’ makes pointer from integer without a cast /usr/include/stdio.h:361: note: expected ‘char * __restrict__’ but argument is of type ‘char’ npipe.c:80: warning: passing argument 2 …

Member Avatar for gerard4143
0
590
Member Avatar for cableguy31

I have a webpage with a form that collects an ID number. Within the page I have validation with PHP to make sure the number entered is in the right format. What I need to do is, if validation is successful, pass that id number to a new php page …

Member Avatar for cableguy31
0
247
Member Avatar for killerpopiller

Problem with storing extracted values in SQLite - How to adress or index list of values for proper insertion into table. The Regex works fine: input logging data looks like: 0.0.0(06026104) 1.6.1(0.1501)(1011111000) 1.6.1*32(0.1446)(1010190800) 1.8.1(02484.825) 1.8.1*32(02449.574) correct regex output: 06026104 0.1501 02484.796 [CODE] with open("usage.log") as fp: for line in fp: …

Member Avatar for killerpopiller
0
244
Member Avatar for ems11

Hi i am in the final stages of my hangman program and need some pointers. I've gotten to a point where i am stuck and need a fresh pair of eyes to help me go over some of my problems any advice given will be greatly appreciated. [CODE]import java.util.*; import …

Member Avatar for jon.kiparsky
0
130
Member Avatar for shiftee

Hi all, I have a simple question that I can't find the answer to i'm using the following Exam.java (interface) ExamImpl.java (implementation) ExamFactory.java (interface) ExamFactoryImpl.java (implementation) The ExamFactory interface says the newExam() method return type is "Exam" The ExamFactoryImpl code currently returns "ExamImpl" Is this a problem?? i.e. Are Exam …

Member Avatar for JamesCherrill
0
286
Member Avatar for amari ♥

hi guys! please help me understand anything about recursion and iteration ways of coding. :) (maybe some overview, details or something) thank u. we haven't had any further discussion about this. ;p but our teacher gave an exercise that goes like this: make a program that gets the summation of …

Member Avatar for saad749
0
227
Member Avatar for Sal Shah

PLEASE COULD YOU HELP ME IN CREATING A DOT GAME IN JAVA? ******************************************************* THIS IS MY ASSIGNMENT *************************************************** Design and develop an interactive visual 'stand‐alone' event‐driven Java application implementing the “Dots Game”. This is a two‐player game in which each player clicks in turn on a dot from a matrix …

Member Avatar for Sal Shah
0
116
Member Avatar for Joey_Brown

Hello. I have encountered a following problem "find all duplicate letters in a 2d char array and replace them with '@'" So for instance if I have this : a a b c The output would be @ @ b c So. I have come up with the following algorithm …

Member Avatar for Joey_Brown
0
125
Member Avatar for enchuk

Hello everyone, i need help with using recursion in writing quite a simple code, but i'm kind of lost with recursion. The assignment is: When the user enters a certain amount of whole positive numbers and presses enter, the main function calls to the recursive separate functions that do the …

Member Avatar for enchuk
0
113
Member Avatar for Helpjava11

Please Help I am trying to make a counter that when i click a button it adds .01 to a running total. Below is the code I have created but when i click on the button it adds one and deletes the bid button [CODE]<html> <form> <input name = "count2" …

Member Avatar for Airshow
0
145
Member Avatar for NFS1

Hi, I am new to the programming world and have recently been told by my teacher to complete 5 questions on pseudo code. I am finding it very difficult to do this and would greatly appreciate it if someone can help me complete them. I have attached the questions to …

Member Avatar for RykeTech
0
176
Member Avatar for destruct0

Hi !!! I wish to use multi dimensional List<T> is this possible? Can i do this somehow? Thanks in Advance !!!

Member Avatar for croker10
0
96
Member Avatar for dschuett

Hey everyone, This is my first attempt at pagination. I seem to have everything working pretty well except for one slight problem. Example: If I search for a PO Number containing the number 10. My query returns all the correct information along with the correct pagination links, however, Let's say …

Member Avatar for dschuett
0
681
Member Avatar for koushikG
Member Avatar for d5e5
0
194
Member Avatar for coril

So far, I have: [CODE]def printSquare(x,y): for z in range(0,x): print(x*y)[/CODE] printSquare(3,'%') prints out something like this: %%% %%% %%% instead of using the '*' operation, is there a way to print x numbers of y separated by commas (for better spacing) ie: print(y,y,y)?

Member Avatar for Gribouillis
0
574

The End.