43,549 Solved Topics
Remove Filter ![]() | |
Does anybody know how to use integers larger than the "long long int" type? I have tried using arrays of ints, but mathematical functions are impossible. Thanks in advance. :cheesy: Software Development c | |
Hi, I am using the following items in my s/w.... ------------------------------------------------------ Reporting Toolkit: Crystal Report (CR 11). S/W Front End: Visual Basic 6.0 with Service Pack 6 Back End RDBMS: Microsoft Access 2000 ------------------------------------------------------ I am almost done with CR 11 and its integration into my s/w. Great Thanks !! … Software Development microsoft-access visual-basic | |
Hi I am new to C++ and I would be grateful for some help with the following: [code] #pragma argsused int main(int argc, char **argv) { AnsiString Line; int Index; Line = ReadStringPr("Enter your text. It must not finish with a space character." ); Index = 1; while (Index <= … Software Development c++ | |
I have this code (example) [CODE] const char g_sz_className[] = "myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd, UNIT msg,WPARAM wParam, LPARAM lPraram) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage; break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } int WINAPI WinMain(HISTANCE hIstance, HISTANCE hPrevIstance, LPSTR lpCmdLine, int … Software Development api c++ visual-studio | |
please i need someone to help write a program that receives some sets of binary numbers and convert to decimal..... using C++ Software Development c++ | |
Hello *, I was writing an assert() stmt when I realized the following (see code). Can anyone explain why/how. My final aim is to be able to write an assert stmt for verifying that my function (a demo function) works fine. I heard from someone that there are special assert-macros/comparision-operators … Software Development c++ | |
Okay I need to find a way to mix up a word (a String) recursively. I have just been trying some stuff: [code] import java.util.Random; public class JumbleRecursive { public static void main(String args[ ]) { String word = "test"; System.out.println(jumbleRecursive(word)); } public static String jumbleRecursive(String word) { String a … Software Development java ![]() | |
Trying to learn VB.NET, I have a question about the following code: [CODE]Public Class WageCalculatorForm 'handles Click event Private Sub calculateButton_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles calculateButton.Click 'declare variables Dim hours As Double Dim wage As Decimal Dim earnings As Decimal Const HOUR_LIMIT As Integer = … Software Development vb.net | |
Hi friends, I have written a C program which involves some iterations of numbers that I input in a table. >> Now I want to know how to import these values say from excel or some text instead of me inputtin them.... Any suggestion wil bw very helpful. Thanks and … Software Development c | |
Hey all, I'm new to this forum, first post.. so please excuse me (also excuse the perhaps not so eloquent style, it is still in preliminary!) =). I'm writing a short piece of code in compliance with a webserver I've been programming with a group. This code is to auto … Software Development c c# c++ first-post | |
I am using a ADODB connection to connect to an access database and am using an SQL string as the comandtext....but i need to check the validity of wat i have typed.....here is the sql statement.. [code] dim cmdcommand as new adodb.command With cmdCommand .ActiveConnection = conConnection .comanttext = "select … Software Development sql visual-basic | |
Just registered but you guys have been a big help for the whole semester. I have what seems to be a simple problem but I'm just stuck. My assignment is a game of life sim that prompts the user for an input file, and then reads integers from the file … | |
Hi there, nice to meet you all. I'm a beginner using visual basic only started to learn it about a months ago. I'm having serious trouble at the moment. I need a program that as soon as it is opened it prints the time into 100ths or miliseconds of seconds, … Software Development display visual-basic | |
Hello, I am having a great amount of difficulty understanding events for wxPython and have read many tutorials and other things so I was wondering if you could try to help me understand. First of all I am using Boa-Constructor so practially all of my code so far is autogenerated. … Software Development python | |
Hi, I am writing a little program in C++ that is used to read a file which contains several paragraphs. The paragraphs are not indented and there are a blank line or sometimes two blank lines before the start of each paragraph. I have written the program and can read … Software Development c++ | |
Hi fellow c++ programmers, I need some help with an assignment from my c++ class. The assignment is to use a input file with the following 1 4/12/2007 34 -- 1 is the reference number, date , and temperature to be converted to farenheit. Now i have to output it … Software Development c++ file-system | |
Can anyone tell me why I'm getting build errors on the actual function heading and the line under it (**) saying "type bool is unexpected" and that I'm missing a ; before {? I've looked and can't find anything. Also, I get this error but there is no line 80 … Software Development c++ | |
Hi! I'd like to know how to print something when the user ends the program (with ctrl-c for example). An example is the "ping" command (in most linux versions), that gives the average ping when the user terminates it. Thank you! Software Development c++ | |
hello dears! i have a question about my program i am suposed to make a program that calculates thea factors of a number and add them and see if the number is a perfect number. i made this program and it works fine but now i have to change this … Software Development c++ | |
Hi All... I'v a piece of code kindly help me understanding its functionality [code] #define FLAG_CDR 0*01 #define FLAG_MSR 0*01 unsigned Flags = AFE_REG_FLAG_CDR | AFE_REG_FLAG_MSR; Flags &= FLAG_MSR; // 'turn off cdr flag' [/code] how it works... Software Development c++ | |
Hi, I have used a Flex Grid control in displaying a set of records from the MS ACCESS database (back end) with the means of VB6 code (front end). In my database i have 9 records and the flex grid control has been deisgned at design time with 7 rows. … Software Development database-design visual-basic | |
Hello all, I'm working on an app that takes a huge computational effort. It all works fine, but while calculating all other processes are overruled: - switching between forms doesn't work while my app is computing - Progress bars aren't properly refreshed, despite my form.refresh command So basically I'd like … Software Development vb.net | |
Hello Friends, Suppose I have a function like - [code] void myFunc( char* str) { ....... ....... } [/code] And I have to pass a pointer of type "const char*" into that function. Now my question is that can I pass the pointer like following way (ie by custing it … Software Development c | |
I have not done any c++ programming yet but was wondering how you use arrays in a for loop for example the code below int i; double D_Nath(11),D(11),er(11); for( i=0;i < 11; i++) { D_Nath(i)=PI*D(i)/er(1)*.76554; } how dod you get this to work correctly. Thanks for any help with this. Software Development c++ | |
Sorry to embarass myself here. Does anyone knows how to use C or C++ or Java Programming, or any other language for programming for novices? I'm a REALLY beginner. Anyone that is Professional in Programming and willing to teach please kindly teach me the BASIC of programming and the language, … | |
Hey every1...........i need to know dat which of the library is used in VC++ for graphics interpretrion... Can any one help me......????????????????????????????????????????????/:rolleyes: Software Development c++ | |
This code is supposed to sort the numbers I input. I get only 0's [code=c] // Group Project 10.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <vector> using namespace std; void selectionSort (vector< int> list, int length); void fillArray(vector< int> list, int … Software Development c++ | |
[B]this is my 1st time to post. help pls.[/B] [B]can anyone help me program tictactoe (java w/ gui)? req. are comp vs player, player vs player, 2d array, replay, undo..plssss...i need your help :sad: rep asap..thank u very much :cheesy: .. pls:sad: [/B] Software Development first-post gui java | |
Hey, it's been quite awhile since I last posted, but I'm stuck. What I'm supposed to do is look at this code and tell what would appear on the output screen. I ran the program and found that it should display: 2 3 6 1 5 0. However, I just … Software Development c++ | |
I have to write a program that converts user entered Kilometers into Miles. But, I need to use two functions in addition to main program which is... [code] def main(): print "This program converts distances measured in kilometers to miles." kilometers = input("What is the distance in kilometers?") miles = … Software Development python | |
The last time I posted a question here, I got a rather nasty response, so please just constructive stuff! I want to make a scrollable entrybox for Tkinter GUI, the scrollbar shows up and works, but text does not move. Am I missing something? [code=python] import Tkinter as tk root … | |
Hi, I'm using a datetimepicker in a form and i have a textbox also. I need to list the days clicked separated by a "," in the textbox, however i have no idea how to code it. ex. i used [code] dates_chosen.text = datetimepicker1.value.dayofweek.toString [/code] but if i click on … Software Development vb.net | |
Is possible to do this: [code] from Tkinter import* scy=Scrollbar() scy.pack(side=RIGHT,fill=Y) scx=Scrollbar(orient=HORIZONTAL) scx.pack(side=BOTTOM,fill=X) canvas=Canvas(xscrollcommand=scx.set,yscrollcommand=scy.set) canvas.pack(fill=BOTH,side=LEFT,expand=1) scx["command"]=canvas.xview scy["command"]=canvas.yview canvas["scrollregion"]=(-1000,-1000,1000,1000) mainloop() [/code] in wxPython?? Thanks for all post, i am new in wx:lol: Software Development first-post python tkinter | |
i thoguht i had this working and someones done something and its now no longer working, i couldnt workout what was changed. [code=cplusplus] #include <iostream> using namespace std; int main () { Double annSal, mthSal, nAnnSal, nMthSal, pcent, numBkPyMths, bkPy; pcent = 0.065; numBkPyMths = 5; annSal = 0; nAnnSal … Software Development c++ | |
I am upgrading a vb 6.0 app to .net and I'm having trouble moving a file. The app retrieves info from an XML. When it's done I try to move the .xml file to a history folder and I'm getting an error: An unhandled exception of type 'System.IO.IOException' occurred in … Software Development file-system vb.net xml | |
I have written this program and I've having a problem making a function out of it, can you help? import math from graphics import * def drawface(): center = input('What is the center of the circle(enter as Point(x,y))') size = input ('How big is the face?') win = GraphWin() circ … Software Development python | |
I am writing a short program in c on a linux platform which takes an argument from the command line. My only problem is retrieving that argument. It is an integer. Here's what is currently in my code: int seconds = *argv[0]; Thanks :cheesy: EDIT: Here is the rest of … | |
I have a function that returns an int. How can I call it from the main function. Software Development c | |
um something i have been wondering for a long time is. how do u make it so the user inputs a word and the program identifies the word as a number so like if someone typed the word frog and it reconized it as the number 5. Software Development c | |
um latly i have ben seeing stuff like bla_bla_bla in tutorials and stuff and im just trying to figure out what this "_" character is supost to mean could any one help me? Software Development c | |
Hi, this is not a HUGE problem but I was jw why at the end off all my codes I have to type, system("pause");. When I even do the Hello World! program thing the black screen just flashes. I was jw why no one elses codes have this. Its not … Software Development c++ | |
hey im trying to make a simple program to calculate backpay and pay rises for my dads business, ive worked out a pseudocode for it, but am having trouble implementing it. BEGIN Salary Increase numberOfBackpayMonths = 5 PRINT “Congratulations! You had a 6.5% pay rise retroactve for five months.” PRINT … Software Development c++ | |
I am trying to return an array of integers from a method into an array in my main. I know that you cannot pass an array in C, but you can pass a pointer to the array. My problem is though that every time I pass the pointer, I seem … Software Development c | |
this is about making a loop for powers stripe3 is the variable how do u do stripe3*10 stripe3 times for example if stripe3 = 5 then my question is how do u do 5*10 5 times because there isnt an opperation in c++ for exponents so i was thinking of … Software Development c++ | |
hello guys . the code is doin well enter sorted integers and num to be searched the problem is in the last if condition [CODE] #include<iostream.h> #include<conio.h> #define siz 10 void main() { int arra[siz]={0}; int mid,beg=1,end=siz,loca=0,num; clrscr(); cout<<"Please Enter The Elements Of Array\n"; for(loca=0;loca<siz;loca++) { cin>>arra[loca]; } cout<<"Please enter … Software Development c++ | |
I get a tip of $8.0 when I want $8.4. What am I missing here? [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Tip extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Tip frame = new Tip(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void … Software Development java java-swing | |
i have a string array and I need to change it to uppercase. what function can I use?? Software Development c | |
Background: > An n x n matrix that is filled with the numbers 1, 2, 3, ... n squared is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value. Write a program that reads in … Software Development java ![]() | |
My code is below. I'm pretty sure my issues are spanning my my .resize(). It's possible I'm doing my hashing completely wrong too, but it was right at one point. This code wont run at all right now, but it compiles. Is there a better way to go about sizing … Software Development c++ |
The End.