132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for adamwilden

Hi Folks, Really desperate for help here as I've spent days trying to resolve this one. We have a VB 2008 web browser app using a webbrowser control on our Kiosks at our uni - it works very well and locks down the workstation so teh students can only use …

Software Development session vb.net web-browser
Member Avatar for me655321
0
627
Member Avatar for rt.arti

Hello, I am trying to generate multiple files out of a single text file by changing one parameter. My text file is of the form -- p 3 6 [COLOR="Red"]n 1 1 n 3 -1[/COLOR] a 1 2 0.8 a 1 3 0.7 e 1 2 1 2 0.7 e …

Software Development c
Member Avatar for nezachem
0
100
Member Avatar for mymyzzz

I need to finish this program, but i have no idea how to! please help me figure this out. [code] #include <iostream> #include <fstream> using namespace std; void printShips(char [15][15]); void fire(int row, int col, char ocean[15][15], char &result, char &ship); struct counter { int B, C, D, F, T, …

Software Development c++
Member Avatar for Clinton Portis
0
404
Member Avatar for beforetheyknew

Hi guys, I'm returning this, it is similar to how you percieve dollars, $"32.95" etc. I calculate it in cents which is an int, but the problem is the second half cuts off the 10s of cents part if the number is less than that. eg/ 32.08. Any ideas ? …

Software Development java
Member Avatar for gunjannigam
0
81
Member Avatar for mahela007

Is there a way to get the date a file or folder was last modified into python?

Software Development python
Member Avatar for mahela007
0
101
Member Avatar for RogerI

I need to read in a large amount of data from a csv file into arrays. I am using Numpy as I need to later manipulate and plot the results. I have decided to use numpy.loadtxt as this appears to be the most efficient method to read in the data. …

Software Development python
Member Avatar for RogerI
0
2K
Member Avatar for eduard77

Can anyone tell me what is wrong with this code? I found it on Wikipedia When I compile it it gives me a lot of errors [code] void parallel(int num_threads,int matrix_demention) int i; for(i=0;i<num_threads;i++) create_thread(&threads[i],i); pthread_attr_destroy(&attr); // Free attribute and wait for the other threads for(i=0;i<p;i++) pthread_join(threads[i],NULL); void *gauss(int thread_id) …

Software Development c++
Member Avatar for Clinton Portis
0
141
Member Avatar for amel036yippee

Hello! I'm a newbie here... Straight to the point, I tried to create a program as stated in the title above musing C++. Below are the code I used: [CODE]#include <iostream> #include <cstdlib> const board=8; const pop=20; using std::cout; using std::endl; double table[board][board]; int r; int c; int main() { …

Software Development c++
Member Avatar for amel036yippee
0
102
Member Avatar for vinnijain

Hi!!!! how can I convert words into numerals...In first textbox i enter word and on button click equivalent numeral is displayed in another textbox for Example we enter "One crore twenty lakh thirty four thousand seven hundred eighty four" , then its corresponding numeral should be "12034784". What will be …

Software Development
Member Avatar for vinnijain
0
136
Member Avatar for 9w43

I have no idea what to do, it keeps on saying can not find constructor Time(int, int) here is my Patient Class [CODE] //Patient Class store patient details such as name, age /* * Field declaration for patient, which stores each input to indicated type * p stands for patient …

Software Development java
Member Avatar for gunjannigam
0
211
Member Avatar for Stefano Mtangoo

I see alot of libraries written in C and I like C++ OOP way. How can I use a given C library functions in C++?

Software Development c c# c++ oop
Member Avatar for Stefano Mtangoo
0
176
Member Avatar for venkatnams

guys,,i use vb6 and access 2007,,i hav a problem with my project,,,,my project is about college admin s/m,,,on runtime if i give certain id's for input it hangs and just crashes,,,i dont know why this happens,,,,,i hav applied the same code in many other places of my project but they …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
199
Member Avatar for uberian22

i am getting errors when i compile this program [CODE]#include <iostream> #include <cctype> using namespace std; const int MAX_DIGITS = 20; int size; // number of digits in the integer int digit[MAX_DIGITS]; // the digits stored in reverse order void inputBigInt (int a[], int& sizeA); / void outputBigInt(int a[], int …

Software Development c++
Member Avatar for uberian22
0
79
Member Avatar for tig2810

Hi all I'm new to the Entity Framework and trying to get my head around it but struggling somewhat. I'm trying to do something basic like the below but it bombs out with a 'Null reference exception - Object reference not set to an instance of an object." when I …

Software Development
Member Avatar for tig2810
0
119
Member Avatar for 07tr0wa07

Hi guys i'm new in C++..:icon_wink: I have a homework that i need to pass soon and i need help because i only have 1 error and i'm staring at it for 2 hours:icon_cry: going back and forth to my book and came up with no solution:icon_sad:. ok so heres …

Software Development c c# c++ storage
Member Avatar for Lerner
0
277
Member Avatar for Stefano Mtangoo

Some C++ buzzwords a programmer need to grasp really boggles my mind. I try to understand them but I strangely, get dim understanding of them (am I tired? Need a vacation?). Anyway please help me understand the following big words in C++ 1. Virtual Functions 2. Polymorphism Thanks alot

Software Development c c# c++
Member Avatar for Stefano Mtangoo
0
654
Member Avatar for fawkman

Hey Guys I am coding a grid in c#. I have posted the code below. I get the grid to print, but I want to allow the user to change the Grid Size by using a checkbox. I have tried writing some code to achieve this but I am not …

Software Development
0
108
Member Avatar for richman0829

I think the pieces, taken separately, are okay, but they don't seem to play together well. [CODE] //lab12: This program requests input of ten employee names and salaries; //a file is created and they are written into it, and the file is closed. //The file is then reopened and the …

Software Development c++ ios
Member Avatar for Lerner
0
108
Member Avatar for checker

[CODE]class Database(Student): def __init__(self): g = [] choice = ['Basketball','Football','Other','Baseball','Handball','Soccer','Volleyball','I do not like sport'] data = student.sport k = len(student.fname) print k freq = {} for i in data: freq[i] = freq.get(i, 0) + 1 for i in choice: if i not in freq: freq[i] = 0 for i in …

Software Development python
Member Avatar for checker
0
207
Member Avatar for SoulMazer

Okay, well I've been looking for at least an hour now for some straight-forward python-xlib documentation, and I have been unable to find any. Luckily...I have quite the easy problem. If somebody would be able to help me create a simple script that would say "Hello" every time the left …

Software Development python
Member Avatar for SoulMazer
0
586
Member Avatar for DevC++4.9.9.2

hey im trying to do a quick mod function, i know % exists but this will have other applications... Basically the main issues is when you return "num" it is a different value than if you look at num before it is returned... Any ideas? thanks in advance [code] int …

Software Development c++
Member Avatar for r.stiltskin
0
125
Member Avatar for Mattpd

My attempt of a "bubble sort" only partially works. Say for example if this is my structure declaration: [code] struct part { char name [NAME_LEN+1]; char owner [OWNER_LEN+1]; char status [STATUS_LEN+1]; char date [DATE_LEN+1]; char renter [RENTER_LEN+1]; } parts [MAX_PARTS], temp [1]; [/code] and the following code print: Piston:Mike:In:: Hook:Mark:In:: …

Software Development c
Member Avatar for Mattpd
0
165
Member Avatar for BigTito89

Hello, for my final team project for C++ we are making a simple space invaders clone with the [URL="http://www.libsdl.org/"]SDL[/URL] libraries. Most of it is working great so far but in order to 'destroy' the enemies, they must not be drawn anymore and should be destructed. ER is just the # …

Software Development c++
Member Avatar for BigTito89
0
161
Member Avatar for Fenrir190

[CODE] void readData(ifstream& file, char& operation, int& numOfData) // Purpose: To read data from a file specified by the user { file>>operation>>numOfData; if(operation == 'I') { Array<int>* array; array = new Array<int>(numOfData); } } [/CODE] That's where the problem is coming from. [CODE] const int DEFAULT_SIZE = 30; template <class …

Software Development c++ ui-ux
Member Avatar for r.stiltskin
0
226
Member Avatar for ahspats

How could one find the length of longest row of same elements in a list. For example if i have a list list = [0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1] and i …

Software Development python
Member Avatar for woooee
0
145
Member Avatar for girl.java

hi all this is my code i got an error but unfortunately i can't see it:( please help me.... [CODE] public class QUSTION5 { public static void main (String args[]) { double n = 20; int counter= 0; for (int t =0; t<=25; t++) { n= (220/(1+10*Math.pow(0.83>,t))); System.out.println("At t = …

Software Development java
Member Avatar for girl.java
0
113
Member Avatar for amishraa

So I have calculated the total of students on all of their 6 grades but now I want to be able to calculate the average of all the grades and list the averages next to the total column. Any help would be greatly appreciated! [CODE] //preprocessor directive #include<iostream> #include<iomanip> #include<fstream> …

Software Development c++ open-source
Member Avatar for cibaiciao
0
394
Member Avatar for Lida_pink

How can I draw a line on the form that can go around itself ? I would really appreciate if someone could help me out with this question. I have no clue how to solve it. Thanks in advance :)

Software Development visual-basic
Member Avatar for Lida_pink
0
281
Member Avatar for Stefano Mtangoo

How do programs like easy eclipse get compiled to exe? I'm learning Java in windows and would like to have exe rather than Jar. Also does exe depend on JRE's VM?

Software Development java
Member Avatar for Stefano Mtangoo
0
182
Member Avatar for confusedndazed

Hello guys....I appreciate any and all replies I get but I really needed to be [I]shown[/I] how to incorporate a program title and a function call into this code and have it properly execute. I am really lost with programming so I don't usually understand explanations unless I can actually …

Software Development c++
Member Avatar for confusedndazed
0
102
Member Avatar for Snippset

Hi, I want to change words from a readed text file. To be more precisely, I need to change the date type in a text file to their representing digits. Example 2002 y. June mon. 1 d. is the given text. 02-06-01 is the output. So, any thoughts for getting …

Software Development c++
Member Avatar for Lawand
0
96
Member Avatar for helixkod

current code: [CODE] void showMedian(int *array, int size) { double middle; double average; middle = size / 2; if ( middle % 2) { average = (*(array[middle]) + *(array[middle + 1])) / 2; cout << "The median is: " << average << endl; } else cout << "The median is: …

Software Development c++
Member Avatar for cibaiciao
0
252
Member Avatar for takarii

Ive written a program to do with drawing a line from a centre point and it is meant to snake randomly from the centre. However, it seems to be incredibly biased as to where it decides to go. the 4 directions are as simple as up down left and right, …

Software Development python
Member Avatar for takarii
0
121
Member Avatar for shakatra

Hi to all, I use c#.net 2005 application with sql server 2005, and I hope to make crystal report, So I read many tutorial about crystal reports... But when I create new crystal report, I have this dialog in wizard steps: [URL="http://img102.herosh.com/2009/12/11/110248000.gif"][B]Please Click Here..[/B][/URL] The previous dialog difference tutorials dialog …

Software Development
Member Avatar for DdoubleD
0
138
Member Avatar for pac-man

Quick q, What function takes precedence with a template function vs a non-template function? I set up the following code but my result had the following output Template Template even though a guide I read said it should read: Template Non-template [CODE]// Testing template function vs non-template function to see …

Software Development c++
Member Avatar for mrnutty
0
113
Member Avatar for Vb2008

[B]HI to all[/B] I have got one problem: [I]I use vb 2008[/I] On some websites i go whit my Web browser i got an error!!! it say: [U]An error has occurred in script on this page. Line: 133 Char: 74 Error: Unterminated string constant Code: 0 Url: [url]www.url.com[/url] Do you …

Software Development vb.net web-browser
Member Avatar for Vb2008
0
188
Member Avatar for agent154

OK, so i'm trying to write some code to save a file in my default documents library in windows 7... This is not C:\Users\username\Docuements as is default... I have added another folder in my root D:\ to handle documents. Normally when I save a file using word or any other …

Software Development
Member Avatar for sknake
0
165
Member Avatar for gp04lch

hey guys, recently i came across a code to parse the name of an enum and was wondering if there's anything similar to doing it for a textbox: the coding looks something like this: [CODE]int result = (int)Enum.Parse(typeof(Cars.Engines), inputfixed, true);[/CODE] i would actually like to use the above code structure …

Software Development
Member Avatar for pokopolo
0
92
Member Avatar for ffs82defxp

I don't understand what those two things do and how they work i tried researching off google, but i couldnt get a direct answer

Software Development python
Member Avatar for vegaseat
0
777
Member Avatar for kumaran21

Hi everyone, I'm preparing for my Java module exam and I'm going through previous term papers. I have completed some of the questions and I need someone to check my answers and tell me if I have done it the correct way. The questions are as below, [B]a) Briefly explain …

Software Development java
Member Avatar for Perveance
0
317
Member Avatar for Snippset

Hi, I need to check if two provided words doesn't have the same letter in it. And as I just started with this text thingy, I don't really know much about. For starters I got this code: [CODE] if (strcmp(Z1, Z2) == 0) Memo1->Lines->Add("Z1==Z2"); else if (strcmp(Z1, Z2) < 0) …

Software Development c++
Member Avatar for Snippset
0
170
Member Avatar for squadjot

Hi, i'd like to start a commandline executeable, and then be able to read the content of the output it produces. - Im NOT looking for a Stdout function. Concider having a bat file with following content [CODE]ping google.au ping google.dk ping google.de ping google.se ping google.no ping google.fi ping …

Software Development c++
Member Avatar for squadjot
0
127
Member Avatar for Cy137

I keep receiving the same output for each record when I run it on the test data. I've tried numerous things...any suggestions? I've worked on this for almost twelve hours straight, not counting previous work. I'm hoping one of you guys/gals who know whats going on can point me in …

Software Development algorithm c++ dataset storage
Member Avatar for mrnutty
0
189
Member Avatar for sidra 100

can anyone guide me about the type of questions which can b asked in the paper of programing. i m student of mcs first semester.plz help me

Software Development c++
Member Avatar for mrnutty
0
64
Member Avatar for jotha buddhi

I'm creating a simple desktop application using java. For that I would like to create my own look and feel. But I feel helpless .... Could anyone provide me guidelines in doing this.. If possible would you please provide me some useful, simple websites (explaining the basics) regarding swing-look and …

Software Development ide java java-swing
Member Avatar for peter_budo
0
110
Member Avatar for guccitan88

I'm not understanding my assignment and what I've read has really confused me. This is what I need to do: write a function to initialize an integer Partially Loaded Array with distinct random values. The array has room for 50 elements. The actual number of elements to store will be …

Software Development c++
Member Avatar for guccitan88
0
134
Member Avatar for ribot

Hi! I'm trying to combine some frames in a GUI as a toolbar and content area. Currently I'm on windows and using python 3, and I want preferrably my app to work on *nix and mac as well. The problem is that in the following app, when I resize it …

Software Development gui python tkinter
Member Avatar for ribot
0
2K
Member Avatar for Reimschmied

Hi all, Could someone help me? I have programm that reads xml file and displays it in window with StringGrid. I need to replace my code with a function that has xml file as a parameter and returns two-dementional array of strings (instead of StringGrid). You can see my code …

Software Development c++ xml
Member Avatar for Ancient Dragon
0
137
Member Avatar for maxicube

urmm, hey guys. im getting a 503 error on my program i'm making. It's used to backup multiple files to a online ftp server. and on the 5th file it gets it on this line... [CODE] Stream requestStream = request.GetRequestStream(); [/CODE] heres my code (for the upload)... [CODE] public void …

Software Development file-stream
Member Avatar for maxicube
0
279
Member Avatar for chathuD

i have create a simple aplication to insesrt some details to a database. and now i need to update the details. it means (PK IS ITEM NUMBER) WHEN I fill the update form with an existing ITEM NUMBER the table is successfully updating, but when i enter a NOT EXISTING …

Software Development
Member Avatar for MeSampath
0
97

The End.