132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for drake2212

I am having an issue. I need to check whether the user enters a digit greater than 0. If so the user needs to be reprompted. If 23409932 is entered then the 0 entered should be caught and the proper messaage displayed. Here is my code and please somebody help. …

Software Development c++
Member Avatar for rahul8590
0
90
Member Avatar for tomtetlaw

How do I load 3D meshes from a .x file, and extract the material data from it? Also, how do I apply a texture to the loaded mesh?

Software Development c++
Member Avatar for tomtetlaw
0
183
Member Avatar for mahela007

I have some pretty basic questions about the different types of numbers in python (and other languages). What is the difference between an integer and a floating point number? I'd appreciate a detailed answer explaining some of the fundamentals.

Software Development python
Member Avatar for Gribouillis
0
158
Member Avatar for cmrhema

Hi, We have an asynchronous server socket program, which works fine BUT, when due to some circumstances, I receive null data or blank data, the server goes to infinite loop Here is the code [CODE]namespace SocketServer { public class StateObject //class created to clear the duplicate records { // Client …

Software Development client-server
Member Avatar for jagadeeshwaran
0
279
Member Avatar for bestnone

i keeps getting error i going to break my head to solve this problem =.= what i am doing is using the a[3][3] to minus 128 but seem i get the problem in minus [CODE]#include <iostream> #include <iomanip> #include <cmath> #include <cstdlib> using namespace std; double shifted_block(double array[3][3]); int main …

Software Development c++
Member Avatar for jonsca
0
141
Member Avatar for ms_farenheit1

I am working on writing a class to define an NxM matrix. A matrix should be printed in the form: [0 1 2] [3 4 5] [6 7 8] [CODE]private: //matrix class member variables unsigned int rows; unsigned int cols; float * data; // constructor matrix::matrix(int r, int c) { …

Software Development c++
Member Avatar for Fajer91
0
110
Member Avatar for bamcclur

[CODE] //////////////////////// /////counter.h file///// //////////////////////// #ifndef _COUNTER_H #define _COUNTER_H class Counter{ private: int counter; int limit; static int nCounters; public: Counter(int arg, int arg); void increment(); void decrement(); int getValue(); static int getNCounters(); }; #include "counter.cpp" #endif ////////////////////////// /////counter.cpp file///// ////////////////////////// #include <string> #include "counter.h" Counter::Counter(int a, int b){ counter=a; …

Software Development c++
Member Avatar for bamcclur
0
451
Member Avatar for johndoe444

Hi, The problem I am facing is that I don't understand the code mentioned in the following: [CODE]25: /******** this is the main thread's code */ 26: int main(int argc, char *argv[]) 27: { 28: int i; 29: int retvals[NTHREADS]; 30: 31: /* init retvals */ 32: for (i=0; i<NTHREADS; …

Software Development c++
Member Avatar for bamcclur
0
168
Member Avatar for crazyboy

hi again every one ... in my computer , tools -> folder option ... we can select check box like show full path in address bar or show full path in titlebar. that same thing i want to do it through code or thorugh API?? how can i achieve this …

Software Development api
Member Avatar for crazyboy
0
103
Member Avatar for Vivek_1986

HI!, i'm using VB.NET 2005. I want to use OleDbConnection in my .net application but it is not showing in the 'Data' section of the 'toolbox'. is there any way to import it to the toolbox. NOTE: (Also OleDbDataAdapter, SqlConnection,SqlDataAdapter, etc are missing in toolbox) Waiting for reply newbee Vivekanand

Software Development vb.net
Member Avatar for Rakesh_Sonu
0
1K
Member Avatar for fllee

hi everyone, i am new in C#. and i had some problem on socket(TCP) program. i want to write a program that receive a RFID reader data. but i never learn about socket programing. can anyone help me... thank you

Software Development
Member Avatar for jagadeeshwaran
0
288
Member Avatar for rafta

In this code I want to have a function to show average of movies saw by students, how to define and declare and call it in this program: [CODE]#include <iostream> #include <iomanip> using namespace std; /****************Function Prototypes******************/ void displayList(int [], int); //function to display array void getAverage (int [], int); …

Software Development c++
Member Avatar for jonsca
0
86
Member Avatar for zemly

Plz help me. I am unable to understand this problem statement. Can Plz someone help me? [B]Problem Statement: File Handling in C/C++[/B] On the basis of the given scenario create a file Expenses.txt, Open the file and copy into another Expenses2.txt, Also show output on screen A college has announced …

Software Development c++
Member Avatar for zemly
0
128
Member Avatar for crazyboy

hi friends ... i want help regarding file management in windows. what i want to do is , Keep track of all files and folders created or deleted during a period of time. for example , during 5 to 6 pm somebudy else is using my computer. so at that …

Software Development file-system queue
Member Avatar for crazyboy
0
196
Member Avatar for python.noob

Hai friends, I have a question which is very fundamental.. After installing boost python and bjam from ubuntu 9.04 repositories i can't find a clear detailed description about compiling and running the boost python program from it's tutorials .. Can any among you please tell me what are the options …

Software Development python ubuntu
Member Avatar for python.noob
0
703
Member Avatar for Mitja Bonca

I`ve done an application and I then I published it. That did a setup.exe file. If I want to install it on my pc its all ok, but if I want to install it on some other pc, there is an error. It`s still lookingfor the path I have the …

Software Development
Member Avatar for kvprajapati
0
193
Member Avatar for tomtetlaw

How do I load 3D models that are in the .x format from DirectX 9? I am trying to make a simple engine and this is the part where I am stuck at.

Software Development c++
Member Avatar for tomtetlaw
0
87
Member Avatar for thebluestar

Here is the problem:write in saparate function without using global variable 1/(function input)enter N in the range [0,20], then enter N numbers 2/(function display)Display N numbers in 2 columns Here is my source code [CODE=C] #include<stdio.h> #include<conio.h> void Input(int *p,int n) { int i; do { printf("Enter N numbers u …

Software Development c
Member Avatar for death_oclock
0
108
Member Avatar for cokacola

The purpose of the program is to take a position and count how many "pixels" are in the "blob". If there is no "pixel" aka the value is 0, the blob number is 0. If there is a pixel, the blob_check function recursively checks the surrounding cells for "pixels" aka …

Software Development c
Member Avatar for death_oclock
0
119
Member Avatar for new programer

Hello all, I did this program below, it is meant to get a student name then 5 of his/her grades sums them up in a void function and calculate the average but outputs the average from the main the problem is that the loop goes on and prints the prompt …

Software Development c++
Member Avatar for ScottieF
0
168
Member Avatar for redmaverick

[code] public void init() { // Assign values to the rectanagle coordinates. // Add the MouseListener to your applet } public void paint(Graphics g) { // Rectangle's color g.setColor(Color.green); g.fillRect(rect1xco,rect1yco,rect1width,rect1height); g.setColor(Color.red); // When the user clicks this will show the coordinates of the click // at the place of the …

Software Development java
Member Avatar for redmaverick
0
88
Member Avatar for KRal

// I am new to C++ and can not seem to get the falling man to output to the screen. Any help would be greatly appreciated. [code] #include <iostream> #include <windows.h> using namespace std; void DrawBar(char guess); int main() { char solution[8]; //holds solution char blank[8]; //holds "*"'s for unsolved …

Software Development c++ puzzle
Member Avatar for KRal
0
186
Member Avatar for python user

I've been thinking recently about how cool it would be to make a rpg/text adventure game where you could fight monsters- in my case fallout3 inspired mutant hicks from the game point lookout. I have the room classes. (I can give code later in the day). how would i make …

Software Development python
Member Avatar for Mathhax0r
0
133
Member Avatar for maverick405

I just want to know what does the below mentioned function means? [CODE][COLOR="Green"]void swap(char& a, char& b)[/COLOR][/CODE]

Software Development c++
Member Avatar for mrnutty
0
77
Member Avatar for Ryujin89

I am probably well on the wrong path with this one which is why I can't get the program to compile in the slightest. The assignment instructions are : [quote]The Frozen Tongue Ice Cream Shop sells six flavors of ice cream: chocolate, vanilla, strawberry, mint, rocky road, and mocha. The …

Software Development c++
Member Avatar for Ryujin89
0
148
Member Avatar for bubblegum09

can some one help in this code because their is two error in my code. need reply ASAP. please. [CODE] import java.util.*; public class Card { private int point; public Card() { Random r = new Random(); //2-10 point = r.nextInt(10); while(point<2) { point = r.nextInt(10); } public void setPoint(int …

Software Development java
Member Avatar for jasimp
0
118
Member Avatar for rafta

here is my codes basicallysorting works but now i have to set a counter to display out the contents of array1 and array2 each pass of the sort. the problem is where to put that counter???? [CODE]#include <iostream> #include <iomanip> using namespace std; // Function prototypes void showArray1(int [], int); …

Software Development c++
Member Avatar for rafta
0
269
Member Avatar for plobby

I am working on some homework right now and the program has to return two specified values depending on the key value the user enters. I only had to write the bottom portion of the program as the top portion was given to me as a shell. It runs but …

Software Development c++
Member Avatar for plobby
0
129
Member Avatar for nevets04

[CODE]import xchat hooker = None __module_name__ = "Away Script" __module_version__ = '1.0' __module_description__ = "States that your away" def away(word, word_eol, userdata): chan = xchat.get_info('channel') xchat.command("msg " + chan + " I'm Away") def toggle(word, word_eol, userdata): global a if word[1] == 'on': xchat.hook_print("Channel Msg Hilight", away) xchat.command("echo Loaded") elif …

Software Development python
Member Avatar for nevets04
0
80
Member Avatar for itzaaron

Okay where should I begin.... I have this rather asinine program that as of right now only asks the user what quantity of dollars and particular coins they have then just spits out what was imputed. I need to add in a 'child' class that does all the following -Add …

Software Development c++
Member Avatar for itzaaron
0
306
Member Avatar for Mattokun99

Hi, Very new to Python and still stumbling around but need some help. As part of a larger script, I'd like to run a routine that checks for the existence of a file once a second for about 3 minutes and if it suddenly appears, carry on with the rest …

Software Development python
Member Avatar for Mattokun99
0
83
Member Avatar for _dragonwolf_

I am writing a simple program that is supposed to take a user input and convert it to char and for each char it should change it to the designated change. I'm using switch statements to do this. Ex. blue b = bravo l = llama u = union e …

Software Development java
Member Avatar for jasimp
0
110
Member Avatar for gispe

Hi! im startin programmin in vb.net. in the program im doin now, im workin with a global variable 'public library as new biblioteca' that has should be a list of books that user wants to load. thing is that when i try to delete a book, i have to check …

Software Development vb.net
0
80
Member Avatar for Kaotic07

Hello again, I'm having trouble with a program that I have to write involving classes and arrays. Essentially i have to create a class Theater, which I am not sure how to do. The theater has 15 rows with 30 seats per row, and each row is assigned a price …

Software Development c++
Member Avatar for Kaotic07
0
109
Member Avatar for duke.tim

this is a simple example of a problem I have been having with differing programs, i am using linux ubuntu 9.10 and codeblocks 8.02 . this is the code [code] #include <iostream> using namespace std; int main() { int hiya; cout<<"hello world \n"; cin.get(); cout<<"enter a number \n"; cin>>hiya; cout<<"you …

Software Development c++ ubuntu
Member Avatar for Nick Evan
0
261
Member Avatar for bobinson

Could anyone pls help out with the logic of codes that uses Choice menu. The choice buttons were created with its items(3 in this case) I have another sets of 9 buttons in an array Each button,when pressed gets a corresponding value from an array of integers defined elsewhere The …

Software Development java
Member Avatar for Ezzaral
0
88
Member Avatar for kumaran21

Hi all, Can some please have a look at the codes below and tell how I can make the switch statement accept the value from the variable named answer. I think the switch statement only accepts certain data type but I don't know to make this work. Please help me …

Software Development java
Member Avatar for JamesCherrill
0
159
Member Avatar for annaqah

hello, I'm happy to participate in this forum and this is my first post. our instructor gave us an assignment to design an id using C# windows application and i don' know how to put vertical line using label or any thing thanks in advance

Software Development
Member Avatar for ddanbe
0
327
Member Avatar for maverick405

I wonder if anyone can tell me how the code tags works? As per my understanding does it works like: [CODE]MY CODE HERE.....[/CODE] for the enitre block of code? or I need to do this for every line of code?

Software Development c++
Member Avatar for maverick405
0
229
Member Avatar for nunchuckie

Hi, I've just started with c++ and I have no clue how to do this. Right now I have a code that just printing out the text lines in my file and how many lines there is just to check that i can read from my file... But what I …

Software Development c++ file-system
Member Avatar for rahul8590
0
137
Member Avatar for Dum_

Hi, i would like that when pressing the key example "M" to call some code. Same as Ctrl+Alt+Delete and TaskManager but in my case i have process in background which maybe can be used for this?

Software Development
Member Avatar for Geekitygeek
0
182
Member Avatar for rahulprasad

hai frnds, Now i am doing by academic pjt on Face Recognition using Neural Network. But it will require to identify the face region in a simple background. Face region should contain fore head,eyes,nose. Any one pls help me Thanks in advance

Software Development image
Member Avatar for eilana
0
175
Member Avatar for jeniferandrews

[code] import java.io.*; import java.sql.*; import java.net.*; public class sqlDemo { int eno; ResultSet rs; ResultSetMetaData md; String /*insq,*/ selq; Statement stmt; public sqlDemo() { try { Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver; DatabaseName= Admin.sdf", "sa", "deepa#247"); //BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); //System.out.println("Enter Employee id"); //eno=Integer.parseInt(br.readLine()); stmt=con.createStatement(); selq="select * from emp"; //insq="insert into emp …

Software Development java
Member Avatar for jeniferandrews
0
323
Member Avatar for abdelhakeem

Hello All ,This is me again :icon_mrgreen: I'm Making a programme which tell the user to input the name of the product he wants to show its Price and Amount ,but i have a problem: Here's The Code [CODE] #include <iostream> #include <conio.h> using namespace std; struct Shop { int …

Software Development apple c++
Member Avatar for abdelhakeem
0
106
Member Avatar for SagarSonu

Hello All, I am creating the array of size: 26627664 bytes then convert the byte to char array. While deleting the array i got an code gaurd log error that Bad Parameter. I am doing like this Char* pBuffer = (Char*)new BYTE[26627664]; and deleting like this, if(pBuffer != NULL) delete[] …

Software Development c++
Member Avatar for Narue
0
109
Member Avatar for Mouche

This is a split from another thread. I'm trying to think of a good way to simulate action other than just a hit/miss list. I want more complicated results andalso so that the character doesn't always die... Hmmm... okay. So I think I would do it like this: my_str = …

Software Development python
Member Avatar for python user
0
267
Member Avatar for vegaseat

Here is an example I was thinking of ... [code=python]import random import time def delay(seconds): time.sleep(seconds) def shuffle_hitlists(my_hitlist, mo_hitlist): """shuffle the two lists and return the result""" random.shuffle(my_hitlist) random.shuffle(mo_hitlist) return my_hitlist, mo_hitlist def battle(my_hitlist, mo_hitlist, my_strength, mo_strength): # player starts swinging first for k in range(len(my_hitlist)): my_hit = my_hitlist[k] mo_hit …

Software Development python
Member Avatar for python user
0
736
Member Avatar for maverick405

The code below runs fine but I want some help how can I get output of my original input and reverse of that i.e. ABCDE Z. WXYZ ---> EDCBA .Z ZYXW The below is the code for this. [CODE] #include <iostream> #include <cstring> using namespace std; void swap(char& a, char& …

Software Development c++
Member Avatar for Narue
0
82
Member Avatar for GTJava

Hey, getting a new error in my code... Its almost done, cant figure out what is wrong with this. ERROR: non-static method isPrime(int) cannot be referenced from a static context [CODE] import java.util.Scanner; public class primenumbertest { public boolean isPrime(int x){ int divisor = 1; do{ divisor += 1; } …

Software Development java
Member Avatar for GTJava
0
151
Member Avatar for Ponomous

so i guess there must be some sort of an error in my logic but on line 119 i started a counter that only goes up when a pair is made in the game. Since there are a total of 8 pairs, i set that when the counter is 8 …

Software Development c++
Member Avatar for Ponomous
0
120

The End.