132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Burn August Red

Hey everyone, I'm new to this site. one of my classmates told me about it so I'm giving it a try. anyway, for my class I need to write a code for a payroll program. so far, this is what I've written... [CODE]//Assignment 4 //Page 218 //Question 7 #include <iostream> …

Software Development c++
Member Avatar for WaltP
0
209
Member Avatar for battlex2010

I have made picture viewer in VB which also shows all the pics present in a folder as thumbnails using image list and listbox. The problem is whenever the user clicks refresh it takes long time for the image to load. I want to some how make a cache like …

Software Development caching image vb.net
Member Avatar for battlex2010
0
1K
Member Avatar for CD1

Hello, I have a problem with the atan2 function. I have 2 programs, one in C and one in Matlab. Both have an identical implementation. My problem is that I am getting occasionally different values from the atan2 function in C and Matlab. For instance: x=0.29695007709080329 y= -0.96764419257510348 Matlab atan2= …

Software Development c
Member Avatar for CD1
0
218
Member Avatar for bettybarnes

hi i just wonder how to limit an input when a user types a certain number. for example: Input: 5 Input: abacd Output: dcaba here my problem is when a user inputs 5, then the allowed number for inputting characters is 5 only. and then it reverses the string. I …

Software Development assembly
Member Avatar for Schol-R-LEA
0
122
Member Avatar for rezial

hey i got this 3d cube that rotates and does other cool nonsense HOWEVER i cant figure out how to color it. Need to do it with out using java 3d and i DO know about the painters algorithm, i just dont know exactly how to go about implementing it …

Software Development algorithm java
Member Avatar for hfx642
0
358
Member Avatar for sjava

public class Employee { private String Name; private String SIN; private Integer Salary; public Employee(String string, String string2, int i) { // TODO Auto-generated constructor stub } public Employee() { } public Employee(String N, String sin, Integer Sal) { Name = N; SIN = sin; Salary = Sal; } public …

Software Development java java-swing
Member Avatar for sjava
0
115
Member Avatar for cipherbeale

Im having a problem with error message c4430 according to MSDN the warning is created when an int is not declared. Overlooking ,y code I can't find the problem is there something I am missing? here is the code [code=cplusplus] #include<iostream> #include<string> using namespace std; class student { public: ~student(); …

Software Development c++
Member Avatar for Narue
0
998
Member Avatar for blackrobe

Hey all, I've been struggling for the past few days with a "recursive" function that was driving me crazy till this moment. So, the function takes a list of sublists, each sublist containing a number of strings. Then, the function returns a list of lists of all possible combinations that …

Software Development java
Member Avatar for Mavericks
0
9K
Member Avatar for Panathinaikos22

Hi, i use visual studio and i want to know how i can create c projects, there is no any option for c, only for C++

Software Development c visual-studio
Member Avatar for Narue
0
160
Member Avatar for b3ginn3r

printf("Input an integer"); scanf("%d",&int); i want my int to accept integer only.. how can i do that? tnx in advance :)

Software Development c
Member Avatar for Narue
0
11K
Member Avatar for wissam.ashkar

Hello guys, I am building a small accounting system, one of the main functions of this system is to add a new supplier. I am using Telerik, Rad controls ( trial version) to make some appearance improvements. Moreover, I have a winform to add a new supplier which contains several …

Software Development c#
Member Avatar for wissam.ashkar
0
245
Member Avatar for cyberkenji08

i need a password program in assembly language that if you put a password it displays an asterisk (*) instead of the input characters... hope you can help me. thanks

Software Development assembly
Member Avatar for angeliecarias
0
4K
Member Avatar for stereomatching

Below is part of the source code of an allocator from the sgistl(2.91.57) [CODE] void ( *set_malloc_handler( void(*f)() ) ) () { } [/CODE] The purpose of this function is mimic the behavior of set_new_handler. But i don't know what is the meaning of this function. return type = void …

Software Development c++
Member Avatar for stereomatching
0
143
Member Avatar for cozmo87

The following code works: [CODE] public class Main { public static void main (String args[]){ final JWindow f = new JWindow(); JLabel l = new JLabel(new ImageIcon(Main.class.getResource("images/logo.png"))); f.getContentPane().add(l, BorderLayout.CENTER); f.pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension labelSize = l.getPreferredSize(); f.setLocation(screenSize.width/2 - (labelSize.width/2), screenSize.height/2 - (labelSize.height/2)); f.setVisible(true); f.setAlwaysOnTop(true); } }[/CODE] When I …

Software Development image java java-swing
Member Avatar for cozmo87
0
623
Member Avatar for Chaitanya Dhote

Hi, Sir, How can I validate integer value which inputs from console in set method?????? plz help me... [CODE] namespace validation { public class role { private string role_name; private int role_id; public int Role_id { get { return role_id; } set { role_id = value;} } public string Role_name …

Software Development
Member Avatar for Mitja Bonca
0
143
Member Avatar for scobi

[CODE]//#include <stdafx.h> #include <iostream> //line_poly_file.cpp #include <fstream> #include <windows.h> #include <glut.h> GLsizei wh = 250; GLsizei ww = 250; void DisplayLines ( void ) ; void MyInit ( ) ; void DisplayLines ( void ) { GLint xj, yj, j; glClear ( GL_COLOR_BUFFER_BIT ) ; fstream inStream; //inStream.open("R.txt", ios ::in); …

Software Development c++ ios opengl
Member Avatar for scobi
0
309
Member Avatar for Delocaz

I'm looking for how to brute-force the result of something like [ICODE]"Hi".hashCode()[/ICODE]. I have no idea where to start. I looked for the answer for like 5 hours yesterday. It's for reversing Minecraft seeds. (seed-to-text). I tried my own solution. It's too crap to even post. I tried to find …

Software Development java
Member Avatar for Delocaz
0
1K
Member Avatar for anchamal

Can anybody help me how to create a code in VBA that if day is Monday popup message "Your name is Jhon" if day is Wednesday popup message "your name is Tom" Thanks in advance Andy

Software Development vb.net
Member Avatar for adam_k
0
263
Member Avatar for ekvenkatesh

In a program, while compiling the compiler does not give an error but while executing it, i get an error.Only "Floating point exception" is printed on the output screen.Even a cout statement given at the start of the main function doesn't get executed. Can anyone help me out with this? …

Software Development c++
Member Avatar for nightcrew
0
2K
Member Avatar for twinkle2011

[CODE]import java.io.*; class FinalProject{ public static void main(String[]args){ String name=" ", month, date; int total,cash=0,bal=0,y=0; int r=0; boolean ans=true; int test; do{ try{ FileWriter extend = new FileWriter("extension.txt",true); BufferedWriter out = new BufferedWriter(extend); System.out.print("Welcome! to GLORIA'S FUDHAUZ \n"); System.out.print("Enter date: "); date = Enter.readString(); System.out.print("Enter name: "); name = Enter.readString(); …

Software Development java
Member Avatar for stultuske
0
86
Member Avatar for Chhaks

Hi there, I am very new to VB6. I have a combobox name combo1 textbox= text1 and a database which contain field id and employee name. what I want is when I click the combo box and select the value 1 the program should look into the database and if …

Software Development open-source visual-basic
Member Avatar for abu taher
0
192
Member Avatar for brainfo

my code is being compiled but the window auto close after it execute value. I can do this by using getch() also but i wanto to do it without getch() .please help. [CODE] #include <iostream.h> #include <stdio.h> class greatest{ private: int x,y,z; public: void getdata(); void display(); int largest(); }; …

Software Development c++
Member Avatar for nightcrew
0
147
Member Avatar for datdude07

I have a problem getting my assembly program designed to get the first 47 numbers of the fibonacci series to output to a file. I'm not getting any errors except for when opening command window. This is the exact question on my homework problem if this helps : Using Programming …

Software Development assembly file-system visual-studio
Member Avatar for datdude07
0
2K
Member Avatar for Santosh gupta

[CODE] [1]class A{ [2]public static void main(String...agrs){ [3]String str1="ABC"; [4]String str2="ABC"; [5]String str3=new String("ABC"); [6]} [7]} [/CODE] How many objects are created at each line and finally at line 7?

Software Development java
Member Avatar for Santosh gupta
0
105
Member Avatar for programing

hi my program should implement queue using stack h make a code but i still have error if an one can tell me what is he error [CODE]#include<stdio.h> #include<conio.h> #include<process.h> int in_top=-1; int out_top=-1; void in_stack_push(int item); int in_stack_pop(); void out_stack_push(); int out_stack_pop(); int insert_queue[20],delete_queue[20]; void main() { int i,ch,item; …

Software Development c queue
Member Avatar for trin12345
0
178
Member Avatar for laguardian

Hey guys! I'm working on a console calculator. My problem is that how would I perform the inputted operator? So, if the user inputs "+" and a "-" it will perform those. Here's what I have so far: [code] import java.util.Scanner; public class Calculator { public static void main (String …

Software Development java
Member Avatar for harinath_2007
0
141
Member Avatar for kat-spn

Hi I have only recently started using c# in my first year of university. I have done a little vb before but pretty much a noob. I have to write a simple console application that counts how many coins are required to make up a particular number given by the …

Software Development
Member Avatar for Chaitanya Dhote
0
956
Member Avatar for mbox_96

Hi, I have this code to communicate to an RFID device that outputs hex values. [CODE]import serial COMPort='COM13' mySer=serial.Serial(COMPort, 9600, timeout=2) try: mySer.flushInput() print "".join(["0x%2x " %(ord(c)) for c in list(mySer.readall)]) print msg finally: print 'Close' mySer.close()[/CODE] but cause error [ICODE]Traceback (most recent call last): File "C:\Python26\rfidtest.py", line 6, in …

Software Development python
Member Avatar for TrustyTony
0
151
Member Avatar for coding101

Im rewriting an "ls" command to show my directories in one color and files in another for easy notice..currently my stat calls are failing, and I dont know why? [CODE] #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #define TRUE 1 #define FALSE 0 …

Software Development c
Member Avatar for Mouche
0
131
Member Avatar for guidely

Hi, I have a bit of problem to store array from text file, It compile but result is not correct. it will store array when Max Capacity of ship is greater than harbour capacity here is my code [CODE] #include <stdio.h> int loadShip(void) { FILE *fp, *fp1; //char filename; int …

Software Development c
Member Avatar for guidely
0
403
Member Avatar for RockT

Maybe this is the simplest thing ever but i'm a beginner trying to learn at least 1 language. How come the Script below keeps displaying the Else message until it finds the string? I was expecting for it to display 1 single Box whether it was found or not? why …

Software Development vb.net vbscript
Member Avatar for RockT
0
106
Member Avatar for Majestics

How can we access hard disk addresses from c language, accessing ram address is easy? Also can we access MBR of NTFS through c , just a bit dissusion required for starting my work? Thank You All in Advance.....

Software Development c
Member Avatar for nezachem
0
265
Member Avatar for Mugetsu Tensho

Hi, its has been a long time since I have used java and I would like some help making this loop as long as you say yes when you say no the loop will stop but not the program [CODE] if (place.equals("swordsmith")) { System.out.println("Hello " + name +"! Would you …

Software Development java
Member Avatar for Mugetsu Tensho
0
288
Member Avatar for Macilath

Howdy, I have a few questions regarding the use of ctime within a class. I followed the example on [URL="http://www.cplusplus.com/reference/clibrary/ctime/strftime/"]http://www.cplusplus.com/reference/clibrary/ctime/strftime/[/URL] When the program is like this, it works: [CODE] #include <ctime> #include <iostream> using namespace std; int main(){ time_t current_seconds; current_seconds = time(NULL); //Fills current_seconds with the number of seconds …

Software Development c++ oop storage
Member Avatar for Macilath
0
690
Member Avatar for dudekill123

I have created a program store user data in file. But i am only getting one error only but i am unable to debug it. Please help me I used turbo C++ compiler Error is on the line int employee::search_for_employee( int choice, name_temp[20] , email_temp[50]) Here is my code [code] …

Software Development app-store c++ ios
Member Avatar for nightcrew
0
152
Member Avatar for Labdabeta

I am trying to make a static library using Code::Blocks and when I make a new static library project it generates a cpp file with functions encased with [ICODE]extern "C"[/ICODE] I am just wondering if this is necessary or if I can write the functions in normal c++ as well.

Software Development c++
Member Avatar for vijayan121
0
134
Member Avatar for pfm200586

Hello everyone, I have a little problem that drove me crazy I can't figure it out, I spent hours searching the Web but in vain. I hope that you can help with it. The program must generate 6 unique random numbers but when I click display numbers sometimes it gives …

Software Development vb.net
Member Avatar for JoshuaBurleson
0
333
Member Avatar for sowdust

Hello everyone! I need to anticipate that I am very new to the Microsoft developing world, therefore I am not confident with Visual Studio. I need to write an application for a windows server that works with excel. Looking on the web I found that the best method would be …

Member Avatar for skatamatic
0
264
Member Avatar for geeksforgeek

explain the output:-- [CODE] int main(void) { int a=10,b; a=a+b-(b=a); printf("%d",a); } [/CODE] I am not understanding it. the precedence of bracket() is greater so b is assigned to a so expression becomes- a=a+a-a which should be equal to a but it is not why?

Software Development c
Member Avatar for geeksforgeek
0
204
Member Avatar for sidyusuf

hi frnds, i have a certain application in vs2008 with several windows forms.my question is that i have to mention connectionstring on each n every form as: [CODE]con.ConnectionString = "Data Source=mypc;Initial Catalog=Main;User ID=me;Password=pwd"[/CODE] Is there any way to define connectionstring for once for all forms and and one more thing …

Software Development visual-basic
Member Avatar for Netcode
0
116
Member Avatar for phorce

Hello, I am working on an algorithm that checks to see if a value is in an array, however, it doesn't seem to want to work .. It will display that the first number is there but nothing else.. Any ideas? Heres the code: [code] #include <iostream> using namespace std; …

Software Development algorithm c++
Member Avatar for gerard4143
0
335
Member Avatar for sergent

Any decompiler/debugger can convert machine program written in C/C++ to Assembly, but that Assembly is really hard to read, and corresponds to each particular instruction in machine language, not to a C/C++ instruction. So my question: is there a decompiler, that decomplies the C source code to Assembly, not to …

Software Development assembly c c# c++
Member Avatar for GunnerInc
0
134
Member Avatar for cesione

I want to write a program to count the number of occurances of a substring in a main string. am having trouble with this please i need help. my code is below, you can show be a better way to write it and tell me were i went wrong. am …

Software Development c
Member Avatar for cesione
0
219
Member Avatar for Xoteo

Greetings, Originally, I graduated from college with a Computer Programmer degree; later I went on to university to pursue a bachelors in computer science. Unfortunately, when I had completed my studies, the requirement for that type of knowledge in my area had gone from great to almost nil. We coders …

Software Development
Member Avatar for pseudorandom21
0
101
Member Avatar for scobi

[CODE] #include <windows.h> #include <gl/gl.h> #include <gl/glu.h> #include <glut.h> #include <stdio.h> void drawCube(); float vertices [8][3]; int facets [6][4]; void read_file (char **argv); void init(void) { glClearColor (0.0, 0.0, 0.0, 0.0); glShadeModel (GL_FLAT); } void display(void) { glClear(GL_COLOR_BUFFER_BIT); drawCube(); glEnd(); glFlush(); glutSwapBuffers(); } void reshape (int w, int h) { …

Software Development c++
Member Avatar for scobi
0
169
Member Avatar for blt007

Ive been having trouble solving this please help, yea its hw but im using this as a last resort as its due in 2 hours. [CODE] // Search a dictionary file for the word input by the user. // //////////////////////////////////////… #include<iostream> #include<string> #include<fstream> using namespace std; int main() { string …

Software Development c c# c++
Member Avatar for blt007
0
630
Member Avatar for cdea06

So I'm trying to add a while loop so that the program continues to ask for the user to enter a new string phrase after the previous one is counted until the user enters the phrase "quit". However, for some reason if you enter anything but "quit" it just produces …

Software Development java
Member Avatar for Taywin
0
225
Member Avatar for NICEGUY123

Input file looks like this BASKETBALL John Smith 23 , 54 FOOTBALL Jose Cruise 445, 23 BASKETBALL KJ 34, 32 BASEBALL Mike Beterman 3, 2 FOOTBALL David Smith 323, 23 Below is my code. What is happening on my output I get Sport: BASKETBALL Name: John Smith Stat: 23 , …

Software Development java
Member Avatar for Taywin
0
378
Member Avatar for bentom123

Hi, I currently have a form with about 20 textboxes on, labeled Textbox1, Textbox2 and so on... I would like to know how to get the data from any one of these textboxes from an integer. [CODE] Dim text as String text = "Textbox" & RandomInteger & ".Text" msgbox(text) [/CODE] …

Software Development vb.net visual-studio
Member Avatar for Unhnd_Exception
0
3K
Member Avatar for marvolo1300

[CODE] int a [0] = int b [1]; [/CODE] I get this error. [QUOTE]Type mismatch: cannot convert from int to int[][/QUOTE]

Software Development java
Member Avatar for marvolo1300
0
136

The End.