132,726 Archived Topics
Remove Filter ![]() | |
Can anyone spot the semantic error in this triangular number calculator here? It correctly reports 21 as being a triangle number but incorrectly that 15 is not a triangle number. However if you input 15 as the first value entered it correctly says that 15 is a triangle number!! [code] … Software Development c | |
hi Please help,i have installed Visual studio .net 2003. i code in C#, when i write my code, for example "Console." imidiately before i complete the statement it closes the application requesting to restart the application, and i wrote my code on a notepad making sure that the code is … Software Development c# visual-studio | |
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 | |
I am writing a program that allows the user to insert numbers and then the program sorts them into ascending order. I have this accomplished, however, I also need an array to count the number of times each number the user inserts occurs. For ex: Say the user inserts 3 … Software Development c++ | |
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++ | |
Hello I have two forms currently. One is "normal" and the other is set to topmost and invisible. I want the topmost form to capture all keyboard input, but the form underneath should still be operational (have methods called, values changed, have it's buttons clicked etc) That in itself I … Software Development | |
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 ![]() | |
#include<iostream> #include<fstream> using namespace std; void main(){ ifstream inf("data.txt"); char name[30]; while(!inf.getline(name, 30, '|').eof()) { char jersey_number[10]; char best_time[10]; char sport[40]; char high_school[40]; inf.getline(jersey_number, 10, '|');// #read thru pipe inf.getline(best_time, 10); // #read thru newline inf.getline(sport, 40, '|'); // #read thru pipe inf.getline(high_school, 40); // #read thru newline cout<<"jersey number: … Software Development c++ ![]() | |
Hi I'm new to this grp. I'm working on Vb6.0 apps. Here i've a problem, I'm using Dir(filepath) to retrieve the file from specifies path and i want to retrieve similar files from the same folder. I wrote Dir$ in the end of while loop. here is how my looks … Software Development visual-basic | |
hey guys, i'm using Borland 6 c++ in windows xp, now that we got that i have a problem with my program, i have recently created a password function in a programm that works so that when they try to type in their password it shows the * instead of … Software Development c++ windows-xp | |
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 | |
Hello, I have just installed Microsoft Visual Studio 2005 and it has the folowing to select, under C++ projects selection: ATL; CLR, MFC and Win32. Now Id like to know what are ATL, CLR and MFC and what is each of them used for, Anyway does anyone know when will … Software Development c++ visual-studio | |
[B]Any expert can solve this??[/B] Error message will occur during execution, is something related to sql. the program will show an error on objcommand.executeNonQuery. Can solve this? Imports System Imports System.Data Imports System.Data.SqlClient Public Class Form1 Inherits System.Windows.Forms.Form Dim objConnection As SqlConnection = New _ SqlConnection("server=(local);database=uni;" & _ "Integrated Security=True") … Software Development sql vb.net windows-server | |
hiii all! i want to add a customer feedback feature in my application in which customer send an feedback through email. hw can i send email in vb 6.0. plz help nihar Software Development email visual-basic | |
I'm trying to find the min/max of the number of years played and the min/max batting average of a list of players in an input file inputted in by the user that looks like this, the file is read and checked and then the program goes and gets the name, … Software Development c++ | |
Hi can any one give a solution. I want a program in c# where in a form two text boxes will be there. 1) if we give or write some input in 1st text box it should be stored in a text file and in second text box the input … Software Development | |
I have a little annoying problem and I really need help. I need to convert a char* to TCHAR* and I can't... I have tried everything and nothing seems to help... TCHAR text1[ ] = ""; char *key; key[0] = 'a'; key[1] = '\0'; text1 = _T(key); //Does not work … Software Development c | |
somebody help me pls... my task is to search a value that matches to my csv file. my csv file contents is like this: 0,"100","WA" 101,"201","BC" 202,"302","EC" this should be the scenario. enter value: 205 output: BC pls include the codes.. i am just a beginner.. thanks in advance.. Software Development c++ | |
Short version of my question: __________________________________________ How can I detect a keypress in Java without using a GUI? Long Version: __________________________________________ I am writing a program that users System.out and System.in for its input and output. As you are no doubt familiar, if you are in the middle of typing … | |
[CODE=c]#include <stdio.h> #include <string.h> #define MAXLON 10 #define N 6 int main(void) { int opcion, elocal=-1, evisitante=-1, resultado, lista_puntos[N]={0,0,0,0,0,0}, i, o, ganador; int resultados[N][N]= {{-1, -1, 0, -1, 2, -1}, { 1, -1, 1, -1, -1, 1}, {-1, -1, -1, -1, 0, 0}, { 1, 1, 2, -1, -1, -1}, … Software Development c | |
Hi all, I'm new to J2EE programming. I have a simple doubt . I have already created a lookup method for EJB bean in Session bean . My question is how to call a method of an [B]ENTITY[/B] bean (say insertRow) from [B]SESSION[/B] bean method(Say invoke_insertRow) . Please provide me … | |
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 | |
Hi. I'm new here. I'm doing a lotto program. I have this difficilty that I want to display a title before the numbers are displayed. The numbers are all displayed by the computer using randimize. Above you can see the part of program i've done. Where should i put the … Software Development pascal | |
Hi Could anyone please help me, I need to open an existing excel document using vb6. I only need to display the document. Software Development visual-basic | |
hi all i cant figure out how to put popup window to show in the middle of my text editor? It is writen with Toplevel in tkinter. thx | |
hello... I'm looking for a calculator program written in assembler... it needs to do all the basic functions of a calculator eg add, subract, multiply, devide... if anyone can point me in the right direction of where to find one it would be greatly apprecitaed...! thanx... neil... Software Development assembly | |
I cannot figure out how to "call" the functions into the main. Please help!! [code] // ****************************************************************** // // Grades.cpp // // This program computes student grades. For each student, two // quiz grades (graded on a 10 point basis), one midterm exam grade // and one final exam grade … Software Development c++ | |
hi, i want to make a program simular to this:: [url]http://www.daniweb.com/code/snippet356.html[/url] but i want it to use Strings not char arrays.... PS::In other words i want to binary write a class-struct which contains a string member.....I think the fact that string is of arbitrary size, creates problem... Software Development c++ | |
Hi all...my first post here...WOOHOO!! Ok...now to the meat of the question... I'm a student at the the local JC in an intermediate C++ class...I'm having trouble understanding pointers...I just can't seem to get the full concept through my head...Can someone tell me how they finally "got it"? I understand … Software Development c++ first-post | |
What am I doing wrong? I am to take the average number of each cooled, heated, regular and either subtract the degrees below 60(heated) or above 80(cooled),then add that number to the number of days # Chpt 8#11Tempdays.py # A program to add a set of temperatures enter by the … Software Development python | |
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 … | |
why am i getting this error PLZZZ HELP!!! Exception in thread "main" java.lang.NoClassDefFoundError: config/java i'm just started learning Java please help me out Software Development java | |
Hey what dod i need to do inorder to get my program to print out 2 decimal places after gross amount and amount donated? you will see what i mean when u run my program. for example i need it to print out $100.00 not just $100. [CODE]#include "stdafx.h" #include … Software Development c++ | |
| |
Hey all, Can anyone explain to me how i can change forms UI at run time? Basically the application I'm building is very similar to the MySQL Administrator (see attached file) So when the user selects different option i.e. "User Administration" different tabs appear in the panel on the right … Software Development vb.net | |
hi friends, i am able to parse the xml file and retrieve the corresponding tag values. Now how can i send the retrieved values from python function to the c functions. And also can any one help me in retrieving all the sub tag values from a particular action tag. … | |
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 | |
I had posted a while ago about how to put a picture in a game to make it look a little more real. my friend said i should a gui. Does anyone know of a site or how to do this using microsoft visual c++? | |
Hi All I have a header file link.h , in which i declare a variable itemp. When i assign this variable a value in the C file link.C i get an error during compilation: cxx: Error: link.C, line 5: this declaration has no storage class or type specifier itemp=0; ^ … | |
I have encountered a problem with variables which I have defined in a module and then manipulating them from other modules. I have something like this in moduleA.py: [code] gVar = None def getVar(): return gVar def setVar(val): gVar = val [/code] Then, in moduleB.py I have this: [code] import … Software Development python | |
Hey I want to be able to put a movie title in the is more than one world and it goes crazy when i do, if you run my program and enter one word when it asks for the movie title it will work fine. but when u enter a … Software Development c | |
I'm having major issues trying to do the following: Write a program that reads in a line of text and then outputs that line of text first in all uppercase letters and then in all lowercase letters. If anyone can help me with that I'd greatly apprciate it. Software Development java | |
Hi All, I'm having huge problems with a program that i am attempting to write. What i have is a program that prints Acronyms and sentences to a text file already, now i am trying to create a new program that reads that text file and if the user inputs … Software Development python | |
I am very confused with ADT. I get the concept of why to use ADT, but I dont know how to implement it. The problem I have to solve is to merge 2 sorted list using ADT functions provided. The ADT functions are the functions in my header file. Here … Software Development c++ |
The End.