132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for natri1991

Everyone watch my code and help me. I'm building a simple program like Paint the windows. Here, I just do the free drawing button. But when I press the button and draw freehand drawing, then the panel draw the toolbar to copy the image above and press a button every …

Software Development java
Member Avatar for NormR1
0
423
Member Avatar for rezonk

#include <iostream> #include <iomanip> #include <fstream> const int NUM_SURVEY=3; using namespace std; struct Survey { int IdentificationNumber; double annualIncome; int numberOfHouseMember; }; void getData(); void calculateAverage(); void findPoverty(); void printReport(); int main() { getData(); calculateAverage(); findPoverty(); printReport(); system("pause"); return 0; } void getData() { Survey Households[NUM_SURVEY]; int i; cout<<"------------Enter " …

Software Development c++
Member Avatar for abdelhakeem
0
222
Member Avatar for MasterHacker110

I am currently using code::blocks but i am experinsing trouble trying to link the ws2_32.lib and other libraries. I tried visual studio express but it doesnt work with me. What are some good FREE c++ compilers that have very easy library linking and are rather user-friendly and that i can …

Software Development c++ visual-studio
Member Avatar for MasterHacker110
0
193
Member Avatar for hii...

In my project (Borland C++ Builder, Windows Xp ) am using following code for opening the file TOpenDialog *OpenDialog; OpenDialog->Filter = "all files (*.*)"; OpenDialog->InitialDir="::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"; OpenDialog->Execute(); But the "My computer" tab is empty its not showing the drives. Rest "My Rescent Documnets" , "Desktop", "My Documents", "My network drives" all …

Software Development c++
Member Avatar for hii...
0
433
Member Avatar for 330xi

Hi! Only two windows-dialogs in my programm. On button click I do this->EndDialog(0); MyWiew mw; mw.DoModal(); ShellExecute(0, NULL, fdlg.m_ofn.lpstrFile, NULL, NULL, SW_MINIMIZE); But MS WORD opens file and starts only when mw is closed. How to start it with the mw together? Thanks in advance.

Software Development c++
Member Avatar for 330xi
0
93
Member Avatar for mancode1007

Guys, I having problem converting the sql server function to mysql function. It work perfect at sql server now it now working at mysql. Please help.Thanks DELIMITER $$ CREATE Function `pearldb`.`SortingAlphanumeric` ( ColValue NVARCHAR(255) ) RETURNS NVARCHAR(1000) BEGIN DECLARE p1 NVARCHAR(255); DECLARE p2 NVARCHAR(255); DECLARE p3 NVARCHAR(255); DECLARE p4 NVARCHAR(255); …

Software Development mysql vb.net
Member Avatar for poojavb
0
117
Member Avatar for dakoris73

Hello everyone; I've been struggling with trying to figure out how to get this struct program to work and I'm at a total loss on this. Basically I need to create two structs POINT which will have an X and Y values, and a LINE struct which will include 2 …

Software Development c++
Member Avatar for subith86
0
131
Member Avatar for mrexp21

I have a file, 'date-list.txt' which has date in it. For example , 20 May 2012 . Now I want to compare this date with current system date and show the difference in days . How can i compare dates and shows difference in days in C++.? Im really a …

Software Development c++
Member Avatar for subith86
0
146
Member Avatar for TIM_M_91

OK so what would I need to change to the following code so it would produce the following: xxx xoo xoo As at the moment it is producing: xxxooo xxxooo xxxooo My code that I have used can be seen below: import javax.swing.*; public class test { public static void …

Software Development java java-swing
Member Avatar for wen_cai
0
104
Member Avatar for Stefano Mtangoo

Hello all, I have been long using Tango Icons and are good, but some stuffs are lacking. Is there good freeware Icon designer or free Icon package? Thanks alot

Software Development python
Member Avatar for jsdevel
0
165
Member Avatar for codeorder

Being a vb.noob as basically most of the vb.net world, I use the `Try/Catch` statement quite a bit for when it comes to errors, as the following. With Me .Text = "a" Try .Text += 1 Catch ex As Exception MsgBox("error: " & ex.Message, MsgBoxStyle.Critical) End Try MsgBox("a") .Text = …

Software Development vb.net
Member Avatar for codeorder
0
4K
Member Avatar for strRusty_gal

Hi can any1 explain this code to me? i dont qute understand. strIPaddress is a ip address and strPort is the port number. _objExtAccess=(IExtranetAccess)Activator.GetObject( typeof(IExtranetAccess), "tcp://"+strIPAddress+":"+strPort+"/ExtranetAccessService"); Thanks.

Software Development
Member Avatar for strRusty_gal
0
115
Member Avatar for Erwin_Rosyid

I stuck against the wall again in implementing list of classes. In the nutshell: The idea is to put a LIST containing several CLASS, the Class content can only be manipulated and accessed with get and set method (which is already established). To add a value inside Job, Paycheck, and …

Software Development
Member Avatar for Hi-Fi
0
126
Member Avatar for stephanieirene

The file contains the instructions. I need help by tonight. Please Help!!!! main.cpp: #include <iostream> #include <fstream> #include "addressbook.h" #include "addressbook.cpp" int main(){ ifstream inStream("input.txt"); string line, header, token; vector <string> tokens; getline (inStream, header); AddressBook myAddressBook; while(!inStream.eof()) { getline (inStream, line); cout << line << endl; int x=0, y=-1; …

Software Development c c# c++
Member Avatar for stephanieirene
0
242
Member Avatar for prasanna123

main() { int i=1; printf("%d,%d,%d",i,i++,i++); } the o/p is 3,2,1. But how it is possible In which order does printf executes??why it is not 1,2,3.

Software Development c c# c++
Member Avatar for Sokurenko
0
191
Member Avatar for dannyfang

Hi, I'm a junior computer science student and I'm currently new to this forum. Im having some problems understanding the code excerpt from a book (see code excerpt below). The code is suppose to delete characters from a string, based on the given prototype: void RemoveChars(char str[], char remove[]); str[] …

Software Development c
Member Avatar for Sokurenko
0
664
Member Avatar for koolhawk

Im creating a Chess game. Im stuck at getting the pieces to move within the rules Aka bishop can only move diagonally. I Create Panels - 64 of them within a lager panel then add JLabels - The pieces - into those panels ` JLabel bb = new JLabel(new ImageIcon("bb.gif")); …

Software Development gaming java java-swing
Member Avatar for NormR1
0
214
Member Avatar for cocofly123

I am newbie in java. I am facing problem now. My purpose is to put the time in textfield. I need press "Start" button and then the time will start go. But after i compile this code. It got error. I have no idea to do it. Can anybody help …

Software Development java java-swing
Member Avatar for TrustyTony
0
274
Member Avatar for yuyuttiu

Hi, I'm new to this site, and I thought this place might help me with some of the problems I am hitting. I am currently in grade 12 Computer Science, and I am coding a third-dimensional snake game (isometric view, so can all be drawn in 2D) I have taken …

Software Development java
Member Avatar for yuyuttiu
0
652
Member Avatar for hwoarang69

i have a array 10X13. where it say 1 i want to print image called wall. ok so the array part is easy. iam pretty sure its fine. less continue. const int ROWS = 10; const int COLS = 13; int level[ROWS][COLS] = { {1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, …

Software Development c++
Member Avatar for hwoarang69
0
208
Member Avatar for Hellblazer.

Hello everyone, I want to start learning C++, because that's what we do at school and I really need to know it. But there's a problem, I don't know where to start from, what to do and such. At school I can't understand anything from the teacher, so that won't …

Software Development c++
Member Avatar for sternone
0
203
Member Avatar for Kerrai

Greetings The quicksort i am building works for only aprox 50000 element in a list. If i go above that i will run out of memory and the program will crash. This is only when i use the median of three or left as my pivot element. When i use …

Software Development c
Member Avatar for Kerrai
0
458
Member Avatar for carsein

Hi guys, I have some problems regarding textbox and radiobutton. My GUI design is like this: I have a textbox, 3 radiobuttons and an enter button. My first question: how can I make the enter button only visible if the textbox is filled and the radiobutton is clicked? If not …

Software Development gui
Member Avatar for carsein
0
252
Member Avatar for coutnoob

Hi all and thanks in advance for your help ! I have a very simple class called circle and i wanna add the ostream << so i can have the ability in main to write cout<<a<<b<<c; the theme is i'm getting many compile errors in the same row eg iso …

Software Development c c# c++
Member Avatar for histrungalot
0
351
Member Avatar for Nfurman

Hello guys, There's some issue with my UIPickerView controller. The data won't pop up in it. The 'Drum' by itself is visible but empty. My code is: - (void)viewDidLoad { [[self navigationController]setToolbarHidden:YES animated:YES]; [self setItemShow:theItem]; self.uiPickerViewData=[[[NSMutableArray alloc]initWithObjects:@"One",@"Two", nil]autorelease]; [super viewDidLoad]; } And method which will work when button is getting …

Software Development ios objective-c
Member Avatar for scottdurica
0
1K
Member Avatar for yavindu

please can anyone send me a simple code of c++ game which is coded without object orientation.

Software Development c c# c++
Member Avatar for peter_budo
0
89
Member Avatar for dvongrad

I have a SQL Server table that has no rows. Programmatically in WinForms C#, I have created a DataTable with the same schema and populated it with data. I would then like to write the contents of this DataTable to the SQL Sever table using a SQLDataAdapter. Since the data …

Software Development sql
Member Avatar for dvongrad
0
218
Member Avatar for TIM_M_91

Ok so when I run the following code nothing occurs so could someone look at the code and tell me where I have gone wrong? public class somee { public static void main(String[] args) { somee f = new somee(); } public void f() { int anInt = g(7); System.out.println("ffff"+anInt); …

Software Development java
Member Avatar for JamesCherrill
0
186
Member Avatar for Iamkenny

Hello people. Ive got a problem with a listbox of mine. I have three lisboxes, one listbox1 is for product category, another lisbox2 is for the product itself in which it will appear after the user has chosen a product category AND another listbox3 which acts like a shopping cart …

Software Development dataset vb.net
Member Avatar for Oxiegen
0
247
Member Avatar for collin_ola

Hi, The code shown below sucessfully saves text onto a line in a txt document, but using the array, I want to be able to save each piece of text on a separate line. How would I do this? Thanks in advance :) Dim filePath As String Dim objectWriter As …

Software Development vb.net
Member Avatar for collin_ola
0
182
Member Avatar for HTMLperson5

Hello all, I am trying to think of ideas for programming projects, Python is the language I know most about so I decided to post it here. I have made some random stuff, like a Python program which generates a specified amount of asterisks I have made a text based …

Software Development python
Member Avatar for HTMLperson5
0
218
Member Avatar for baby_c

Hi all, FIrst I have to say my experiences with C++ are very low. But since we're given an assignment to develop a simple game in C++ now I have to try it out. But I have the basic idea on OOP and programming. So friends where should I start. …

Software Development c++ gaming oop
Member Avatar for sternone
0
270
Member Avatar for vinnitro

This is my program import java.util.*; class Triangle { public static void main(String Vinod[]) { int i,j,n; Scanner sc=new Scanner(System.in); System.out.print("Enter a height of triangle : "); n=sc.nextInt(); for(i=1;i<=n;i++) { for(j=1;j<=i;j++) { System.out.print("*"); } System.out.println(); } for(j=n;j<=1;j--) { for(i=j;i<=1;i--) { System.out.print("*"); } System.out.println(); } } } I dont know what …

Software Development java
Member Avatar for vinnitro
0
160
Member Avatar for ishlux

Hi all, i have installed jdk1.7 , now i want to set the class path.. because i am compiling my program its giving an error.....javac is not recognized as an internal or external commond. please help me to set the class path.......and how to able to run my program.

Software Development java
Member Avatar for ramguru
0
96
Member Avatar for GeekTool

>> I googled the dinference between bitwise and logical operators, but i could not understand exactl what it is. Can you simply explain ?

Software Development java
Member Avatar for NormR1
0
561
Member Avatar for CPT

Heloo,this wil be my first post here, the reason for that is I can't figure this one out by myself public class Client extends Thread{ Socket socket = null; ServerResponse sr = null; private class serverResponse extends Thread{ InputStream in = null; public serverResponse(Socket socket) throws IOException{ if (socket == …

Software Development client-server java socket-programming
Member Avatar for NormR1
0
481
Member Avatar for coutnoob

Hi again and thanks in advance !Any help would be very appreciated cause i'm having a test tomorrow and i need some help! So i wanna have a class called Bag and a subclass Set.In bag we have 2 constructors, an insert function , getsize function , getsum (which adds …

Software Development c c# c++
Member Avatar for VernonDozier
0
224
Member Avatar for GeekTool

import java.util.Scanner; public class SwitchStatement { private String courseName; private int total; private int gradeCounter; private int aCount; private int bCount; private int cCount; private int dCount; private int fCount; public SwitchStatement(String name){ courseName = name; } public String getCourseName(){ return courseName; } public void displayMessage(){ System.out.println("Welcome to the grade …

Software Development java
Member Avatar for wen_cai
0
233
Member Avatar for mcjiwe

main.c #include <stdio.h> #include <stdlib.h> #define MAX_USERS 100 typedef struct Utilizadores{ char *login; char *pwd; } USERS; void ReadUsers(USERS user[]); int u = 0; int main(){ USERS user[MAX_USERS]; ReadUsers(user); return 0; } void ReadUsers(USERS user[]){ FILE *fp; fp = fopen("/home/Jiwe/Desktop/users.txt", "r"); while(fscanf(fp, "%s[^=]=%s\n", user[u].login, user[u].pwd) != EOF){ u++; } fclose(fp); …

Software Development c
Member Avatar for mcjiwe
0
8K
Member Avatar for mitmehta22

i am using MySQL database. i have one field PurchaseDate. i want following result e.g. : PurchaseDate between May-2010 and Aug-2011 pls help me to solve this problem. its urgent. thanks in advance....

Software Development mysql
Member Avatar for mitmehta22
0
114
Member Avatar for GeekTool

can anybody explain with details how to calculate the factor of a number ? i m trying to do this with while statement. how can i do this ? please...

Software Development java
Member Avatar for TrustyTony
0
140
Member Avatar for sidra 100

hey how to clear the screen in c++ i m using dev c++. clrscr()doesnot work

Software Development c++
Member Avatar for adityatandon
0
214
Member Avatar for amethystglow

Hi again, all--- I'm trying to write a function that will add two matrices and output the resulting matrix. I've got two matrices already and everything, now i just need to write the function that i can use to call in my switch loop (The program must read two matrices, …

Software Development c++ matrix-multiplication
Member Avatar for adityatandon
0
643
Member Avatar for rony.united7

How will I implement colors in a console application developed using C++? What are the color codes of different colors?

Software Development c++
Member Avatar for adityatandon
0
145
Member Avatar for haven_u

Hi, I have a matrix of size of n x m, how can the file be read without any given size, thus making it possible to be read with any given size matrix?. Here is the scenario, I have a matrix of size 3 x 2 then someone wants to …

Software Development c++
Member Avatar for adityatandon
0
135
Member Avatar for nathaniscool99

Hello, I am trying to create a Login system, so far it writes users correctly however it doesn't seem to be reading it correctly as it always claims the username/password is incorrect even though when I check the file it is. Could someone help, thanks! class TestLogin { public: char …

Software Development c++ ios
Member Avatar for adityatandon
0
171
Member Avatar for nathaniscool99

Hello I am looking to read a file into a 2d array to show which spaces have been taken/ haven't taken whiey will show a # if not taken and a T if taken, so far I just have a text file I created which shows like this: T # …

Software Development c++ ios
Member Avatar for adityatandon
0
8K
Member Avatar for jeav12
Member Avatar for deceptikon
0
94
Member Avatar for cool_zephyr

hello everyone..i'm trying to create a simple window using Win API in visual studio 2010 using the code below #include <Windows.h> LPCTSTR g_lptstrClassName="myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd,msg,wParam,lParam); } return 0; } int WINAPI …

Software Development api c++ visual-studio windows-api
Member Avatar for adityatandon
0
584
Member Avatar for ampak

I have a command lline script that works perfectly. cat <some_filename> | awk '$9 == 200' | awk '$10 == 10623720' | awk -F\" '{print $6}' | sort | uniq -c | sort -r I want to put this in a shell script so that we do this for multiple …

Software Development shell-scripting
Member Avatar for KenJackson
0
233

The End.