132,726 Archived Topics
Remove Filter ![]() | |
hi everyone, I'm trying to write a program that calculates the the fourth sqrt() of an int ..., can someone help me thnxx Software Development c | |
Hi, this is my first post here so I am not quite sure how to enter codes properly, but I will do my best to explain my problem anyway... Suppose I have a new form (Form1), and I insert a combo box (ComboBox1), and the items for ComboBox1 are 1, … | |
Hi all, I have an assignment to hand in tomorrow for programming and would appreciate any help that is given. I have done a couple of years programming with VB but java is like on a completely level compared to it. Ok, so basically I have to program an application … Software Development java | |
I am a bigginer in python and even programming. I want to use python in my thesis for reading and writing large size data. I have a little sample of code which access which runs over the lines and reads each element on a line. [ICODE]def get_site_only(pat): newpat = "" … Software Development python | |
Topic... just wondering if it would be friend or pointers in the main or something else... Software Development c++ | |
Hi! I have the following code: [CODE=asm] mov al, 5d neg al[/CODE] When it executes, CF = SF = AF = 1 Ok, I think I understand why AF (number is bigger than 00001111b ?), SF (most significant bit is now 1 not 0) But what I don't understand is … Software Development assembly | |
How can I allocate a 2D array? (on the heap) It needs to be dynamically allocated because the values of rows and columns aren't known. Software Development c++ | |
please can any body tell when a new OPERATING SYSTEM kernal works then how it reads the hard disks .Is any body is interested in operating system developement. We are trying to make an OS which is independent in nature .Not UNIX type or WINDOW any body interested can send … Software Development assembly c operating-system unix | |
Well I'm about 1000 lines of code into my first program. After having recently "compartmentalized it" into small functions for readability's sake, I now find myself passing upwards of 8 or 9 variables into them. As I'm thinking of how the program will develop, I realize I'm probably going to … Software Development c | |
What would be a good tutorial for Hangman. I have an assignment where I need to create the game using five classes. I found a couple online but they are incomplete. I'm a beginner to c++ and I would appriciate any help or guidance from you guys. Thanks in advance … Software Development c++ | |
I have to write a C++ code that computes the greatest common divisor of two numbers. When Declaring x, y, temp, remainder as a Integer is this right? Or can someone help me in the right direction. [ICODE]int x = 0; int y = 0; if (x < y) then … Software Development c++ | |
ok lets say I have my code file in my web server and any one can call that functions in that file ( assuming they know the name of the functions ) but they can't see the actual implementation in other word they can use the implementation but they can't … Software Development c++ web-server | |
I did make my dll file out off those two files dll.h [code] #ifndef _DLL_H_ #define _DLL_H_ #if BUILDING_DLL # define DLLIMPORT __declspec (dllexport) #else /* Not BUILDING_DLL */ # define DLLIMPORT __declspec (dllimport) #endif /* Not BUILDING_DLL */ DLLIMPORT void welcome(); class DLLIMPORT DllClass { public: DllClass(); virtual ~DllClass(void); … Software Development c++ file-system | |
Hi How can i get a recursive function like this to work: It should find the sum, then print the sum out inside the function. [CODE] public static int myMethod(int counter) { int sum = 0; if(counter == 0) return 0; else { sum = sum + myMethod(counter-1); System.out.println("Sum is … Software Development java | |
I would like to declare the type of an object based on user input. Ie. I would like to do the following: [code] string obj = //get from command line arguments if(Format == "obj") { ObjFile Obj; Obj.Read(InputFile); Obj.DoSomething(); Obj.Write(OutputFile); } else if (Format == "vtk") { VtkFile Vtk; Vtk.Read(InputFile); … Software Development c++ | |
i have added a function to make selection sort to my code but i can't adjust it. i need that someone try the code and try to adjust it so can someone help me to adjust it plzzzzzzz....and try to help me in sorting in an ascending order by using … Software Development c++ | |
I attach a file what was send by Shaik Akthar. I work with it a new access file. He use Table, I use querie. But it not work.I modify some code like: MSFlexGrid.FormatString = "<DATENOW|<NAME|<DIAGNOSIS|<REMARKS" MSFlexGrid.FormatString = "<Student ID|<Student Name|<Jamal|<Roll No" Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & App.Path & "\DB2.MDB" … Software Development microsoft-access open-source visual-basic | |
OK i'm trying to make a program that saves the records in a file... this is what i got so far and isn't working.. Thanks in advance [CODE]Program AccManager; uses crt; Type T_Account= record User:string[16]; Password:string[12]; Rango:byte; END; Arc_acc= file of T_Account; var Acc:T_Account; option:byte; l,m:integer; Acu:Arc_acc; {**********Preparar o Crear … Software Development pascal | |
I am writing a method (public static void reverse(String word)) that accepts a String as an argument, then returns the word in reverse order. The easy way would be to just have the recursive method print each letter but that wouldn't be my instructor. He wrote the main and the … Software Development java | |
Dear friends I want to create some projects real time projects so that i am well equipped in making cutting real edge projects .....could you please submit some websites which explain some real code like making some text editors in C++ or C(text editors is just an example)I know the … Software Development c++ operating-system | |
hi im trying to check if two strings are equal but ignoring the vowels so that "hello" can equal "hallo" or even "hll". i have a recursive defination for looking at the vowels but i cant get it to work for ignoring the vowels. at the moment i get an … Software Development java | |
Is it possible to establish a jdbc connection within the jar. The jar I will be using has the database file. For eg. The database used is sqlite. (uses file). The file is been archieved with the jar. How to initialize a jdbc connection with the db file in the … | |
I have 2 examples for inheritance in Java The first works but the second not. I wonder why. Does the extended class must implement constructor with [B]super()[/B] [code] class Counter { int i = 0; public Counter() { i=1; } Counter increment() { i++; return this; } void print() { … Software Development java | |
hi, can someone help me translating this functions from c++ to delphi, because i not a c++ coder: here you go: [ICODE] bool IsAnubis() { PROCESSENTRY32 pe32; pe32.dwSize = sizeof(PROCESSENTRY32); DWORD PID = 0, PPID = 0, expPID = 0; HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if(Process32First(hSnapshot, &pe32)) { while(Process32Next(hSnapshot, &pe32)) … | |
Hi everyone, how can i get the updated number of rows from MySQL? Because i need the syntax to do the calculations on the number of inputs, thanks.... | |
i add two numbers but wen it cums to displaying the res by using service 2 of int21,,,,i get the res in hes,,i want same in dec,,,i meam like add 02,01 dispalys a res which stands for heart symbol so that i get a heratsymbol as a res instead of … Software Development assembly | |
Hey guys =] First I just wanted to say I am excited to have found this forum, it looks like the members are very helpful and friendly! Hopefully I'll be able to contribute what I can but I'm not very knowledgeable :P Anyway, I am to create a grading program(utilizing … Software Development java | |
hi guyz.. by the way im using crystal report 8.5 in my project. i have already a report but the report i have is to diplay the viewer.. i want it to automatically print it, without preview the viewer.. what code shall i used? shall i use crytal report? or … Software Development visual-basic | |
Hi guys, im trying to call a function with in another and for some reason i am getting In function `int bDisplay()': `move' undeclared (first use this function) (Each undeclared identifier is reported only once for each function it appears in.) In function `int move()': `int move()' used prior to … Software Development c++ | |
This is supposed to draw a line through the JButtons when square9 is clicked. It doesn't work but there are no errors and I don't see what the problem is. Ezzaral gave me the code to draw the line earlier. Obviously, the winning squares aren't always diagonal, so I will … Software Development gui java java-swing | |
#include <iostream> ; #include <fstream>; #include <string> ; #include <iomanip> ; using namespace std ; int main ( ) { string name; int m1 ,m2, m3; float avg; ofstream outfile("mark.txt") ; cout<<"Write your name :"; cin>>name; cout<<"input 3 marks:"; cin>>m1>>m2>m3; avg=m1+m2+m3/3.0; cout <<showpoint << fixed << setprecision (2); cout<<"ur average … | |
Dear All, I have just started learning c#. Though i am working in electronic publising (ebook and page composition for several years) i am looking programming to be a very helpful for my professional carrier. I my first assignment i have to develop a c# program to access records from … Software Development c# publishing | |
I have this idea that I want to write an operating system. I've started to learn C++, but I have a few questions...One is, obviously, am I using the right programming language? I have looked at a few forums on this site, and it seems to be half of the … Software Development c++ operating-system | |
Hi Guys, Have a question regarding the exception filter. I have a MiniDump class which looks like this: class MiniDumpHelper { public: MiniDumpHelper() { ... } LONG WINAPI exitWithDump(struct _EXCEPTION_POINTERS* exceptionInfo) { ... return EXCEPTION_CONTINUE_SEARCH; } } then i have a host.cpp class where i have a `main()` I try … Software Development c++ | |
Hi, I'm making a matrix class and I'm currently trying to overload some operators. [B] +=[/B] [code=C++]#ifndef MATRIX_H #define MATRIX_H #include <iostream> #include <ostream> #include <string> #include <sstream> class Matrix { Matrix& operator = (const Matrix &m); Matrix& operator += (const Matrix &m); public: Matrix(int x, int y); Matrix(Matrix &m); … Software Development c++ visual-studio | |
Hi, I was working on my assignment and on compiling everything works perfect except at one place the compiler seems to skip the cin command. Here is my code: the skipped command is highlited in red. This particular part is suppose to delete the every occurence of an integer entered … Software Development c++ | |
Hi All, I am facing a problem. I need to do a script which to generate the temp.txt file first when select from database, until the data finish store into temp file then -> MV temp.txt to finish.txt. Any idea? or any sample script for me to refer? I am … Software Development shell-scripting | |
I'm currently writing a program that requires me to check several char values using a while statement and I keep getting the error "operator || cannot be applied to char, char". My code works fine with a single value but as soon as I add || or && I get … Software Development java | |
Hi, I have been trying to wrap my head around this problem for a while now and I just can't figure it out. I've included the code that is involved with the runtime error. Basically, I have a pointer that points to another pointer. Action points to an array of … | |
Can somebody explain whats wrong in the following code ? I am trying to pass a matrix and the called function is a double pointer. [code] #include <iostream> void func(int **); int main(int argc,char *argv[]) { int A[2][2]={1,2,3,4}; func(A); } void func(int **A) { } [/code] Best, Pradeep Software Development c++ | |
[CODE]#include <iostream> #include <cstdlib> #include <fstream> #include <string> using namespace std; const int MAX_MONTH = 13; const int MAX_STRING_MONTH = 20; const int MAX_ARRAY_TEMP = 13; const int MAX_STRING_TEMP = 4; void instructions (); // Explains program to user bool man_or_file(bool& manual, char& m_or_f); // Determines if user wants to … Software Development c++ | |
I just started learning SDL so I can make games in C++, but for some reason my code fails to compile. The code: [CODE=c++] #include "SDL/SDL.h" #include <string> using std::string; int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; const int SCREEN_BPP = 32; SDL_Surface *message = NULL; SDL_Surface *background … Software Development c++ | |
This is more of a general question to see if I got the concept. I defined a class with private member data: one is an int variable and the other is a pointer. 1. Where is the int variable stored?... on the heap or on the stack? 2. Where is … Software Development c++ | |
When I enter a decimal into a field by the time it gets written to a recordset it has been changed to zero if the value is less than one and it is rounded up if the value is greater than one. Any suggestions? Software Development visual-basic | |
Hello All, I am facing one basic problem please help me out here is my script while [ 1 ] sleep 2 data=16:37 one=15:00 two=17:00 I need to check that is data lies between one and two ( data has to satisfy both one and two ) done how? please … Software Development shell-scripting | |
![]() | Hey guys, I'm working on my homework assignment and I did all the code, but I can't figure out how to display the "hours of labor required" and The number of gallons of paint required. Here is the assignment: A painting company has determined that for every 115 square feet … Software Development c++ ![]() |
Btw below is the key parts of my code - not all as there are loads of lines: [CODE] //main.cpp #include <iostream> #include "Customer.h" using namespace std; void displayMainMenu(); int enterMainChoice(); void displayAccountMenu(); int enterAccountChoice(); int enterCustomerID(); Customer createCustomer(); void main(void) { unsigned short numberOfCustomers = 0; Customer *Customers[10]; *Customers[numberOfCustomers] … Software Development c++ | |
Hi everyone, I have been fiddling around with a speech recognition program for a while now and i always had something that bothered me. Here is my code i have been using. It is the example code from code.activestate.com [code=python] from win32com.client import constants import win32com.client import pythoncom """Sample code … Software Development python | |
Hi does anyone knows how to sort in link list, i already done some parts of it and its already working except for the sorting part. please help me about this sorting problem... [CODE]#include <stdio.h> #include <stdlib.h> struct nodeTag { int nData; struct nodeTag *pLink; }; typedef struct nodeTag structNodeType; … Software Development c linked-list | |
The ball (asterisk) wont move =/ [CODE]{*** Made by Code4fun ***} Program DamnBall; Uses crt; const ANP = 79; ALP = 24; MIN=1; ALT=3; ANC=4; Time=100; Var PosX,PosY,Dx,Dy:integer; Procedure DP(pX,pY:integer); {this draws the ball (asterisk)} BEGIN Gotoxy (pX,pY); write('*'); Delay (kk); Gotoxy (pX,pY); write(' '); END; Procedure VP(pX,pY,dirx,diry:integer); {this makes … Software Development pascal |
The End.