132,726 Archived Topics
Remove Filter ![]() | |
Hi im very new to this but i am trying to write a progam that serves as a student database for a project at uni. Ive been stuck on this problem for ages now and can seem to spot the probably obvious mistake ive made. The code compiles but the … Software Development c++ | |
Hi.. I am trying to popup 53 uri's in single firefox window in tabs..But using the given code am getting it in different windows..Can anyone check dis out..n help me to correct it.. #!/bin/bash processLine(){ line="$@" # F1=$(firefox $line?wsdl | awk '{ print $1 }') #firefox -new-tab "$line?wsdl" firefox $line?wsdl … Software Development shell-scripting | |
I just want to ask if there's a site where I can download Savings.h header file, I just need it for my sample program, my Borland 5.5 dont have it and even Dev-C++. Thanks! Software Development c++ | |
Hi i have a listview control on form1. I want to send the selected value to form2. I tried couple of ways but nothing seems to work correctly. Please help. | |
Hello, I need some help getting my program to read from a text file. Everything seems to be compiling fine but Im getting an error as soon as the program runs because, i believe, the information is not being inputted properly. Thanks for any help! [code] #include <iostream> #include <fstream> … | |
can someone pls tell me what is the damn error here?!! [CODE] package t6q6; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner (System.in); System.out.println("Please enter your account number."); int account = input.nextInt(); System.out.println("Please enter P or R for Premium or Regular … Software Development java | |
I'm trying to repair a program that computes averages of several values inputted by the user. All values are scanned on one line and taken as an array. My program is nowhere near complete and I'm trying to fix it up little by little. The one part that I am … Software Development c | |
hi, i am developing a desktop application in VS 2008 standard edition, i have a form with a text box with a button and a grid view. when i type a part of the file name in the text box and then click on the button all the files which … Software Development c# | |
I have created 3 separate files but having issues with rationalnumber.cpp saying 'Rational' is not a class or namespace name. Any suggestions? Below is what should happen.....but I'm stuck thanks the RationalNumber class should overload the stream insertion (<<) and stream extraction (>>) operators. The stream extraction operator should prevent … Software Development c++ | |
see this code with the queastion [CODE]#include <iostream> using namespace std; int main() { char str[30]; cout << "enter a word: " << endl; cin >> str; // if the user input: malaysia // so the output will be 3 because there are three charchter of 'a' return 0; } … Software Development c++ | |
Ok i need to read in 2 files. The first file contains employee data, and second file contains employee ID# and the hours the employee worked. I need to matchup the ID numbers and add the hours, which i have done. my problem is if there is a invalid ID#, … Software Development c++ | |
Hi all, I am doing some swing game programming and I am at a bit of a loss right now as the AWT Event 0 thread ( I have system.out.printed its name) seems to be calling the same code twice, any ideas on this? I am overriding the paintComponent() of … Software Development java java-swing | |
Hello new to the forum, I've been learning and working with C++ for a few months now and I've started to learn how to use strings. What I'm trying to do is take each individual line from a text file and dissect all blocks of text separate by a space … Software Development c++ file-system | |
Hello there! Expora here again. I'm trying to get the hang of functions now and I made a simple program to calculate percent but I don't seem able to get it to work I can enter the 2 numbers but when i get the results is something like 0041123f. Any … Software Development c++ | |
I'm supposed to rewrite a binary search function so that it uses a generic type for array elements instead of just int. The only changes I made to the function are inserting the line "template<typename T>" and changing the line "int binarySearch(const int list[], int key, int arraySize)" to "int … Software Development c++ | |
i want to read in several `4*4` squares of numbers from a file and determines whether or not each of those squares is an increasing square. file containing numbers 3 1 2 3 4 2 3 4 5 6 7 8 9 5 6 7 8 1 2 3 4 … Software Development c++ file-stream | |
Hi, I'm trying to save elementtree back into an xml file and it bahaves really strange. I have a function which takes some QTextEdit text arguments (obviously QStrings) and if I save a node property as a QString, it saves the file fine, but if I try to save a … | |
Hi! Can any c programmers there help me with this assignment please? I really do not get my lecturer. Conway's [I]life[/I] is a special kind of game. It isn't really a game - just a spectator sport. It is played on a chess board, where each cell is either alive … Software Development c | |
Hmm, I was trying to load strings from a file(formated) to an 2D Array... but.... [CODE] FILE * fp; char TempBuffer[100][100]; char array_game[100][100]; fp=fopen(filename,"r"); for(i=0; i<100; i++) // Create 2D array to Hold the array of the file { for(j=0; j<100; j++) { fgets(TempBuffer,101,fp); strcpy(&array_game[i][j],TempBuffer); } } [/CODE] I get … Software Development c | |
Hi, can you help me? I have this program and when I compile it, it write me this: 1>main.obj : error LNK2019: unresolved external symbol "void __cdecl OnMessage(unsigned int,long)" (?OnMessage@@YAXIJ@Z) referenced in function "int __stdcall DialogProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DialogProc@@YGHPAUHWND__@@IIJ@Z) 1> fatal error LNK1120: 1 unresolved externals [CODE] . … Software Development c++ | |
[CODE]#include <stdlib.h> #include <stdio.h> #include <time.h> #define MAX_ROWS 10 #define MAX_COLS 10 static char map[10][10]; void sin1(char map[][MAX_COLS]); void sin2(void); void sin3(char map[][MAX_COLS]); int main(void) { system("chcp 1253 >nul "); FILE *fileptr; char myColchar,apantisi,map[MAX_ROWS][MAX_COLS]; int metritis1=0,apotelesma,myColnum=1,myrow=1,k,a,l,c,row, col; char r,fileRow[MAX_COLS + 2]; // account for newline and NULL printf("dose tin diataksi … | |
Need java sample code of type object pattern Thanks Software Development java | |
Hi Looking for a way to pass back multiple data types from a method. I want to be able to pass back an array that the method fill out, and also the length of that array (I need that because the calling code will pass the byte array to the … Software Development data-structure java | |
Hey guys, after compiling my program I get the following error [code]Windows has triggered a breakpoint in *.exe. This may be due to a corruption of the heap, which indicates a bug in *.exe or any of the DLLs it has loaded. This may also be due to the user … Software Development c++ | |
Hi. At the moment I'm trying to get this very simple calculator to just set the label of the text in the GUI to just be the label value at the moment. I plan to make it do the math but I'm having trouble getting to that point. When I … | |
Hi, I have been searching high and low on google, and I cannot seem to figure out how to convert unicode to integers. Take the unicode codepoint, u'3001', for example. I know in utf-8, this is suppose to be ideographic comma. The hexadecimal representation is 0xE38081. I know if I … Software Development python | |
Is it possible to do function overloading with different return type? For example: [CODE] void myfunc(double x, double y); double myfunc(bool x); [/CODE] Software Development c++ | |
I have an integer 'a'. It is a random number from 1-10. How do I express interger 'b' to be a random number from 1-10, but not equal to 'a'? Would it be something like this?: srand ( time(NULL) ); a = rand() % 10 + 1; b = rand() … Software Development c++ | |
i cant figure out why this error is coming up saying that "exams" are undeclared identifier. all of them? // basic file operations [CODE]#include <iostream> #include <fstream> using namespace std; void read_file_in_array(int exam[100][3]); double calculate_total(int exam1[], int exam2[], int exam3[]); // function that calcualates grades to see how many 90,80,70,60 … Software Development c++ | |
[CODE]#include <iostream> #include "IntStack.h" int main() { int i; TIntStack a(5); TIntStack b(20); TIntStack *ip = new TIntStack; for (i=1; i <=5; i++) { a.Push(i); b.Push(-i); } for (; i <=10; i++) b.Push(-i); TIntStack::PrintStack(a); a = b; TIntStack::PrintStack(*ip); delete ip; return 0; } [/CODE] [CODE]#ifndef INTSTACK_H #define INTSTACK_H const unsigned … Software Development c++ | |
Consider these functions: [code] void OperateOnDoublePointer(double* a) { std::cout << a[0] << std::endl; } void OperateOnFloatPointer(float* a) { std::cout << a[0] << std::endl; } [/code] This works as expected: [code] double* c = new double[1]; c[0] = 3.3; OperateOnDoublePointer(c); [/code] but when I try to do this: [code] double* c … Software Development c++ | |
I have a project which is to design a came called Miensfeld. In Miensfeld, the player, Timmy, is located on one side of a 8 by 10 cell area minefield. My task is to move Timmy safely through the minefield to get to the other side, earning points as he … Software Development c | |
I have a class with a public property exposing a collection of objects. The collection is being maintained within the class by multiple threads. The objects within the collection will change and also the properties of those objects. Observers can view the collection as read only from other threads, for … Software Development | |
Hi, I'm hoping someone can help me figure this out. I have to write a program to average scores and print grades using structs and arrays. It's a problem for my class and I think I'm close to finishing but I'm just missing something...maybe a couple of things. I'm getting … Software Development c++ | |
Hi everybody! I want to get list of files and folders with permission from ftp! This is my code: [CODE] from ftplib import FTP ftp=FTP('ftp.domain.com','username','pass') a=ftp.dir('') [/CODE] after runnig : (Output) drwxrwxrwx 1 user group 0 Mar 01 14:29 Backup drwxrwxrwx 1 user group 0 Mar 01 14:29 logs drwxrwxrwx … Software Development python | |
Hey, this is a continuation of my image editing program, I am trying to perform intensity thresholding with an intelligent threshold. My code thus far: [CODE] private void thresholdMenuItemActionPerformed(java.awt.event.ActionEvent evt) { BufferedImage inputImage = getImage(); setUndoImage(inputImage); BufferedImage thresholdImage = new BufferedImage(inputImage.getWidth(), inputImage.getHeight(), inputImage.getType()); int threshold = 0; int tnew = … Software Development java | |
I'm starting a process in a thread that is used to built up a treeview with a recursive method. I'm getting the following error "Action being performed on this control is being called from the wrong thread. marshal to the correct thread using Control.Invoke or Control.BeginInvoke to perform this action." … Software Development | |
Hi people, I am new to Java but have experience programming in C/C++/C#. I wanted to learn Java SE 6 first before moving to Java EE 6. After making some research online for appropriate Java SE 6 books, I found that these are appropriate for me to get an excellent … Software Development java java-swing | |
Hello everyone, After I created a JTable with: JTable MaTable =new JTable(); MaTable.setModel(new DefaultTableModel(new Object [N][1], new String [1])); I wanted to add new columns to it, so I did this: TableColumn Colonne = new TableColumn(); MaTable.addColumn(Colonne); The operation did worked, even the new columns displayed correctly, but, when I … Software Development java | |
I have an attachment PDF with pixel alignment. Then I have this code which assigns short integer to appropriate pixels. [CODE] void CMFC3xxDevice::prepare_data_decompress(data_package_ex &pdata) { char *input = (char*) pdata.pData; int incount=pdata.cbData; int finalarray_pos = 0; DWORD dwTempBufferSize = pdata.cbData; for(int i = 0; i < incount; i+=3) { MFC3XXPixelAlignment … | |
I have to read from input file (which contains strings and integers) only integers, rearrange them to descending order and write to output file. How should I do this? Software Development c | |
Hi guys, I am trying to make the Tic Tac Toe Class game but I am encountering an error with the initialization of my array for the game board. Instead of initializing everything to blank spaces, random characters end up in there and I don't know what is causing this … Software Development c++ | |
Please suggest me some tutorials on Windows programming in C with detailed review on windows registry and header files like #include<windows.h> #include<functions.h> #include<fstream> #include<dos.h> etc... Software Development c | |
Hey, I have to read numbers from a text file. Heres an example input: 6 8 1 2 10 1 3 9 2 3 7 2 4 2 3 5 5 4 5 3 4 6 8 5 6 4 The parser I coded works fine in NetBeans and Dev … Software Development c++ file-system | |
I try to make a program that read the content from a .txt file and then print the content using Console.WriteLine() .I add the file that I want to read to my project . This is the content of my file: Hello.txt: [CODE]Hello World!!!!!!!!!!!!![/CODE] And this is my code: [CODE]using … Software Development file-system | |
we use a terminal emulator called facetwin to run our main unix based applications we want to attach a small document scanner and magnetic strip reader to the system this runs on currently we have a magnetic reader that emulates a keyboard so it sends keystrokes back to the unix … | |
Hey, Im trying to write a program that using gauss-jordan elimination to solve a set of linear equations.It reads in two files names for matrix A and C. I have to first form an augmentes matrix (A|C) and then do the elimination.Can any one help me by telling how to … Software Development c++ matrix-multiplication | |
can someone show me how to upload and download files from the database in C#.NET 2008 standard edition, please help me with this or send a link so that i can follow step by step because i am not familiar with these. thanx appriciate a lot Software Development | |
I need to get character input from the user and convert it into a float type. However, I can't use arrays, strings or the functions printf() and scanf(). I have to do everything with putchar() and getchar(). How would I do this? Software Development c | |
Intro - I am an electrical major. Having said that, my school has a pilot program this year that I was randomly selected for, that includes introduction to C# in the program. I am not very familiar with programming at all but I must admit, I have made decent progress … Software Development |
The End.