43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for maker10

Hi All, I'm trying to figure out how I canFirst, enter the number of salaries to process: 4 Now enter the 4 salaries to be averaged. Enter salary #1: 10000 Enter salary #2: 8000 Enter salary #3: -20000 *** Invalid entry. Salary must be positive. *** Enter salary #3: 25000 …

Software Development c
Member Avatar for Sci@phy
0
76
Member Avatar for TheBeast32

Hi, I keep getting an undefined identifier error when I try to do this: [Code=C] typedef char bool; // Make a bool type char false = 0, true = 1; // Make true and false void foo() { switch (something) { case 1: bool aaaaa; break; } } [/Code] It …

Software Development c
Member Avatar for Sci@phy
0
69
Member Avatar for PhoenixInsilico

The following program should take 4 numbers but it takes 5 numbers and prints first 4 number entered. How to correct the problem??? [ICODE]#include<stdio.h> #include<conio.h> void main() { int a1,a2,a3,a4; printf("Enter 4 numbers \n"); scanf_s("%d %d %d %d ", &a1,&a2, &a3, &a4); printf("The 4 numbers entered are %d %d %d …

Software Development c
Member Avatar for PhoenixInsilico
0
80
Member Avatar for PhoenixInsilico

The following program should take 4 numbers but it takes 5 numbers and prints first 4 number entered. How to correct the problem??? [ICODE]#include<stdio.h> #include<conio.h> void main() { int a1,a2,a3,a4; printf("Enter 4 numbers \n"); scanf_s("%d %d %d %d ", &a1,&a2, &a3, &a4); printf("The 4 numbers entered are %d %d %d …

Software Development c++
Member Avatar for ahamed101
0
76
Member Avatar for Kainan54

I'm new to C++ and I wondering what is the best program to use to type code into? I use vista so if a c++ program requires some extra work to make it work can you tell how to make work as well? Thanks for reading!

Software Development c++
Member Avatar for Kainan54
0
128
Member Avatar for gangsta1903

I want to do somthing like this. [code=C++] ifstream My_File::GetFile_Stream() const { return(this->Input_Stream); } [/code] where Input_Stream is a private member of the class My_File and is declared as follows: ifstream Input_Stream; When I compile I get the following errors: /usr/include/c++/3.3.1/bits/ios_base.h: In copy constructor ` std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> …

Software Development c++
Member Avatar for gangsta1903
0
2K
Member Avatar for Andymoore88

Howdy folks, me again. :) I'm attempting to append to a previously pickled file using cPickle.dump(). But I keep getting the error: Traceback (most recent call last): File "C:\Python25\Python\UserAccess.py", line 24, in <module> p.dump(tempadd, temp) TypeError: argument must have 'write' attribute I've opened the file using the 'a+' attribute, which …

Software Development python
Member Avatar for Andymoore88
0
798
Member Avatar for rugs267

I'm very very new to C so I'm having some trouble with this (and pointers): I'm trying to pass four parameters into a function: birthdayFunction(char birthday, int month, int day, int year); The birthday is the string input from the user (with "/" separating each field, ex. 7/23/76) and I …

Software Development c
Member Avatar for rugs267
0
110
Member Avatar for LordoftheFly

I'm having trouble with this section my code and am hoping that you can help me diagnose and solve the problem. I'm not sure if it makes a difference, but I compile and run my code in Cygwin. The problem: At run time when the program asks for the user …

Software Development c++
Member Avatar for LordoftheFly
1
308
Member Avatar for dmanw100

I was wondering if there is an easy library that allows reading in a .bmp, mask it, then display it. I believe I could read it in with [URL="http://www.adp-gmbh.ch/win/programming/graphic/bitmap.html"]this[/URL] but I cannot do anything else with it. Your help is appreciated! Any suggestions?

Software Development c++
0
103
Member Avatar for Andymoore88

Okay, I'm doing some experimenting on file I/O using a user/password access program I'm writing. My problem right now is while the program will append the new user and password, it does so whether or not that user name exists already. I'm not worried about duplicate passwords, but I don't …

Software Development file-system python
Member Avatar for Andymoore88
0
157
Member Avatar for chern4ever

can someone help check my code? i m trying to create multi dimension array with classes. it will not compile and i do not get the error message. thanks alot. [CODE=cplusplus]#include <iostream> using namespace std; const int MAX = 5, MAX2 = 3; class notebook { int num; public : …

Software Development c++
Member Avatar for chern4ever
0
115
Member Avatar for AKJo

I'm embarrassed. I suddenly realized that not in any of my programs scrollbars show when they should, despite visible is set to True. I am not able to fix it! Can someone please tell the secret?

Software Development pascal
Member Avatar for AKJo
0
178
Member Avatar for dexter1984

[url]http://i126.photobucket.com/albums/p98/justln/untitled3.jpg[/url] Which codes do I use so that the answer is not out of place? I tried using \t and setw but it doesn't work :(

Software Development c++
Member Avatar for dexter1984
0
155
Member Avatar for websniper77

I am new in Java and need help :} currently working on a new project using netbeans, I have trouble to import commons-io-1.3.2 jar because i really need to use SuffixFileFilter class which is in commons-io-1.3.2 jar.Actually I have the jar but don't know how to import it into my …

Software Development java java-netbeans
Member Avatar for puneetkay
0
114
Member Avatar for Demonisya

Hello....everyone I want to ask you for your advice on what problem I'm gonna do.... So my teacher grouped us and make a program that we ourselves would make.... we can do that but what kind of program do we have to make, any suggestions???? My teacher said that the …

Software Development c
Member Avatar for Demonisya
0
103
Member Avatar for Randomppl

i wanna noe how to write a code that will read lines from a file and then put those lines into an array. and will this make a double of arrayB if arrayA is empty and arrayB is filled? arrayA[10]=arrayB[10] help of any kind will be greatly appreciated!

Software Development c++
Member Avatar for Randomppl
0
71
Member Avatar for rapture

Hello. I'm charged with taking a site I helped create in VB.Net 1.1 to C#.Net 2.0 - I'm just starting to research this and wondered if anyone has done it and if you can direct me to some good material . . . I need to add a new module …

Software Development c# vb.net visual-studio
Member Avatar for rapture
0
253
Member Avatar for dmanw100

I am trying to use sprites, which I made in the form of bitmaps, in my program. Is there a library that will allow me to easily display them? I tried to use OpenGL but my computer will not allow it to initialize. I would simply like to display bitmaps …

Software Development c++ opengl
Member Avatar for dmanw100
0
102
Member Avatar for Blackeagle

i'm using NetBeans and i keep getting an error in this code: [CODE=java]package desktopapplication7; import java.awt.*; import javax.swing.JFrame; import javax.swing.JPanel; public class Frame extends JFrame { Container c= getContentPane(); setLayout(new BorderLayout(5,10)); JPanel p= new JPanel(); p.add(new JButton("OK")); // ERROR HERE c.add(p,BorderLayout.Center); // ERROR HERE }[/CODE] on both lines above, it …

Software Development java java-netbeans java-swing
Member Avatar for Blackeagle
0
103
Member Avatar for stilldancin12

ok, yes this is a homework help question, and no i don't want just the answer. i actually really want to learn this. Ok, so I have to the simple date format that displays today's date in "week day month day, year) so here is what i got: import java.text.*; …

Software Development java
Member Avatar for javaAddict
0
136
Member Avatar for matejkralik

Hello I use this code as a stored procedure to delete row of the table: [ICODE]ALTER PROCEDURE dbo.DeleteRowMaterialTyp ( @CisloParam varchar(MAX) /* hodnota v tabulke, ktora nam identifikuje riadok, ktory sa ma zmazat */ ) AS Delete From MaterialTyp Where Cislo = @CisloParam RETURN[/ICODE] And this is code where I …

Software Development
Member Avatar for matejkralik
0
113
Member Avatar for chanthung

Hi, hope all are doing fine.. need some suggestions. I am using VB and Acccess and am trying to fetch a record from database by: "Select * from accounts where emp_code='"+d+"' AND emp_name='"+n+"'"". The inputs are fetched from an Inputbox. but i get a compilation error... [B]Run-time error '13': Type …

Software Development visual-basic
Member Avatar for chanthung
0
94
Member Avatar for miepmuts

Hi everyone, I am trying to convert a textfile eventually to a pdf file with a visualization of information in the text file. I use Java to convert the text file to an xml file, and fop to convert the xml together with an xsl file to a pdf containing …

Software Development file-system pdf xml
Member Avatar for miepmuts
0
158
Member Avatar for gangsta1903

[code=C++] while(cin >> par1 >> par2 >> par3){ // get inputs cout << par1 << par2 << par3 << endl; [/code] I want to read three inputs with cin,as long as three inputs exist,the loop works good. But if the user enters two inputs,this time it waits for the next …

Software Development c++
Member Avatar for gangsta1903
0
147
Member Avatar for JackDurden

Is it possible to ask the user to input the size of a 2-dim array?

Software Development c++
Member Avatar for Agni
0
277
Member Avatar for LottaBajan2

Hi, I am very new to visual basic 6.0 and I am trying to create a guessing game in visual basic where the computer generates three numbers and the player tries to guess what they are. I am now starting the basics and I have the GUI sorted out but …

Software Development gui vb.net visual-basic
Member Avatar for selvaganapathy
0
636
Member Avatar for grisha83

Hello, Here is the problem ive been working on: write a while loop that displays each int from 1 to 5 together with its square and a cube. Display all three values for integer on a separate line. My problem is that it does not really do what it is …

Software Development c++
Member Avatar for grisha83
0
265
Member Avatar for demroth

I am trying to read the data (integers) from a file to a larger unsorted array and then move specific elements from that array to specific sub arrays. I can write the data from the file to the unsorted array fine but I get the wrong integers when trying to …

Software Development c++ file-system
Member Avatar for demroth
0
92
Member Avatar for JimHjr

Hi guys/gals, I am student at University of Phoenix. I am not here to have you do my homework, I know this is not the place for that. I do need help though. I am trying to work through this course an really learn something. Many of you ar probably …

Software Development java
Member Avatar for jasimp
0
175
Member Avatar for rapture

Hey all, Does anyone have a good resource for me to read/use as I begin using C# more. I'm still very new to the language and have found that there are tons of ways to do the same thing, however many of them are the wrong way to do it …

Software Development
Member Avatar for LizR
0
89
Member Avatar for t_s

I have been searching (google and books) for an answer to this question for a long time without managing to find any answer worth the name, so I'll try posting a thread hoping for better luck. Can someone explain to me why this: [code=C++] Aclass **tmp, *aclass[10]; tmp = aclass; …

Software Development c++
Member Avatar for t_s
0
116
Member Avatar for venomocity

I'm back after being gone for a while. Thus I haven't played with VB in some time. Thus my brain strength has gone out with it. I'm still working on my game and trying to make the system choose a number between 10 to 21 then put that into a …

Software Development visual-basic
Member Avatar for venomocity
0
124
Member Avatar for hisheeraz

Helo friends; [code] If lbDriverName.SelectedIndex = True Then sql = "SELECT * FROM tblDriver WHERE dName =" & lbDriverName.SelectedItem Else sql = "SELECT * FROM tblDriver" End If [/code] and my error is... [TEX] Syntax error (missing operator) in query expression 'dName ='. [/TEX] where dName is the column in …

Software Development display sql vb.net
Member Avatar for hisheeraz
0
136
Member Avatar for sunveer

I want help in reversing a string without using another array. a string "Hello" should be printed as "olleh" Please help.

Software Development c++
Member Avatar for Narue
0
169
Member Avatar for Newguy89

the program should print 1 this one should have six spaces and then 1 22 5 spaces then 2 333 and so on 4444 sum reason when i post here it aligns left 55555 666666 though it prints... 1 22 333 4444 55555 666666 [code=cplusplus] #include <iostream> using namespace std; …

Software Development c++
Member Avatar for Newguy89
1
109
Member Avatar for tortoiseman

Hi everybody, I am new to Java, and can't figure out why my program is not recognizing the class Picture. The program compiles, but when I run it, it gives an error: Exception in thread "main" java.lang.NoClassDefFoundError: Picture at NewtonReal.main(NewtonReal.java:55) Please note that to run NewtonReal, you must include three …

Software Development java
Member Avatar for tortoiseman
0
121
Member Avatar for k2k

it looks like case 1, reading the data from a text doc is doing what it supposed to do (coz if i put the output lines under case 1 it works) however case2 doesn't have anything in the nameBox[] .. it didn't get the array index from case 1... any …

Software Development java
Member Avatar for javaAddict
0
188
Member Avatar for Kamal_Java

Hi , I have a stl list which stores my base class pointer .Like [CODE]list<BaseClass*> eBList;[/CODE] now i want to iterate through this list and store it in one local variable. how do i do this. i have shown below the code i tried .... But at one part it …

Software Development c++
Member Avatar for Aashath
0
162
Member Avatar for Kezoor

Hello everyone ! I am a still a beginner in Python (and have no knowledge in other languages), and today I got a reaction from my script that I find unexpected. Here's the code: I want to use the buildOneCard function to create a card (a couple of values), by …

Software Development python
Member Avatar for Kezoor
0
182
Member Avatar for grisha83

Hello everyone I am trying to do this assignment in the book: Write a program that reads four words (as character strings) and display them in increasing and decreasing alphabetical sequence. I have done the 1st (easy) part but not sure how to go about displaying words in alphabetical order. …

Software Development c++
Member Avatar for grisha83
0
138
Member Avatar for jaasaria

hi guyzz.. i wanted to make a code to change my system unit date and time using vbcode. i have a small idea, to run a command prompt but i don't no how to make it so. any possible idea well be appreciated.

Software Development visual-basic
Member Avatar for loveknights07
0
105
Member Avatar for murderotica

Is it possible? What would be the classes to use to implement it? I'm just fascinated with steganography. :)

Software Development c#
Member Avatar for murderotica
0
178
Member Avatar for abu taher

I have a datagrid to show data from backend access file. when I click a button it was show. I want I click on a data and it will show in a text box of other form. anybody can help me.

Software Development visual-basic
Member Avatar for AUGXIS
0
96
Member Avatar for Jennifer84

How is it possible to get a menu where you rightclick on the Form ? I am not sure if this is the contextmenu. I tried to add this to the Form and also some components to it but that did however not work.

Software Development c++
Member Avatar for Jennifer84
0
117
Member Avatar for Tekito

Most of my Visual Basic 6 experience comes from VBA with Excel. With VBExcel, you can run any procedure (if it does not require input parameters) by simply putting your cursor in the sub and clicking the "play button" (F5) . With full VB6, the same action will not just …

Software Development visual-basic
Member Avatar for Tekito
0
173
Member Avatar for transplantedNYr

I have to take the following code and make it tail recursive. I am not looking for the answer, but how to find the answer. How to work through this to understand what I need to do. Our hint is that we can change the parmeters of the function, like …

Software Development c++
Member Avatar for transplantedNYr
0
97
Member Avatar for DemonGal711

FIXED - I'm getting a parse error somewhere in this section of code before the else and I can't see it. Please help someone. [B]NEED HELP HERE -[/B] Okay, I'm apparently getting a parse error somewhere in this code. Any help? All the errors are listed as "Parse error before …

Software Development c++
Member Avatar for stilllearning
0
550
Member Avatar for ahamed101

Hi Everyone, I know conio.h is not available in Unix. I want to use getch(). Using curses.h needs causes the screen to clear which I don't want. I found a code snippet (source : internet) using termios, it works, the thing is I need to press enter/or any other key …

Software Development c unix
Member Avatar for ahamed101
0
1K
Member Avatar for acoxia

Hello i have a project to write a program that takes 2 binomials from a text file then factor them and output it into another text file. I'm curious on how to begin going about this do i take the 2 binomials such as (x+5)(x+9) and put them in a …

Software Development c++
Member Avatar for acoxia
0
151

The End.