132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SHENGTON

Hello, good afternoon. :) Now I got some problems with my "Create Payroll". I changed the "rate[100]" integer to "salrate[100]" float. After changing these errors prompted me. [b]Errors:[/b] payroll system.cpp(157,22): Illegal use of pointer <-- This is "Error" payroll system.cpp(158,8): Possible use of 'gsalary' before definition <-- This is "Warning" …

Software Development c
Member Avatar for Ancient Dragon
0
173
Member Avatar for anonymousi

its a simple car parking fee calculator that uses timer start and stop value to calculate hourly fee....

Software Development vb.net
0
81
Member Avatar for LianaN

Hi! The problem is connected with using frame.pack(). So, let's say there is JFrame: frame. Depending on the option selected from JComboBox, the content and size of JFrame should change. Everything works perfectly in NetBeans (!!!). However, if I try to run the JAR file, then the size of JFrame …

Software Development java java-netbeans
Member Avatar for LianaN
0
522
Member Avatar for cbsinc

Sorry to bother you all with such trivial stuff, but I just finished about 35 years of work in construction, all over the US and Europe. And when the market went south I went back to school. Calc and trig are going fine, but C++ is kicking my butt. We …

Software Development c++
Member Avatar for cbsinc
0
120
Member Avatar for sureshprg

Dear all, I need to send a string value along with an 'Enter' keystroke from an active form to a multi-line text box in an inactive form. Tell me a way to do this in VB6. Thanks.

Software Development visual-basic
Member Avatar for PoisonedHeart
0
141
Member Avatar for tqmd1

Dear Experts I have loaded a picture in PICTUREBOX1 by this command Me.PictureBox1.Image = Drawing.Image.FromFile("D:\C2007\BITMAPS\pict.jpg") How to store this picture SQL server 2005 table1's IMAGE column? I do not want to store image path in table. I want to store picture in image column in any format. Reason: If I …

Software Development image sql vb.net
Member Avatar for akar
0
277
Member Avatar for DA_BKJ

Hey everyone. BKJ here, need some help with a homework, really appreciate some help. Heres the question: Write a program that reads one line of text, one character at a time, and then prints it with all its blanks, commas, astricts (*) and periods removed. Heres my answer:[CODE] #include <iostream> …

Software Development c++
Member Avatar for DA_BKJ
0
2K
Member Avatar for nathanurag

[CODE]#include<stdio.h> int main() { int i,j,k,c; char s[1000]; //array to store the input string for(i=0;(c=getchar())!='.';++i) //string to be ended with '.' { s[i]=c; for(j=0;j<=i;++j) { if((s[j]==s[j-1])&&(s[j]=='\n' || s[j]=='\t' ||s[j]==' ')) { j=j-1; } } for(k=0;k<=i;++k) printf("%c", s[k]); } return 0; } [/CODE] I am trying to create a program that …

Software Development c
Member Avatar for vinitmittal2008
0
174
Member Avatar for Obelisk4

Hi all ! I 'm working with my friends in a basic game project ( it 's just a newbie one, though ) I 've searched and tried all tips that I 've found : setting the include Directories, adding the Linker, copying SDL.lib and SDLmain.lib to VC++ lib folder, …

Software Development c++ visual-basic visual-studio
Member Avatar for shijobaby
0
225
Member Avatar for chavez

Hi guys! I get this exact error Main.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGui::GetActiveState(void)" (?GetActiveState@CGui@@QAEHXZ) Release/test.dll : fatal error LNK1120: 1 unresolved externals Heres the code: [CODE] #include "Gui.h" #define WINDOW "3D World" HWND ( __stdcall *pCreateWindowExA )( DWORD, LPCTSTR, LPCTSTR, DWORD, int, int, int, int, …

Software Development c++ gui
Member Avatar for shijobaby
0
514
Member Avatar for Geek-Master

Hey everyone, I'm working on my first program using "[COLOR=RoyalBlue]Winsock2.h[/COLOR]". I'm getting back linker errors "error LNK2001: unresolved external symbol ..." 9 unresolved externals total The program came from an MSDN tutorial: "A simple winsock program", its a simple ping program that sends packets to a loopback address. when I …

Software Development c
Member Avatar for shijobaby
0
169
Member Avatar for hermann87

So, I'm having another problem this time... I'm on Windows 7 x 64, working with VC++ 2008 Express I've been working on this DX10 tutorial up to this point where I tried to build my project and got this : [CODE=CPP]error LNK2019: unresolved external symbol _D3D10CreateDeviceAndSwapChain@32 referenced in function "void …

Software Development c++
Member Avatar for shijobaby
0
352
Member Avatar for DioRani

I am currently working a registration project and here is my code.. [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace Thesis { public partial class Registration : Form { Form formParent = null; public Registration(Form par) { …

Software Development open-source sql visual-studio
Member Avatar for DioRani
0
118
Member Avatar for JackDurden

I have this error when debugging called Debug Assertion Failed , does anyone know what that means? Im using Visual C++ 2008. [CODE]void merge (string alpha, string beta) { string temp; string temp2; stringstream insert(alpha); stringstream insert2(beta); // Insert the string into a stream ostream_iterator<string> output(cout, " "); vector<string> words; …

Software Development c++
Member Avatar for shijobaby
0
843
Member Avatar for radmaker3

I just started using MS Visual C++ express to brush up on C\C++ I wrote one little sample program and it ran successfully, then every time after that i kept getting this debug assertion failed error that killed my program. Here's my code. #include <iostream> using std::cout; using std::cin; int …

Software Development c++
Member Avatar for shijobaby
0
357
Member Avatar for spetsnaz26

I'm transitioning my old, dinasour-ish program written with arrays and pointers to vectors and ran into some problem with iterators. I'm using Visual Studio 2005 SP1. In debug mode the follow message appeared upon reaching the part of the code indicated further below: Debug Assertion Failed! expression ("_Myptr > ((_Myvec*)(this->_Mycont))->_Myfirst",0) …

Software Development algorithm c++ visual-studio
Member Avatar for shijobaby
0
341
Member Avatar for EngSara

Hi, When I run my program it crashes and a message that an asseration failure happened appears. when I debug the program it points to following: [CODE]for ( i = 0; i < delta*d; ++i) delete [] o[i]; delete [] o;[/CODE] I create this array as follows: [CODE] int **o; …

Software Development c++
Member Avatar for shijobaby
0
183
Member Avatar for integer*09

Hi all, I got this assertion problem that i cant seem to solve, could you guys help me on this. So far, i think the problem might be due to the while loop for the iterator line by line check and i have made changes to it but still cant …

Software Development c++ ios
Member Avatar for shijobaby
0
771
Member Avatar for Kunal Aggarwal

I program using Visual C++ 2008. MFC Application. I was creating a program to open a Media (.avi) file. The default association of avi files is the Windows Media Player. Now in the program I want to load a button that when clicked will open the specified avi file using …

Software Development c++ file-system gui
Member Avatar for srilekha nikky
0
185
Member Avatar for bookmark

Line 10 keeps on getting a Type "Double" Unexpected Any idea what the problem is? [CODE] #include<iostream> using namespace std; double grossPay(double a, double b); int main(){ double a,b; cout << "Hours worked this week and hourly rate of pay"; cin >> a >> b; cout << double grossPay(a,b); system("pause"); …

Software Development c++
Member Avatar for bookmark
0
452
Member Avatar for jjspikejones

I have many errors in this program will someone help I also have to put another for loop the the isRightprime var. [code] // imports #include <iostream> int isRightPrime(int); int isPrime(int); // begin main int main() { // declare variables int rightPrime; int Prime; int x; int y; using namespace …

Software Development c++
Member Avatar for VernonDozier
0
110
Member Avatar for Sunday1290

I am trying to make a single player connect four game in C++. With the specifications being: [LIST] [*]7x6 [*]In order to win, the player must match four games pieces either horizontally, vertically, or diagonally. [*]One player, playing against a computer that makes random inputs. [/LIST] I'm confused on how …

Software Development c++
Member Avatar for doc13p
0
2K
Member Avatar for aro_kai

My code is : [CODE] public final class Pixels{ BufferedImage img=null; public int w,h; public Pixels(){ try { // Read from a file File file = new File("1.jpg"); img = javax.imageio.ImageIO.read(file); } catch (IOException e) { } } public void checkfunction(){ h=img.getHeight(); // errorpoint w=img.getWidth(); } [/CODE] Errors: Exception in …

Software Development java
Member Avatar for aro_kai
0
153
Member Avatar for akkarin1313

[code]def main(): splash() wordTotal = 0 longestWord = 0 fin = open("constitu.txt") for line in fin: #n = fin.readline() wordLine = line.split() #word = wordLine.split() wordTotal += len(wordLine) #if len(word) >= 15: #longestWord += 1 #print word print "This constitution has ",wordTotal, " words." def splash(): print "This program is …

Software Development file-system python
Member Avatar for woooee
0
2K
Member Avatar for micahgeorge

I am very new to c# and i want to learn it......is there is a good tutorial to learn visual c# 2010 express for desktop apllication. And I wanted to to create a code(c#)to display total elasped time as a label when the user clicks an evaluate button (add or …

Software Development
Member Avatar for micahgeorge
0
159
Member Avatar for ComradePatriot

My first post on this forum, long time lurker though. I'm running into a problem trying to search through an N-ary tree. I'm tasked with having the user input pairs of job titles and from there putting them into an N-ary tree, with the higher job titles at higher levels. …

Software Development c data-structure
Member Avatar for alwaysLearning0
0
589
Member Avatar for Hardz

Hi, I am using c# to update and view the student_Teacher simple database in sql. I used textboxes with binding navigator to view and update the teachers info and datagridview for the students, so 1 teacher per many students is the output. I have no problem for searching, editing and …

Software Development
Member Avatar for Hardz
0
358
Member Avatar for novice20

I have python 2.5.2 on my Debian system n want to upgrade it to python 2.6. Got to know that apt-get install package searches for package in /etc/apt/sources.list I have downloaded python 2.6.2. How to add an entry to the file /etc/apt/sources.list ? :(

Software Development debian python
Member Avatar for npmaier
0
178
Member Avatar for realproskater

For some reason i cant get my GCD function to return anything in my main function someone help? [code] #include<iostream> using namespace std; int firstanswer; int secondanswer; int a; int b; int gcd (int a,int b) { int t; while ( b != 0); { t = b; b = …

Software Development c++
Member Avatar for realproskater
0
186
Member Avatar for banks2140

Ira Banks // CS 171-02 //10/29/2010 // This program will to simulate the following activity. He has 25 chips numbered 1 through 25 in a bag. // He thinks of a number from 1 to 25. Then he draws numbers from the bag, recording each and returning it to the …

Software Development c++
Member Avatar for banks2140
0
78
Member Avatar for bpross22

Hi everyone, I am trying to create a list of objects in python. I get the listing of all of the files from the directory that I want. Then I open each file and read it into an appropriate object and append it to the list. For some reason when …

Software Development file-system python
Member Avatar for woooee
0
214
Member Avatar for TheMightySpud

Hi all, I've written the code to create a digital clock using a label and it's all working dandy. Now though, I want to take it to the next level and use images for each of the digits instead of a simple label to make the clock fit more with …

Software Development vb.net
Member Avatar for codeorder
0
309
Member Avatar for Duane Stockwell

I have been all over the web (and through several books) in an attempt to get an answer to my problem. Briefly, I am trying to get the contents of a string array expressed as the header text for datagridview columns by the calling that array from a listbox. There …

Software Development vb.net
Member Avatar for Duane Stockwell
0
115
Member Avatar for goodi8u

Hello, I am new to posting, but have searched these wonderful forums for a couple years. I am programming a game as a hobby. And I have been searching for a way to read what the user types. e.g. User types in "hello" and I can take that and send …

Software Development c++ windows-api
Member Avatar for goodi8u
0
248
Member Avatar for cclausen7

I'm trying to make a deck of cards; I want it to keep track of the cards that have been drawn. Will this code delete the card that is displayed? [code] void Deck::draw_card() { int random_card = (rand() % cards.size()) - 1; cout << "\n" << cards[random_card].name << "\n"; cards.erase(cards.begin() …

Software Development c++
Member Avatar for StuXYZ
0
75
Member Avatar for vbx_wx

[code] #include <iostream> using namespace std; class X { public: X(int) { cout << "X()" << endl; } void f() { cout << "f()" << endl; } }; class Y: public X { public: Y(int): X(1) { cout << "Y()" << endl; } }; class Z: public X { public: …

Software Development c++
Member Avatar for mike_2000_17
0
105
Member Avatar for Mbot

Im getting the folowing error while trying to implement a friend function between two classes. "Board.C: In member function ‘void Board::input(bool)’: Board.C:227: error: ‘class Piece’ has no member named ‘castSpell’ make: *** [Board.o] Error 1" Piece's Header file [CODE] #ifndef PIECE_H #define PIECE_H # include "Spellcaster.h" # include <iostream> #include …

Software Development c++
Member Avatar for Fbody
0
497
Member Avatar for indr

struct list_link { int key; // identifies the data double value; // the data stored struct list_link* next; // a pointer to the next data }; struct list_link* create(int key, double value, struct list_link* next) { return 0; } the "struct list_link" contains two variables and a pointer. what exactly …

Software Development c++ data-structure
Member Avatar for arshad115
0
126
Member Avatar for ayoitzrimz

Hi all, Thanks for reading my post! So up until now I've been using Emacs (or Aquamacs on my Mac - essentially the same thing) for software development and I really do find that I can work very quickly with it. Recently, I've been thinking that maybe there is something …

Software Development c++ ide mac-software machine-learning
Member Avatar for ayoitzrimz
0
169
Member Avatar for Gramotey

Dear DANIWEB community members, I am a newbie with Windoze programming, and I hope you could help me going with my project as I have a really just a technical question: I have a simple GUI with some buttons and text boxes defined in a form .h file, and I …

Software Development c++ gui socket-programming
Member Avatar for Gramotey
0
202
Member Avatar for dougancil

I am developing an application that based on when a user has last entered a payroll, my program tells them the next available Sunday that is available to them based on 1. The date that the last time payroll was entered 2. If payroll ran = "yes" or "no" I …

Software Development open-source pay-per-click sql vb.net
Member Avatar for dougancil
0
190
Member Avatar for mike42intn

im doing this project to work it prints out all information except the radius it just gives 0,0 but needs to give locations provided in code. [CODE]#ifndef SHAPE_H #define SHAPE_H #include <iostream> using std::ostream; class Shape { friend ostream& operator<<(ostream &out,Shape &s); public: Shape(double = 0.0,double = 0.0);//default constructor double …

Software Development c++
Member Avatar for mike42intn
0
474
Member Avatar for bio-grad

I am very very new to perl and am not even sure if awk is what I should be using instead. Hopefully someone out there can help me put together a script for this problem. Here is some sample data (it is tab delineated in my file): 20 scaffold189_125 13634 …

Software Development perl
Member Avatar for d5e5
0
140
Member Avatar for spacemanspiff92

[CODE]def exportTextList(fileInput, wordList): fileOpen = open(fileInput) for line in fileOpen: line = line.rstrip("\n\r") lineList = line.split() wordList = wordList + lineList return wordList def main(): fileInput = 'PlayerNames.txt' wordList=[] exportTextList(fileInput, wordList) print wordList[/CODE] My code summary: I'm taking a txt file, playernames, and i'm stripping all of the line breaks …

Software Development python
Member Avatar for richieking
0
120
Member Avatar for pacers10

I am having trouble with this problem, I need to enhance the red intensity of each pixel This is what i have [CODE]import cImage def makeRedScale(imageFile): myImageWindow = ImageWin("Image Processing",600,300) oldImage = fileImage(imageFile) oldImage.draw(myImageWindow) width = oldImage.getWidth() height = oldImage.getHeight() newImage = emptyImage (width,height) for row in range(height): for col …

Software Development python
Member Avatar for woooee
0
142
Member Avatar for barthdesv

Hi I wrote a litle code to calculate factorial, but when I compile it, it says " ';' expected " (In the " for ") Here is my code : [CODE] /** * A class to calculate factorial of a number * * @author Barth * @version 10/29/10 */ public …

Software Development java
Member Avatar for barthdesv
0
81
Member Avatar for aree

I am currently trying to write a C++ program. The intent of the program is to guess what side a coin is going to fall on, heads or tails. I feel like I am very close to making it work. But I can not seem to figure out how to …

Software Development c++
Member Avatar for aree
0
2K
Member Avatar for nssltd

Hey, For a while know i have been using Microsoft components and look and feel. I want to change that i want to be able to build my own components in c#. I thought i would start with something simple like a label and then move up to a text …

Software Development
Member Avatar for nssltd
0
89
Member Avatar for TayKaye

I am needing help with programming challenge problem 12. It will compile, however, its does not make the array twice the size of the argument array. The problem says: Write a function that accepts an int array and the array's size as arguments. The function should create a new array …

Software Development c++
Member Avatar for TayKaye
0
187
Member Avatar for Alexkid

Hi there, ok, im fairly new to c++ and have been trying to figure this out for ages: I have a text file i want to read in that contains lines and lines of lat long points; N50 42.22 W002 55.33 N50 42.22 W002 55.33 N50 42.22 W002 55.33 i …

Software Development c++
Member Avatar for Ancient Dragon
0
199

The End.