132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for larry12720

I created a function to compare string value with spaces It gives me error: warning: passing arg 1 of `strcmp' from incompatible pointer type and passing arg 2 of `strcmp' makes pointer from integer without a cast [code] char *operand(node *pt) { while(strcmp(pt->next, ' ')!=0) { strcpy(operand, pt->item); operand(pt->next); } …

Software Development c
Member Avatar for abhikkumarbasu
0
137
Member Avatar for fiz hafiz

[CODE=c]#include<stdio.h> #include<ctype.h> #define FILENAME "computing" //void proceed(struct registration com, int matric); //void again(struct registration com); struct registration { char code[10]; char subject[100]; int credit; }; int main() { int matric; char name; FILE *ECE; ECE = fopen(FILENAME, "r"); //struct registration com; puts("Welcome to pre-registration for sem 1 2008/2009\n"); puts("Enter your …

Software Development c first-post
Member Avatar for abhikkumarbasu
0
109
Member Avatar for Trini89

I just started my C++ course in college and I'm having major trouble I have to write a program that dispenses changes. It has to read the amount paid - amount purchased, and gives the change in dollars, dimes, etc I need some help with this because I am so …

Software Development c++
Member Avatar for Lerner
0
95
Member Avatar for rmsv_sen

The main function of my program is to realize a client base to the physical Robot and it receives the parameters from the robot. after some processing it links to the webot environment for visual display. so i have used a two classes with the member functions. i have given …

Software Development c++
Member Avatar for Ancient Dragon
0
260
Member Avatar for trick

Hi I'm just a newbie here and I hope someone might be so kind to help me with my stuff. I have a project regarding C. I'm already half-way done and all that are left to do are: 1. Parse a string into words and arrange these words in descending …

Software Development c
Member Avatar for trick
0
608
Member Avatar for TMD

ok I am making a maze for my school with gotoxy and getch and 2d character arrays I have 2 errors though when I am compiling it.. here's the source: [CODE=cplusplus]#include <iostream> #include <stdio.h> #include <windows.h> #include <stdlib.h> #include <conio.h> #include <ctype.h> using namespace::std; char moveR; char moveL; char moveU; …

Software Development c++
Member Avatar for TMD
0
113
Member Avatar for G-Do

Hi all, Are there any python modules which contain functions for getting the roots of a quartic (degree 4) polynomial? I don't think NumPy has anything like it, and I [I]really[/I] don't want to enter the equations in by hand. Thanks.

Software Development python
Member Avatar for jrcagle
0
101
Member Avatar for toomuchfreetime

Hey I've been writing this hangman code for last week in college. and nearly got it finished but am after running into a problem. i want to run two different button handlers but can not figure out how to?. one for the letter a to z which i have working …

Software Development java
Member Avatar for peter_budo
0
144
Member Avatar for asrekdal

I have a small bit of code here I am working with. The goal I have set forth was to scale the size of panel to the frame. Does the frame have a size property that can be fetched? Are there functions or methods (not sure I know the difference …

Software Development python
Member Avatar for asrekdal
0
239
Member Avatar for austinslik

can any body convert this to switch statement thankxxxx.. [CODE=cplusplus] public char CheckDir(int row, int col, int selectedX, int selectedY) { if (row == selectedX) { if (col - selectedY == -2) { return 'd'; } //DOWNWARDS else if (selectedY + 2 == col) { return 'u'; } //UPWARDS } …

Software Development c++
Member Avatar for austinslik
0
135
Member Avatar for daviddoria

I have "right" overloading working fine with: Vector Point::operator*( double P ) this would be called with MyPoint*2 and gives the results I would like. However, if I say: 2*MyPoint, it says I can't do that. Makes sense, but surely this can be done! I had trouble googling because I …

Software Development c++
Member Avatar for daviddoria
0
96
Member Avatar for daviddoria

I have a class called Point. Point.h : [CODE] #ifndef POINT_H #define POINT_H #include "Vector.h" #include <iostream> class Point { friend ostream& operator<<(ostream& output, const Point& p) //must have global scope { output << "x: " << x << " y: " << y; return output; } [/CODE] The compiler …

Software Development c++
Member Avatar for daviddoria
0
86
Member Avatar for Sh13

I am having problem in converting military time to standard. The task I have is to take time from different cities around the world, adjust it to eastern time, and then display it in standard format with AM or PM. For example: User gave time for london 23:40 I scan …

Software Development c
Member Avatar for Ancient Dragon
0
226
Member Avatar for jimJohnson

I am getting this error when debugging can anyone tell me what I am doing wrong....keep in mind I am not finished with the program 1>Project 3.obj : error LNK2019: unresolved external symbol "int __cdecl Get_Number(int)" (?Get_Number@@YAHH@Z) referenced in function _main [code=C++] #include <iostream> using namespace std; double Get_Character(); int …

Software Development c++
Member Avatar for VernonDozier
0
88
Member Avatar for first001

i hope you can solve this problem during 1 hour.:P Answer all of the following questions. a. Create a Student class that has: i. Two instance variables, name and id. ii. Two constructors with the following headers : public Student(int id, String name) public Student(int id) iii. Two get (accessor) …

Software Development java
Member Avatar for jasimp
0
248
Member Avatar for SofMy

Hi, I'm new in this forum and c language, need somebody to correct my programme as below: Question Design and implement an interactive program that reads your yearly gross salary and computes and prints your net monthly take home income. Assume that your yearly gross salary is greater than RM …

Software Development c++
Member Avatar for mitrmkar
0
126
Member Avatar for balasuresh

am student of computer science. i take my final year project this semester and i do not have any project title. i will like to do some web-based system.Can you give me some title?

Software Development java
Member Avatar for orko
0
73
Member Avatar for Dragonetti

I am a beginner on Data Structures Here is my code, I seem not to be able to figure out how to delete a little node. Someone help me out please :D Here all the methods needed to delete a node. [code] public void eraseTree() { root = null; } …

Software Development java
Member Avatar for orko
0
151
Member Avatar for curt1203

Ok i have this assignment almost complete. But after the standard deviation, i am supposed to show the minimum and maximum temperatures and the number of the position of the temperature. I just do not understand how to to that.... [code=cplusplus] //Assignment 6: Computing with Arrays //By: Curtis Davenport 2/24/08 …

Software Development c++
Member Avatar for curt1203
0
490
Member Avatar for asrekdal

I am writing simple Python modules and when running one containing errors in the script the console window that displays the error just flashes up for a split second and disapears. Is there any way to keep this window shown? I am working on Windows XP in the Eclipse environment …

Software Development python
Member Avatar for asrekdal
0
103
Member Avatar for pclpossum

Hello! I have an SQL query designed to search a string field and return results based on input from the user. If I use VB.NET to interrogate the Access Db using the following SQL: "Select *FROM TRAINING WHERE ((Trainer Like '*Rob*'));" I get no results. If I perform this same …

Software Development dataset microsoft-access vb.net
Member Avatar for steilx
0
200
Member Avatar for zipperhead

Hello. I tried to correct segmentation fault bug and I have found out a very strange thing imho: creating new instance with "new" returns address of already existing object, constructor is called and my old object is overwritten. I didn't delete my old object before. Could someone tell me what …

Software Development c++
Member Avatar for zipperhead
0
80
Member Avatar for locsin

Hi I am COMPUTER SCIENCE STUDENT. I created thesis project with a report using VB6 datareport and Access2000. The report works fine on my machine, but when i presented this to my instructor an error "Invalid Data Source" occurs when I installed the application on other machines without visual basic …

Software Development data-science visual-basic
Member Avatar for choudhuryshouvi
0
183
Member Avatar for nawaray

hi.... i did this form for sending emails... the form consists of: text boxex: from, to , subject , attachment... buttons: send , forward, ...etc when i fill the info and send the email it will go , but i don't know how to use the attachment , i have …

Software Development session visual-basic
Member Avatar for choudhuryshouvi
0
148
Member Avatar for RoryGren

Hi all I'm self taught and relatively new to programming and have been battling with a TDBGrid's onMouseDown event in Delphi 7. Hopefully I'm missing something small and you masters out there will be able to enlighten me! I have a TVirtualStringGrid and TDBGrid on my form. I want to …

Software Development delphi pascal
Member Avatar for RoryGren
0
2K
Member Avatar for daviddoria

I have a class Vector that needs to have a function that returns type Point, and a class Point that needs to have a function that returns type Vector. I was informed that I needed to use forward references, which I thought I had implemented as follows. I am still …

Software Development c++
Member Avatar for mitrmkar
0
110
Member Avatar for carnage

i'm planning on creating a program for reservations (ex. rooms) by analyzing my problem,the things i don't know how to are: validating the date and whether the room inquired is available or reserved for someone else i'm guessing this will require me to create an output file,which i have no …

Software Development c++
Member Avatar for hammerhead
0
145
Member Avatar for Helpwithjava

I Would like to create a High Score For a Game in jave Called Jetman. i have created a class in java called Score and Score list to display the score but i do not know how to create a highscore using an Array List the Score Class is package …

Software Development java
Member Avatar for Helpwithjava
0
143
Member Avatar for vankdar

How can i read in an array and then count the number of words that end in punctuation? Thanks for any insight.

Software Development c++
Member Avatar for atish00
0
102
Member Avatar for nelledawg

I am seriously so bummed out right now, and I feel like a complete idiot. I have been sitting here for seriously 7 hours now trying to figure out how to do this program, and the book I have for the class has been of no help whatsoever. I posted …

Software Development c unix
Member Avatar for mitrmkar
0
161
Member Avatar for PaKmAn

I'm not sure how far I have left to go with my coding, but after I enter my play then I want the computer to play, it just repeats its play over and over until I control c to get out. [code] #include <iostream> using namespace std; // Leave the …

Software Development c++
Member Avatar for WaltP
0
119
Member Avatar for kiwihaha

I wrote a simple bubble game... but it look long and complicated... so any idea to short it down? i heard about class.. but i dunno how to use it.. so is my program can use class? or any idea to short it down? #include <iostream> #include <ctime> using namespace …

Software Development c++
Member Avatar for kiwihaha
0
99
Member Avatar for GPXtC02

What is wrong with this function? [code]// /////// // void GetData(int(IDs)[], float(Scores)[][4], int &i) { //GIVEN: One blank ARRAY, one blank 2D ARRAY, & a index variable. //TASK: Function retrieves data from open stream into multiple functions. Stores ID into one structure and all of the student's test grades into …

Software Development c++ data-structure file-stream ios storage
Member Avatar for GPXtC02
0
262
Member Avatar for -genESIS-

Hi everyone. I'm new to the forums, as well a C programming as well, so bare with me for any noob mistakes. I have a homework assignment I am working on now, and am just completely stumped. The assignment calls for the following The user is to input 10 words. …

Software Development c
Member Avatar for -genESIS-
0
183
Member Avatar for clarkkent

I am working on an application to help ease some of the command line stuff for ruby on rails while i learn it. I have the app starting and stopping apache as well as MySql. What i am having trouble with is starting mongrel. I would like to start this …

Software Development apache c# ruby
Member Avatar for JerryShaw
0
126
Member Avatar for asrekdal

wxPython.org seems to be unreachable! Anyone else having this problem? thanks - andrew

Software Development python
Member Avatar for jrcagle
0
93
Member Avatar for asbjava

Hi, I am doing my final year project in visual studio 2005, and I am using a datagridview to populate all record from a given table. Well I wanted to know if there is a some kind of way that when the user clicks on a specific record from the …

Software Development vb.net visual-studio
Member Avatar for ericstenson
0
102
Member Avatar for asrekdal

I am unfamiliar with this syntax and am having trouble finding info about it... void MyTextCtrl::OnChar(wxKeyEvent& event) { if ( isalpha( event.KeyCode() ) ) { // key code is within legal range. we call event.Skip() so the // event can be processed either in the base wxWidgets class // or …

Software Development legal python
Member Avatar for asrekdal
0
98
Member Avatar for jer_stud56

I'm writing a program to input a file called customers and output it as bills, but I'm not sure how to use ifstream. I've searched for quite a while and haven't really found anything useful. I'm probably doing it wrong though. Still new at this. [code] #include <iostream> #include <iomanip> …

Software Development c++
Member Avatar for mitrmkar
0
604
Member Avatar for knight fyre

I'm trying to write a program with a has-a relationship but the initialization isn't working. The error I'm getting is: [QUOTE] h:\oop labs\license retry\license2.0\license2.0\licenses.cpp(15) : error C2275: 'Date' : illegal use of this type as an expression[/QUOTE] [CODE=cplusplus]Licenses::Licenses(int id, string name, string ad, Date, Date) :issue_date(Date), expiry_date(Date) // error occurs …

Software Development c++ oop
Member Avatar for knight fyre
0
137
Member Avatar for ITbull

[code=c] int median (int numbers[], int length) { int i=0; printf("Please enter up to 10 integers.\n"); printf("Enter any letter to terminate input before 10 entries.\n"); for(i=0; i<10; i++) { scanf("%d", &numbers[i]); if(numbers[i]='ch') break; } } void sort(int numbers[], int length) { } void swap (int* n1, int* n2) { int …

Software Development c
Member Avatar for VernonDozier
0
105
Member Avatar for flash121

Hello, There's probably a very simple solution to this but i'm having some trouble figuring it out. How do i enter X numbers into an array without using "enter" after each input ? I'd like to separate them with spaces. For example: int array[5]; when i'd enter numbers into it, …

Software Development c++
Member Avatar for flash121
0
86
Member Avatar for DJJazzyJim

Can anyone please point me in the direction of a tutorial on parsing a binary file and extracting data. I want to search for file headers in Hex and export the files. Thanks

Software Development c++
Member Avatar for katisss
0
160
Member Avatar for jatin29
Member Avatar for orko
0
78
Member Avatar for nelledawg

Hi guys, ok so I'm trying to figure this thing with functions out and I've been sitting here for seriously 6 hours with half of it done. I am so confused, please help! The program is to track the amount and price of raffle tickets sold, and then add to …

Software Development c++ unix
Member Avatar for nelledawg
0
285
Member Avatar for buddha527

Last week I had to make a dice rolling program that uses a one demensional array that stores and displays the number of times each sum of two dice appear. I completed this code with little effort. But this week we have to modify the code so that instead of …

Software Development c++
Member Avatar for buddha527
0
436
Member Avatar for aminit

Hello all: I was developed a simple descending timer , the problem was while it's execute and after I entered the value in the textbox ,, this message appear: (((Ontimer(): cross thread operation not valid "textbox1" accessed from the thread other than the thread was crated on ))) on timer …

Software Development
Member Avatar for JerryShaw
0
157
Member Avatar for jer_stud56

Everything compiles, but after I input I just get an infinite loop. Is there something I can do differently to make it not loop? [code] #include <iostream> #include <iomanip> #include <string> using namespace std; // Program Description // This program will calculate test results for // a set of test …

Software Development c++
Member Avatar for jer_stud56
0
88
Member Avatar for atish00

[QUOTE]char str[] = "SACRED"; strcpy( &str[2], &str[3]);[/QUOTE] what the single & do ?? is it a typo of && ?? and what bout the other elements ?? won't the str[3] be repeater teice i.e SARRED ?

Software Development c++
Member Avatar for Dave Sinkula
0
139
Member Avatar for Helpwithjava

package jetman; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.*; //import java.util.Arrays.sort(); public class scoreList { String filePath = "Score.txt"; private ArrayList<Score> scoreArrayList = new ArrayList<Score>(); /** Creates a new instance of scoreList */ public scoreList() { FileWriter writer = null; try { writer = new FileWriter("Scores.txt"); } catch (IOException …

Software Development java
Member Avatar for jwenting
0
94

The End.