43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Ryveris

I posted a question yesterday for the beginning of this code and I'm not exactly sure what it is I'm doing wrong. Just a quick summary- I'm trying to make a zodiac calculator, well five of them, but the formatting will be similar, so if I get one right, then …

Software Development vb.net
Member Avatar for TomW
0
93
Member Avatar for exospire

This is a school assignment and I think it's nearly done, there are probably some parts that need straightening out, but at this point I'm just trying to get my program to compile correctly. The program depends on an input file with sample data as follows: 1000 John 9.5 9.0 …

Software Development c++ ios
Member Avatar for super-sonic
0
358
Member Avatar for Eternity[LK]

Hello. I have created another homework assignment in C++. Program is working correctly, however there are 2 flaws I need help with. [B]Description:[/B] User enters the name of sportsman, and 7 marks given to this sportsman by referees. Marks must belong to interval [0.0 : 10.0] . Float sum is …

Software Development c++
Member Avatar for Eternity[LK]
0
105
Member Avatar for khipasi

Hi everyone, I am a new in Delphi,and trying to learn it. I am using Delphi 2005. I will like to find out a code for creating a form that will calculate the average of three different parameters and display the message box with the calculated averages.

Software Development delphi pascal
Member Avatar for FlamingClaw
0
119
Member Avatar for jlego

i have context menus & want the menu items font style to change to bold whenever the mouse moves over, and return to regular when it leaves. [code] Private Sub EmnuExitMenu_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles EmnuExitMenu.MouseLeave Me.EmnuExitMenu.Font = New Font(Me.EmnuExitMenu.Font, FontStyle.Regular) End Sub Private Sub EmnuExitMenu_MouseMove(ByVal …

Software Development vb.net
Member Avatar for jlego
0
109
Member Avatar for wittykitty

Sorry to trouble, as I am still learning C++, however, can anyone give me any insight how to work this problem. I have 2 functions, one to get the highest number out of the array, and one for the lowest. Both these functions work and give me the correct number, …

Software Development c++
Member Avatar for jonsca
0
118
Member Avatar for ddanbe

Hi all, I like to write out integers in binary format to the console. Let's say I want [B]Myint=5[/B] to be written I use [B]Convert.ToString(Myint,2)[/B] I get [B]101[/B], what I want is [B]0000000000000101[/B] I found this struct on the net which could do the trick, but is there a better …

Software Development
Member Avatar for Geekitygeek
0
90
Member Avatar for Premlal

Hi all, I am somewhat new to templates, but slowly realizing it is very powerful. Facing a problem. I have a template class. [CODE]template <typename T> class myTemplateClass { //Some code here };[/CODE] In another class I need to create a fixed number of Objects of the above template class …

Software Development c++
Member Avatar for Premlal
0
2K
Member Avatar for Solani

Hi, I was just wondering why my program wouldn't output the elements that I entered. Thanks in advance. [CODE]//Scanner utility import java.util.Scanner; public class A4 { public static void main(String[] args) { //Reads user input. Scanner inputReader = new Scanner(System.in); //Declares an array,size of the array is 10. int[] elements=new …

Software Development java
Member Avatar for masijade
0
117
Member Avatar for adams161

I was planning on releasing the source of my applet but I wanted to wait till i was done to do that. It got decompiled before i was ready. Is there any practical way to prevent decompiling? i googled and all the articals said how easy it is to decompile …

Software Development java
Member Avatar for dleskov
0
94
Member Avatar for t__

Hi, i'm actually trying to display records from 3 tables in a Data Report using an InputBox. That is whatever information i enter in the inputbox the data report should display its appropriate records from the tables. i can display records from 3 tables in the data report, but how …

Software Development visual-basic
0
49
Member Avatar for stevechow

:] Awesome title. I have a program called Life. This program creates an array from the numbers in a .txt file, then it puts it into an array. The cells in the array will have "bacteria" if they are named in the .txt file. The bacteria will be removed if …

Software Development c++
Member Avatar for jonsca
0
139
Member Avatar for alokjadhav

I am using SWIG to extend Python to C++. Understand that there is a different forum for SWIG users but I am still waiting for a response on that list. But the questions I have consists of basic Python C API releated. I hope this list will be able to …

Software Development api c++ python
Member Avatar for alokjadhav
0
730
Member Avatar for Jeffro_i4i

I am to create a project that evaluates math expressions and their derivatives. I have a Formula class with only virtual functions: virtual void print() virtual void print(int) virtual Formula *derivative() virtual int evaluate() Then I have 7 other classes which inherent from Formula, they are: Variable Constant Add Multiply …

Software Development c++
Member Avatar for Ancient Dragon
0
120
Member Avatar for jehad

hi i am not famelier with this site and i dont know how to ask for help i want to implement breadth first and depth first search for solving 8 buzzel problem may you help me?

Software Development java
Member Avatar for kvprajapati
0
126
Member Avatar for wingers1290

Hi, I have a list box that on form load displays file names inside a directory using this code [code] DirectoryInfo di2 = new DirectoryInfo(path); foreach (FileInfo fi2 in di2.GetFiles()) { listBox1.Items.Add(fi2.Name); } [/code] Which works fine, however i have another function on my form which adds files to the …

Software Development c c# c++
Member Avatar for DdoubleD
0
292
Member Avatar for rzhaley

hello i am supposed to design a code to convert state abbreviations from only five states. I don't really know how to put if...else statement in here if anyone can help. This is what I have written so far but i am beginning so it could be completely wrong. [CODE]using …

Software Development
Member Avatar for rzhaley
0
210
Member Avatar for BruenorBH

I am trying to change the NIC speed through the registry.. But my problem is that I dont fully understand the command RegSetValueEx. I have checked the Internet up and down for some good examples but have fallen short.. I am tring to set the default value for the NIOC …

Software Development c++
Member Avatar for BruenorBH
0
418
Member Avatar for josh48

I got this code and I cannot get it to work. I want it to show up with the type of attacks you can do which it does. After each time you attack the enemy the enemy attacks you of a damage between 1-10, then its my turn etc until …

Software Development pascal
Member Avatar for FlamingClaw
0
157
Member Avatar for mr.hassan4489

The Question is : A store has 6 items. Each item has a price and a bar-code that uniquely identifies it. To simulate such a store, the program offers a menu showing the codes, their corresponding items, and their prices. The user chooses one or several items to buy, and …

Software Development c++
Member Avatar for zobadof
0
152
Member Avatar for wittykitty

I have viewed a lot of threads out there relating to what I am looking for and can't seem to find one that will help. I am reading data in from a file. Even though I already know how many names are stored in the file, I need to write …

Software Development c++
Member Avatar for jonsca
0
221
Member Avatar for fummy

Can someone help please! I need to search for a different set of strings like: 'fummy' or 'users' or 'logon' from a directory like this: C:\mycase\Nic..\ A Text document is stored in there LIKE: 544, Text Document, 45, 588 KB Can some help to write a script or python program …

Software Development python
Member Avatar for Murtan
0
187
Member Avatar for Yeen

I've been trying to figure out how to capitalize all the sentences in a string. In the string [CODE]a = "this is the test string! will it work? let's find out. it should work! or should it? oh yes. indeed." [/CODE] I want all the characters after [I]". " "! …

Software Development python
Member Avatar for Yeen
0
1K
Member Avatar for micka10

Hello, I have a problem to add string arrays into the ArrayList. My data is recorded as: {"1","0","a"}, {"1","1","b"}, .... I'm going through the "for" loop and trying to store each of these records into the ArrayList, but, after it stores all records, it appears that all elements in the …

Software Development
Member Avatar for micka10
0
268
Member Avatar for lotrsimp12345

gives me error on 3rd coded line in search(). [CODE] #ifndef MY_HT_CHAIN_H #define MY_HT_CHAIN_H #include <iostream> #include <vector> #include <list> using namespace std; class my_ht_chain { public: //constructor which creates a table of a certain size my_ht_chain(int initTableSize); //destructor ~my_ht_chain(); //insert a value based on key void insert(int key); //search …

Software Development c++
Member Avatar for lotrsimp12345
0
102
Member Avatar for xavier666

During run-time of a menu driven program, I want the user to see what option the user has entered. Something like this :- [CODE][OUTPUT] . . . Enter Option : [1] <- [I]User given[/I] Press Any Key To Continue ... [_] <- [I]Blinking Cursor[/I] . . . [/OUTPUT][/CODE] After I …

Software Development c
Member Avatar for xavier666
0
155
Member Avatar for checker

[CODE]element = {'H': 1, 'N': 6, 'F': 7, 'Cl': 7} i = input("Enter: ") dots = '*' totalDots = (dots * i)[/CODE] Enter: H Traceback (most recent call last): File "D:/Python26/lewisdot.py", line 4, in <module> i = input("Enter: ") File "<string>", line 1, in <module> NameError: name 'H' is not …

Software Development python
Member Avatar for jimothy
0
148
Member Avatar for Neona

Hello there. I've put together an Access Database which handles opening hours. However I want to be able to update each day individually, but at the moment it updates the entire week in one go. I know that I'm supposed to add some sort of WHERE in my sql sentence, …

Software Development microsoft-access open-source
Member Avatar for Neona
0
138
Member Avatar for Ulukay

I got a button array of 40 buttons And i handle all the button events in 1 sub . But i need to know what button is pressed. Can someone help me ? [CODE] Private bttonArray(41) As Button Public Sub Hoofdscherm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …

Software Development gui vb.net
Member Avatar for morke
0
556
Member Avatar for amishraa

Need help with calculating student grades using arrays. If I have the names and subsequent grades listed on notepad input file. eg. Name1 23 43 54 23 43 54 Name2 54 34 65 76 23 54 Name3 97 68 45 68 86 58 How do I setup two dimensional array …

Software Development c++
Member Avatar for amishraa
0
155
Member Avatar for lisedaton

hi everybody!!! I will really appreciate if somebody could help me.... we are working with c and python and the same time and it gets confusing sometimes... I need to write a program in python tha will receive a string and it will print only the number in the string …

Software Development python
Member Avatar for Namibnat
0
93
Member Avatar for saj_amo

hi guys, i have a problem in crystal report when i am getting a data from database field that field has 30 words i want that in my report that field should be broke in 10 words each line so how can i do this please help me.

Software Development vb.net
Member Avatar for saj_amo
0
318
Member Avatar for laelzio.mosca

Can someone help me please? I have to do this turkey project, everything is working ok, exept for my oven time. when it prints this line: [CODE]cout << "Put the turkey in the oven on the " << startThawDay + howLongToThaw <<"th " << " at " << ovenTime <<" …

Software Development apple c++
Member Avatar for valtikz
0
88
Member Avatar for Jaydenn

Do you guys think this code will function properly? [CODE] public void LoadUser(string UserName, string Password) { try { using (StreamReader sr = new StreamReader("./Users/" + UserName + ".txt")) { string Line; bool passCorrect = false; bool userCorrect = false; while ((Line = sr.ReadLine()) != null) { if (Line.Equals("UserName = …

Software Development
Member Avatar for Jaydenn
0
137
Member Avatar for samweb$

I have the following code which works on the .txt file The file content is as given below. ;* ;* { = LanguageIso LANGUAGE_ISO = "EN" } [CODE] xlong MyProg::Import(const char* buffer, xlong x) { try { while (1) { if ((bytesParsed = AddLine(tmpSrcBuffer)) == -1) return FALSE; tmpSrcBuffer += …

Software Development c++
Member Avatar for samweb$
0
117
Member Avatar for FlowerGirl1027

I need to analyze a list of five cards as a poker hand. After printing the cards, the program needs to categorize accordingly. Royal Flush: 10, Jack, Queen, King, Ace all of the same suit. Straight Flush: Five ranks in a row, all of the same suit Four of a …

Software Development python
0
71
Member Avatar for jigglymig1

for this function i need help with the email part. I am trying to string compare domain with 3 different string possibilities (.com,.org,.edu). void add(char firstName[][32],char number[][9],char email[][32],char lastName[][32],int count) { int i; int length; char domain[3]; cout << "enter their name\n"; cin >> firstName[count]; cin >> lastName[count]; cout << …

Software Development c++
Member Avatar for jigglymig1
0
95
Member Avatar for FancyShoes

why does this happen? I want it so that it does not display the text using an or statement and not using and or anything else. [CODE] if( 1 == (2 || 2 || 2)) { cout << "Should not display"; }[/CODE]

Software Development c++
Member Avatar for Dave Sinkula
0
101
Member Avatar for rena0514

hello again....i'm in need of help. for my final program for my programming two class i have to write a program doing operations on sets. i wanted to know if someone could put me towards the right direction and give me an example of a program using friends of a …

Software Development c++
Member Avatar for rena0514
0
113
Member Avatar for infern0

Hi, I am having trouble getting the item and its calories to match. Could anyone tell me what is wrong with this bubble sort? Thanks [CODE]int main() { string food[100]; string search; int calories[100]; int x = -1; bool look = false; do { x++; cout << "Enter a menu …

Software Development c++
Member Avatar for infern0
0
110
Member Avatar for infern0
0
62
Member Avatar for Judgment

I require a program that will remove all trailing whitespace (any spaces that occur at the end of a line) from a text file. It should do something like: Space Stripper Enter the name of the file to be stripped: news.txt Any help would be gladly appreciated. I'm also seeking …

Software Development python
Member Avatar for Namibnat
0
184
Member Avatar for simonfoley

Hi there Just started an IT course recently, and although flying with HTML and other disciplines, I'm having trouble with some C++ syntax. I have a problem with a short piece of code I have to write, which has to read input from the keyboard for 5 fictional employees, each …

Software Development c++ visual-studio
Member Avatar for simonfoley
0
234
Member Avatar for Ryveris

I know there have been posts in the past where some were asking about "how to make a zodiac calculator," and I kind of have the same question, but I've done the research and wrote most of the code out, so it's nothing like that. I didn't quite understand how …

Software Development vb.net
Member Avatar for Ryveris
0
151
Member Avatar for andrewktmeikle

Hello, I'm having a slight problem with my code. The task is to create an indexing program, similar to the ones the google uses. The problem i'm having is that we have to remove the common ending from the words left after the removal of stop_words(which is a list variable …

Software Development python
Member Avatar for andrewktmeikle
0
2K
Member Avatar for tkud

Hey everyone, I'm having this problem with the aforementioned API. Here is the code to initialize the common controls i want to use..(commctrl.h is already included in my program) [CODE] INITCOMMONCONTROLSEX icex; icex.dwSize=sizeof(INITCOMMONCONTROLSEX); icex.dwICC=ICC_BAR_CLASSES; InitCommonControlsEx(&icex); [/CODE] However, when I try to build , it gives me this error: [I] 1>tkud.obj …

Software Development api c++ visual-studio
Member Avatar for tkud
0
3K
Member Avatar for zobadof

Sorry in advance! I did solved thread before I checked if the code somebody said worked. It turned out they didn't help much. The problem is MattyRobot gave me code to open a new window. Now it opens with CMD to; I only wanted the window. I will give you …

Software Development c++
Member Avatar for zobadof
0
131
Member Avatar for mloC

This Program is supposed to get a filename, title and description of a database and then store it to and appropriate filename. [CODE] #include <fstream> #include <iostream> #include <cstdlib> #include <string.h> #include<ctime> #define MAX_FILENAME 256 #define MAX_INIT_NAME 1024 #define MAX_DESC 1024 using namespace std; class date { public: int DAY; …

Software Development c++ ios
Member Avatar for mloC
1
96
Member Avatar for new programer

hello all I'm trying to do a concatenation function I do not want to you use the strings property where we can add strings, I need to add two strings and save them in one string without the use of addition "+" i have three variables title , first_name, last_name …

Software Development c++
Member Avatar for new programer
0
157
Member Avatar for halluc1nati0n

[CODE]#include <stdio.h> #include <fcntl.h> #include <iostream> using namespace std; int main() { int fd, i, oflag; char buf[100]; oflag = (O_RDONLY); fd = open("from4to5", oflag, 0x1c0); if (fd < 0 ) {printf("Error opening\n"); exit(1);} while ( (i = read(fd, buf, 16)) != 0 ) { cout << "child: # bytes …

Software Development c++
Member Avatar for halluc1nati0n
1
309

The End.