132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blahblah619

Help please! How do I change this so I input the letters instead of numbers? I'm confused. I want to make it so I can enter "R" instead of "0" etc. Also, I don't know where to put an if-break for the user to enter "Q" or "q"... [code] #include …

Software Development c++
Member Avatar for SeeTheLite
0
3K
Member Avatar for Falkoner1

Okay, I'm trying to have a linked list autonomously delete itself, however, the destructor function I am using doesn't seem to work, it just keeps constantly looping, until the program just ends itself. Here's the function: [CODE]node::~node() { if(this->next != NULL){delete this->next;} delete this; }[/CODE] Basically, this should run through …

Software Development c++ linked-list
Member Avatar for Falkoner1
0
171
Member Avatar for mimis

Can i make a function with a vector<int> parameter instead of an int array?

Software Development c++
Member Avatar for NicAx64
0
92
Member Avatar for Nemoticchigga

I have a struct. I want to declare a pointer to that struct. Now I want 10 of those structs. How is this declared? I have tried (call the struct foo for example): foo* test[10]; when I make a call to test[0]->whatever or test[5]->whatever it seems to always write to …

Software Development c++
Member Avatar for MrSpigot
0
116
Member Avatar for daviddoria

This simple example fills a vector with numbers 0-9. Then I use find() to find where the 7 is. Then I saw online you can get the index by simply subtracting V.begin() from the iterator that find() returns. Has - been overloaded for iterators to do some magic and return …

Software Development c++
Member Avatar for StuXYZ
0
95
Member Avatar for Andrewsc1

alright basically what the program does is convert Kilograms into pounds, then displays its on a table. There are two problems i am having the first one is getting rid of the even numbers. I've been trying combinations of modulator and the NOT expression and so far have been unsuccessful …

Software Development java
Member Avatar for Andrewsc1
0
109
Member Avatar for turbomen

I need to write a program that asks a user for their new password, to check that they have entered it correctly they must verify it by entering it again. If the two passwords matach then you accept the change and tell the user that they have been successful on …

Software Development pascal
Member Avatar for FlamingClaw
0
91
Member Avatar for jessica2009

[code=python]def main(): print (" PC : Hi there.whats your name?") userit = raw_input (" user :") print (" Pc : Nice to meet you " ) , userit , userit = raw_input(" Do you like python? (A=Its Great, B=Its Ok, C=Its Rotten)") if userit == A: userit = userit.upper() print …

Software Development python
Member Avatar for vegaseat
0
129
Member Avatar for snap!

ok so i am going to be taking a c++ course next semester and was wanted to get better knowledge so i have a proble that i was givin that am having some trouble, just some pointers on where/how to start will be helpful... Im not sure how to set …

Software Development c c# c++
Member Avatar for rahul8590
0
94
Member Avatar for turbomen

Question: I am to write a comparison program that outputs true mathematical statements. Ask the user for two numbers, and then output one of the following statements number1>number2 number1<number2 or number1=number2 The user must also be able to keep running the program with different numbers, when they have finished running …

Software Development pascal
Member Avatar for FlamingClaw
0
88
Member Avatar for serkan sendur

hi guys, i downloaded eMbedded Visual C++ 4.0 and when i run setup.exe it asks for a serial number, where can i find it? thanks

Software Development c++ microsoft
Member Avatar for jbennet
0
2K
Member Avatar for turbomen

A positive integer is entered from the keyboard. If it's even, all even integers from 2 up to and includng the entered integer are displayed. If odd, all odd integers from 1 up to and including the entered integer are summed, and the sum displayed. Please help me again.

Software Development pascal
Member Avatar for FlamingClaw
0
91
Member Avatar for konczuras

Hello everybody! There's something I can't figure out myself. I'd like to use an hscrollbar for setting a float value. The float would be from 0 to 1, like 0.02, etc. So I'd use the integer value of the hscrollbar, and divide it by 100. But if try it, I …

Software Development
Member Avatar for konczuras
0
140
Member Avatar for Valaraukar

Hi, I am basically writing a program that reads in ASCII files exported from 3ds max in order to reproduce an object in OpenGL. My code works fine for one object and I've even got it working for two as long as the second object contains less vertices/facet windings than …

Software Development c opengl
Member Avatar for nucleon
0
195
Member Avatar for Talguy

For a project I am working on we're using libserial to communicate with out hardware. the problem with libserial is that when you call read() it returns an unsigned char and readline() returns a string. We're encoding our collected data from four sensors into 32 bit unsigned integer if I …

Software Development c++
Member Avatar for Talguy
0
116
Member Avatar for ctrl-alt-del

Hello all! I have yet another question. Since I'm making good progress in learning C# I'd like to learn some new stuff that I have been putting off and to clean up my code. As such it seemed like a good idea to try and create a frontend for a …

Software Development
Member Avatar for ctrl-alt-del
0
140
Member Avatar for songweaver

Hey guys I am having a problem knowing where to start on writing this Leap Year program that wants a day number output. Here is the scenario: Write a function [I]dayNumber[/I] that returns the day number (1 to 366) in a year for a date that is provided as input …

Software Development c++
Member Avatar for songweaver
0
699
Member Avatar for sgw

A question/curiosity: When using the time function, why must the argument be 0, as "time(0)"? I tried other numbers and it gave error.

Software Development c++
Member Avatar for ArkM
0
23K
Member Avatar for shahab.burki

Hi, I want to read an integer value from console, but my input returns the ASCII value of integer, Please Help me. [CODE]import java.io.*; class Test{ public static void main(String args[])throws IOException{ BufferedInputStream br=new BufferedInputStream(System.in); System.out.println("Enter an Integer"); int i=br.read(); //int j=(int)i; System.out.print(i); } }[/CODE] Thanks

Software Development java
Member Avatar for ejosiah
0
116
Member Avatar for javaman2

hi everyone, i need help with an assignment that i'm having trouble with. I need to create a class called Money whose objects represent amounts of money, with two instance variables of type int for the dollars and cents in the amount of money i got the constructors down but …

Software Development java
Member Avatar for darkagn
0
708
Member Avatar for Tank50

Hi Once I complie below coding part,it give me error meassage.The Error Meassage is Error . [COLOR="Red"]The name 'CurrentOutLet' does not exist in the current context[/COLOR] BelowI write my coding [CODE]. public SqlDataReader Current_outletReport(string code, string startdate, string enddate) { try { SqlDataReader CurrentOutLet; SqlConnection con; string str = "SELECT …

Software Development
Member Avatar for Tank50
0
95
Member Avatar for guest7

Hi, I am comparing two file to find if they have common strings. My program is not doing that and I cannot figure out the reason. Any help is appreciated. Following is my code: [CODE]int main() { FILE *inf1 = fopen("file1.txt","r"); FILE *inf2 = fopen("file2.txt","r"); int numcols = 11; char …

Software Development c++
Member Avatar for MrSpigot
0
95
Member Avatar for zaohin

i've got this last year question from my senior. i've tried to solve it on my own but i think it's not suit with level now. so, anyone please could help me to write the codes as my final exam is coming soon. kindly post the solution through this site …

Software Development c++
Member Avatar for ithelp
0
104
Member Avatar for duaneg

Hi Again, Is there anybody out there who wants to discuss visual basic ? I don't have any formal training, but I have a deep interest in all aspects of programming in VB. So if anyboby has the same interest and feels that you can teach me a thing or …

Software Development visual-basic
Member Avatar for abu taher
0
91
Member Avatar for ganmo

hello, I've been pondering on a thing here for while now. The thing is that I want to read in several of integers, which I've fixed. And the problem now is that I want to output the integers I have input. The thing is that I only want to output …

Software Development c++
Member Avatar for ganmo
0
128
Member Avatar for sweet_girl

hi , I need to know how can I connect Microsoft access with VB,I need to have wide space in programming in MS access...regards

Software Development microsoft microsoft-access visual-basic
Member Avatar for abu taher
0
130
Member Avatar for rouba

hi i really need help i am really lost in this program if any one can help me with it plz contact me on my email [I] <<mail id snipped>>[/I] (using c++ program) 1. Write a computer program that implements the recursive merge sort. The input to the program must …

Software Development algorithm c++
Member Avatar for ithelp
0
190
Member Avatar for massivefermion

Hi I just finished reading C++ the complete reference by herb schildt (almost a quarter ago)so i feel i can program in c++ but i don't know what to write.could you give me some problems that their answers involve a lot of c++ features? thanks a lot

Software Development c c# c++
Member Avatar for ithelp
0
147
Member Avatar for myboo11009

I am trying to write a math tutoring program for students. A very basic outlay of ceretain components. This program should have the user select addition, subtraction, multiplication or division. user should also have the capeability to exit the program and quit it. I tried writing some code for this, …

Software Development c++
Member Avatar for ithelp
0
1K
Member Avatar for jessica2009

python program to engage a user in conversation.requirements are a. firts question should ask the user for name .this name should then be used with the following questions b.Ask 4 more questions c. Each question should have 3 possible answers.That us option A,B or C(only) d. Have a different comment …

Software Development python
Member Avatar for jessica2009
0
103
Member Avatar for boydale1

I have to write a class for a new "home-made" string class, and I do not know how to attack the operator>> . I will provide my class constructor and what i tried... [code] String::String( const char A[] ) { char X = A[0]; int pos = 0; Length = …

Software Development c++
Member Avatar for Ancient Dragon
0
82
Member Avatar for Dragonsfire

I'm trying to write a simple deque program that lets you add/delete numbers and display them at will. The code is as follows. User.cpp: [code] #include <iostream> #include "Doth.h" using namespace std; int main() { char choice='m'; int n; Deque call; while(choice!='q'||choice!='Q') { cout<<"Menu:"<<endl; cout<<"[A] Add to the front"<<endl; cout<<"[B] …

Software Development c++
Member Avatar for Dragonsfire
0
123
Member Avatar for teh_man

[COLOR=black]Hey all i am trying to make an XML file but I'm getting an error. The error is [/COLOR][COLOR=black]The XML page cannot be displayed [/COLOR][COLOR=black]Cannot view XML input using XSL style sheet. Please correct the error and then click the [/COLOR][URL="http://javascript<b></b>:location.reload()"][U][COLOR=black]Refresh[/COLOR][/U][/URL][COLOR=black] button, or try again later. [/COLOR] [COLOR=black]A name contained …

Software Development html-css javascript xml
Member Avatar for GDICommander
0
264
Member Avatar for shea279

does anyone have a function laying around to secure delete a file from the hard disc with X passes of random data? ive been trying to find this code forever on google, and everything I have found has just been skimpy .NET programs

Software Development c c# c++
Member Avatar for ArkM
0
691
Member Avatar for jimjohnson123

I am working on a program and need to make a friend, deconstructor, and copy constructor..... I was given this formula for the destructor and completely confused... cout << value1 << value2 I also do not seem to see a whole lot of information on copy constructors and friends so …

Software Development c++
Member Avatar for ArkM
0
147
Member Avatar for haven_u

0x241f8e0 0x241f8e4 0X241f8e8 0x241f8ec 0x241f8f0 0x241f8f4 0x241f8f8 0x241f8fc 0x241f900 0x241f904 After printing adress of a 2D Array of size 2x5... this is the out-put printed...can someone help mi with explaining the trend.....Is it something like printing consecutive memory blocks??? please help mi out of my confusion..... thanks in advance for …

Software Development c++
Member Avatar for GDICommander
0
100
Member Avatar for power_computer

Let say I have a line for numbers 2 4 5 8 7 9 1 3 and i want to sort them in numerical order how would i do this? I found a similar topic but it was of no help someone said to do bubble sort and then everyone …

Software Development c++
Member Avatar for GDICommander
0
98
Member Avatar for krm08

Hello friends, I need an urgent help.I'm doing a project in asp.net which uses vb.net as back end language.I'm using sql 2005.My problem is that I can't retrieve the data from database,but I can insert the data into the table. [code=vb.net] Partial Class MasterPage Inherits System.Web.UI.MasterPage Public login As New …

Software Development asp.net open-source vb.net
Member Avatar for raul15791
0
201
Member Avatar for harrykokil

how can threading in python help me in my traffic simulation project? can i use it to detect other cars?

Software Development python
Member Avatar for scru
0
67
Member Avatar for littlespy

Hi all, I'm working on a programming assignment for class and after trying a few things on my own I got stuck. Basically my function will take a string and count the number of times each word in the string occurs in the string. For example this string: The brown …

Software Development c
Member Avatar for nucleon
0
100
Member Avatar for WaelTheNoble

Dear All, I want to open another exe file in my C++ program. Let the exe file be A.exe. So I used shell execute inside my C++ program to open the file but as A.exe writes in a file certain data that I will use in the next step of …

Software Development c++ file-system flash
Member Avatar for WaelTheNoble
0
3K
Member Avatar for lancevo3

Alright, I've started learning array recenetly and have to write a program using them. I am having problems getting started on it, the notes we received seem very unclear. Here is the link to the instructions I have to use. [url]http://www.cs.niu.edu/~abyrnes/csci240/pgms/240pgm7.htm[/url] Basically I just want some pointers to get me …

Software Development c++
Member Avatar for SeeTheLite
0
271
Member Avatar for ZeRo 00

Guys...I am writing a program in Java which includes writing different panels where i need to pass values from one panel to another. i.e I have got a combo box to choose a title and i need to get the performances for that title in my next panel. So can …

Software Development java
Member Avatar for JamesCherrill
0
112
Member Avatar for bluebird

I am writing a program to record score of a cricket match. One array stores information of batting teams and the other array stores information of bowling team. The program has to read the information of the teams and depending upon the user’s choice, it must displays either the batting …

Software Development c++
Member Avatar for tux4life
0
110
Member Avatar for MJV

I have the following code that executes an sql stored procedure and I pass a customer name and customer contact to the procedure to use to create a new record in a table. When I execute the stored procedure in sql it inputs the customer and contact in the new …

Software Development open-source
Member Avatar for JerryShaw
0
119
Member Avatar for brianhickey

Hey Guys, I was wondering could someone point me in the right direction. Getting an error: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. What my code is doing is checking for the earliest date in one table(tblBookedTimes) and assigning this to earlydatestart. Then I want …

Software Development gui
Member Avatar for JerryShaw
0
98
Member Avatar for lilkid

[ATTACH]9572[/ATTACH] Hello basically ive parsed a website's data into an object. I wrote it to file and read it back in to write to a dictionary. but when i read it in it reads it like 3 times. so im a bit confused as to why ad would like to …

Software Development file-system python
Member Avatar for lilkid
0
128
Member Avatar for killhha

so i have this animation (yes i know its very long): [code=animation] begin; {main program starts} clrscr; {clears screen of any text} textcolor(9); {turns the text blue for the logo animation} writeln('MMMMMMMMMMMM MMMMMMMMMMMMM'); {logo animation starts} delay(logo); writeln('MMMMMMMMM MMMMMMMMMM'); delay(logo); writeln('MMMMMMM MMMMMMMM'); delay(logo); writeln('MMMMM8 ..MMMMMM'); delay(logo); writeln('MMMM. MMMMM'); delay(logo); writeln('MMM, …

Software Development pascal
Member Avatar for FlamingClaw
0
1K
Member Avatar for jspeakers

Hi there, Can any one help me, I am trying to import a wave audio file apparently I have to remove the header file or something like this can any one advised me please.

Software Development audio c c# c++
Member Avatar for jspeakers
0
83
Member Avatar for farhan.foxtrot

Running this file returns the error: Exception in thread "main" java.lang.NullPointerException at Packet.<init>(test.java:20) at test.main(test.java:46) here: line 20 : this.data[i][j] = data[i][j]; line 46 : Packet packet = new Packet(4,data,count,column); can anyone help ma how to create this constructor that accepts String[][] ? [code] class Packet{ int op_code; String[][] data; …

Software Development java
Member Avatar for Ezzaral
0
99

The End.