132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lady_lyssa

hi, im a beginner in using C++... i have a project due in a few days and i've been trying to do the program for a week now... we're supposed to make a program that would allow the user to enter any polynomial equation (always = 0), asks the user …

Software Development c++
Member Avatar for iamthwee
0
212
Member Avatar for c_crash

hi I'm trying to write a game where I play against the computer...and as u see below..I really suck at it.. can someone pleeease help me..I want it to be as simple as possible.. thanks input random game = raw_input("Your turn. Input the coordinate for your move on the form …

Software Development python
Member Avatar for jlm699
0
131
Member Avatar for CD-4+

[code]#include<stdio.h> # include<stdlib.h> struct manager { char name[10]; int age; int salary; }biocon,panacea,serum; manager *p; int opt; int main() { printf("DATABASE FOR BIOCON manager\n"); printf("Please enter name: \n"); scanf("%c",biocon.name); printf("Please enter age: \n"); scanf("%d",&biocon.age); printf("Please enter salary: \n"); scanf("%d",&biocon.salary); printf("DATABASE FOR PANACEA manager\n"); printf("Please enter name: \n"); scanf("%c",panacea.name); printf("Please enter …

Software Development c++
Member Avatar for Ancient Dragon
0
103
Member Avatar for pymatio

Attached is a project that lets you control a sports league. If you enter these teams: [CODE] FOO A FOO B BAR BAZ [/CODE] & the restart the program it should print out something like this: [CODE] FOO A vs BAR FOO B vs BAZ [/CODE] but it doesn't it …

Software Development c c# c++
0
85
Member Avatar for turtail

I have a problem to understand the following code. Can anybody please help me to understand it. indication = MediumIndication::IDLE; catIndication = bb->subscribe(this, mi, getParentModule()->getId()); catRadioState = bb->subscribe(this, cs, getParentModule()->getId()); catDroppedPacket = bb->getCategory(droppedPacket); Specially, in this "bb->subscribe(this, mi, getParentModule()->getId());" part. Here 'MediumIndication', is a Class, 'mi', 'cs' are object of …

Software Development c++
Member Avatar for Ancient Dragon
0
133
Member Avatar for why1991

I have my code and it compiles, and makes sense to me, but I must have something wrong because it only puts out 0's on everything except 1. There is something I am missing, and I don't see it yet. [CODE]import java.util.Scanner; public class MyBestFreon { static int max; static …

Software Development java
Member Avatar for VernonDozier
0
175
Member Avatar for MrNoob

hey i m here supposed to extend calculator of K&R to support getline i made it but i dunno everytime i keep getting 0 poped not the numbers itself i debuged it i couldn't find where the bug is so hopefully someone will tell me what i m doing wrong …

Software Development c
Member Avatar for MrNoob
0
165
Member Avatar for sireesha.c

Hi, i am working on splitting .wav files with bitrate 13 kbps,mono, sample rate 8 khz and audio format GSM 6.10.my code is like this private void SplitFile(string FileInputPath, string FolderOutputPath, int OutputFiles) { string inputFile = FileInputPath; // Substitute this with your Input File FileStream fs = new FileStream(inputFile, …

Software Development audio
Member Avatar for DdoubleD
0
499
Member Avatar for rp_prasanna

I just have to increment values from 0 to 23 using <c:foreach> tag in select box. This is the code snippet <html:select property="schStartTimeHH" styleClass="tableDataTextStyle1"> <c:forEach var="i" begin="0" end="23"> <html:option value ="<c:out value="${i}"/>"><c:out value="${i}"/></html:option> </c:forEach> </html:select> the value of the option tag is hitting an error. Can any one suggest the …

Software Development html-css java
Member Avatar for Thirusha
0
1K
Member Avatar for allensmith

I have to manipulate strings so that, we need to check if a string needs to be combined with another string. Need to use a library function for this. Suppose, we have S1. This is an apple s2. apple is sweet so, the combined line should be: This is an …

Software Development algorithm apple c
Member Avatar for c coder
0
90
Member Avatar for naziatarannum

Hi, can anyone please help me on this. I dont understand as to why am getting this error.. Please, please help on this! fortesting purpose I have commented certain lines.. [CODE]"Pre_s2a_leadtime.sh" 55 lines, 1233 characters #!/bin/csh # Check if program is already running and echo a time stamp for the …

Software Development shell-scripting
Member Avatar for naziatarannum
0
772
Member Avatar for hery

Hello, when i input to database show error cannot convert type varchar to type numeric.. I' m using convert(numeric, quantity). Where my quantity is empty. Please help me. Thanks

Software Development sql visual-basic
Member Avatar for manoshailu
0
114
Member Avatar for neithan

I'm new to C++, and i've seen some C and C++ code. I tried array[] and vector<> so i see i can use both, why should i use what way to work with vectors? Furthermore, i've seen a lot of "array[]" in this forum... so, any lead? Thank you! Oh …

Software Development c c# c++
Member Avatar for neithan
0
385
Member Avatar for jakesee

hi, just want to ask, is it possible to restrict friend acess to a single class member function only? in other words, if class A grant class B friend access to class A member function, then class B can call that class A function. *note: this is suppose to be …

Software Development c++
Member Avatar for dkalita
0
135
Member Avatar for dhaval_shah

I've created the following generic method [CODE] protected int GetSpecifiedIndexByName<T>(T collection, string itemName) { int count = 0; foreach (MyElement claim in collection) { if (itemName.Equals(claim.Name)) { return count; } count++; } } [/CODE] Which is called by [CODE] int index = GetSpecifiedIndexByName<MyCollection>(claimColl, itemName); [/CODE] However, when I compile this …

Software Development
Member Avatar for dhaval_shah
0
175
Member Avatar for katamole

A quick question: I have been writing a small program to simply read a file and send to cout. [CODE]#include <iostream> #include <fstream> using namespace std; int main() { char ch; ifstream in_stream; in_stream.open("self.cpp"); while(!in_stream.eof()) { cout << ch; in_stream.get(ch); } in_stream.close(); return 0; } [/CODE] This works ok, except …

Software Development c++
Member Avatar for dkalita
0
2K
Member Avatar for Anupama G

I have a textbox which is present inside a gridview.The text box should take only date in mm\dd\yyyy format as its input.Can I do this without using any validation controls???

Software Development
Member Avatar for Anupama G
0
113
Member Avatar for bobsta

Hi, I am writing a geometry engine using homogeneous coordinates (4D representing 3D Euclidean coordinates) used for perspective projection. This is handled by two classes a 4-Vector "fourVector" and a 4x4 Matrix "fourMatrix". For speed I have not (yet) separated class and member function declaration from definition. [CODE]class fourVector{ public: …

Software Development c++ open-source
Member Avatar for dkalita
0
144
Member Avatar for M Arifur Rahman

I want to get the reverse of the 5 digit number but i'm not getting it. I don't know where is the problem.I'm a beginer.In my book book there is a similar kind of problem where it's mentioned that the input value should be less than 32767.my question is why? …

Software Development c
Member Avatar for c coder
0
105
Member Avatar for swolll

Do any of you have aim or google talk or email that I could ask some C++ questions through?

Software Development c++
Member Avatar for ithelp
0
93
Member Avatar for xyz12

Hiiiii I m making an window application, in which i have written some text in the text property of the form, but i want that when application is running, in that case form text should not be displayed..... And i don't want to use the form property: FormBorderStyle-->None, Because in …

Software Development
Member Avatar for xyz12
0
114
Member Avatar for saintb

trying to make a program(game) for two players. the game has an interface and three text fields "player1","player2", and "winning amount". the interface also has a button called rand which when pressed generates random numbers from 1 to 10 and assigns them to a particular field. assuming that the first …

Software Development java
Member Avatar for ithelp
0
515
Member Avatar for fazzer2

Hello people I have jusrt recently started to study C/C++ and I am using Borland 5.02. I am having a problem examining my outputs. when I run a successfully compiled program the Dos window that I should read my print from flashes on then flashes off:'( and I do not …

Software Development c++
Member Avatar for fazzer2
0
157
Member Avatar for goboman

ok so im making a program that finds postage rate according to its weight and category. The category is standard for weights under 50g and other for over 50g. If the user enters a weight out of its category it will say error and close. and it only works for …

Software Development python
Member Avatar for jice
0
90
Member Avatar for pelupelu

I am having a hard time identifying numbers in a text. Is there a way to recognize numbers?

Software Development python
Member Avatar for jice
0
86
Member Avatar for avirag

I have made an application in which there are two textboxes such that as I am writing in first textbox ,it automatically appears in second textbox. Like for enter key we can apply any functionality on enter key press event ... Is the same thing possible for spacebar key too...... …

Software Development
Member Avatar for avirag
0
908
Member Avatar for Superfat

Is there a way to tack a variable onto the end of a print.drawString so it would show up like Text: <variable> Or: [CODE]page.drawString ("Text: " object1, x, y);[/CODE] Where object1 is the variable. I tried doing that, but i get an error ")" Expected on that line, i suspect …

Software Development java
Member Avatar for tonyjaa
0
104
Member Avatar for KimJack

Hi all, I wondering how to get started with this. I am working on a method that will take two ints. These ints represent positions in an arraylist of characters. I am trying to determine if the elements of the two positions are equal. If, so display the elements, if …

Software Development java
Member Avatar for masijade
0
161
Member Avatar for Nishara

I am using C#.net.I want to delete a datarow from the sql server database table when the delete button is clicked.Specific row should be selected according to a text field value.Say user enters a userID to a text box...then he clicks delete button to delete the relavent row. Please help …

Software Development sql
Member Avatar for sknake
0
99
Member Avatar for triumphost

Ok the code below is supposed to edit a file called license.dat and replace texts in it... it works great it does all that but I want to implement user input in it. By this I mean I want the user to be able to enter the drive letter for …

Software Development algorithm c++ engineering ios
0
80
Member Avatar for new programer

Hello all, As my name indicates, I am a new programmer. I was doing a program which calculates the roots of a quadratic equation but unfortunately there seems to be something wrong as it ignores my if statements! Please take a look at my code and I'd appreciate your help

Software Development c++
Member Avatar for new programer
0
79
Member Avatar for Zohar

Hi, This is a very basic question, but I can't seem to get working, I've a set of numbers that I need to display in the following, this is a class function btw. The ouput should be something like { 1, 2, 3, 4, 5} (there are {} brackets and …

Software Development c c# c++ display
Member Avatar for Zohar
0
268
Member Avatar for prinju

can any one give me a c program for finding the length of the string and also to compare it with other strings with the help of linked list

Software Development c c# c++ linked-list
Member Avatar for DangerDev
0
91
Member Avatar for scrace89

[CODE]# This file contains python code that will determine whether a potivie range # of integers entered by the user will contain odd or even numbers, prime or # composite numbers, perfect/abundant/deficient numbers, square numbers, and # triangular numbers. def main(): import math firstNum = 0 secondNum = 0 n …

Software Development python
Member Avatar for Gribouillis
0
582
Member Avatar for suricata

I have this code: [code]typedef struct { unsigned short a, b, c, d, e, f, g, h; }est_; est_ est[512];[/code] I want to know if there is a way to access to a variable of est by this kind of thing: [code]var='a'; est[1].[var]=0;[/code] Yes, it doesnt work but, there is …

Software Development c
Member Avatar for suricata
0
260
Member Avatar for thoutmosis

Hi guys, I got a file having this kind of records: 000000000111GOOGLE 5428[B]MG[/B]45525[B]RC[/B] 000000000122MICROSOFT 8565[B]MG[/B]85454[B]RE[/B] 000000000044APPLE 5814[B]KL[/B]484545[B]RC[/B] I want to keep only the records that have 'MG' in position 34 and NOT ('RE' or 'RD') in position 41 What should I add to this code? #!/usr/bin/python infile = 'DATA' input …

Software Development python
Member Avatar for thoutmosis
0
71
Member Avatar for StaticX

Hi ,im having a problem with my do while loop,basically I want it to loop so long as the users attempt is less than 10. However,it just doesnt want to seem to let me do this.Ive tried putting the "attempts++" several places through the loop as i thought this might …

Software Development c++
Member Avatar for bennie22
0
146
Member Avatar for Peric

So...I'm working on VB.NET application and I'm wondering if I could make rounded corners of panel? One of my ideas is to make image (with Photoshop) in a size of panel and put it into background of panel...the thing is, this works but application is running very slowly and "weird" …

Software Development vb.net
Member Avatar for kvprajapati
0
151
Member Avatar for swolll

New Question. I end the output to one file (fout1) and try to start it to a new input and output file, using this code: [CODE]" fout1.close(); } cout << endl << "Detailed employee reports have been printed in " << fileOutput1 << "." << endl << endl; cout << …

Software Development c++ file-stream file-system
Member Avatar for Ancient Dragon
0
363
Member Avatar for 666kennedy

i currently am developing a program that monitors a folder, if anything new is added to the folder it is then copied to another folder. the code i have so far is [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace filemover { class Program { static void Main(string[] …

Software Development file-system
Member Avatar for DdoubleD
0
141
Member Avatar for minigweek

Hi, I am working on building a C# Winforms application which will allow me to login to a forum or site and perform certain tasks. I am stuck at the very 1st step. I cannot login to the forum. Here is what I have tried so far, the [B]Login[/B] button …

Software Development c# http-protocol
Member Avatar for hohy
0
1K
Member Avatar for triumphost

Below is the code that I have to find the Mac address of any pc (physical host ID) I struggle to make it print to a file but now i have a problem... It prints MAC Address: XX-XX-XX-XX-XX-XX to C:\\Physical-Address.txt but I only want it to print the XX-XX-XX etc …

Software Development c++ data-structure file-stream file-system
Member Avatar for triumphost
0
146
Member Avatar for froggy1976

Good evening, I am writing a program in C++ for a Tic tac toe game. Here are my directions: Create a C++ console application that allows two players to participate in a tic-tac-toe game. The program will be responsible for deciding who wins the game. The program should include the …

Software Development c c# c++
Member Avatar for froggy1976
0
329
Member Avatar for Star Frost

I have been struggling with this one for a day now and I cant seem to figure out if my problem is syntax or simple impossibility. The function in question looks something like this: [CODE] string *function( string temp[] ) { string sides[ 4 ]; // code return sides; }[/CODE] …

Software Development c++
Member Avatar for Star Frost
0
127
Member Avatar for armyofone83

Ok so i am trying to redo my inventory program but the problem is that it won't run because i don't have a main method. Every time i try to put a main method in I get an error. Is there something wrong with my code thats keeping me from …

Software Development java
Member Avatar for BestJewSinceJC
0
142
Member Avatar for george21

I am getting an error that says "The type Chapter165 must implement the inherited abstract method ActionListener.actionPerformed(Action Event). Can someone help me with where I went wrong? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class Chapter165 extends JFrame implements ActionListener { private JTextField inputMile = new JTextField(10); private JTextField outputKm …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
3K
Member Avatar for sbhavan

I have to create my own FTP Client in Java. Can anybody help me in the following. Which and all libraries or packages should I use. Which and all documents/tutorials I have to read Thanks in advance.

Software Development java
Member Avatar for iamthwee
0
91
Member Avatar for ineedhelp3

i am haveing alot of problems in my computer programming 1 clas in school and was wondring if any people on here would be kind enough to help me out with some programs 1 of them is this i need to make a basic program in the compiler that allows …

Software Development c c# c++
Member Avatar for Grn Xtrm
0
91
Member Avatar for charmedangerous

Use a do-while statement, write a program that continuously requests a grade to be entered. If the grade is less that 0 or greater than 100, your program should print an appropriate message informing the user that an invalid grade has been entered, the program should exit the repetition loop …

Software Development c++
Member Avatar for Grn Xtrm
0
94
Member Avatar for red999

I am writing a program that reads from a file that contains a list of appointments and then put them into an dynamic array named day. I am having trouble figuring out what is exactly wrong with my program. It keeps on crashing before it finishes reading the file. I …

Software Development c
Member Avatar for red999
0
124

The End.