132,726 Archived Topics
Remove Filter ![]() | |
![]() | Below is the error I am currently facing however I have yet to be able to bring up the console window to see if my code is correct. It has been very frustrating :( 1>iLab4.cpp(67): error C2144: syntax error : 'int' should be preceded by ')' 1>iLab4.cpp(67): error C2660: 'toDigit' … Software Development c++ |
erm i got a bit problem with toupper(); example: char ch = 'a'; char upper; upper = toupper(ch); if i use cout to show char "upper", it shows the ascii code for uppercase.. in this case, it shows '65' in screen, i know it supposed to show 'A' instead of … Software Development c++ | |
Fairly new to the VB.NET world, but a long time Access and FoxPro programmer. I'm trying to do something that was extremely easy in Access, but can't believe it is this difficult in VB.NET. I populated a combobox with values from a mySQL table. I want to return a hidden … Software Development microsoft-access vb.net | |
Hi, I have c# Application running in my desktop(Windows XP) with Java web services and oracle DB . The Application includes a shipping screen which has a calendar window. When I run the application in my desktop it works fine. Client uses the same application. We access it through CITRIX … Software Development client-server oracle windows-server | |
![]() | Hi everyone, I'm trying to write a basic program to find the root of an equation. I just tried compiling it for the first time and I get the following error: RootFinder.java:6: <identifier> expected public static double searchValue(double x0, x1, a) { ^ RootFinder.java:6: <identifier> expected public static double searchValue(double … ![]() |
I am writing a program in which you can ask a question, and then if the phrase is jknown to the computer, it will ouput an answer, but I was wondering is there a faster way to the way I am doing it, because at the moment i am just … Software Development c++ | |
Hi all, I've just started learning C++. Basically I wish to try out some basic C++ codes and operations in Codeblocks. I created a project under which I intend to put all the C++ programs in. The default ''Hello world'' program runs fine- but whenever I try to run the … Software Development c++ | |
I can not find the problem of this code....... I am now using Dev C++ editor for coding. #include<iostraem.h> #include<conio.h> #include<stdio.h> using namespace std; int main(){ int k=1; int m=0; int p=5; //int arry[]; int v=0; int i=0,j=0; cin>>i; cin>>j; for(int n=i;n<=j;n++,v++){ m=n; while(n>1){ if(n%2!=0){ n=3*n+1; } else n=n/2; k++; … Software Development c++ | |
When "ENTER" button in value class clicked the show class wil be run. but nothing happend import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; /*<applet code ="value" width=200 height=200> </applet>*/ public class value extends Applet { private JLabel lab1; private JButton btn1; public void init () { // Construct the … Software Development gui java java-swing | |
Hi! I am wondering what's wrong with my code. It's a simple code which is supposed to activate the PC speaker with a DO note. I'm using XPmode on windows7 ultimate 32B SP1, with EMU86 as assembler, runnig the program with CMD (tried also dosbox). The wierd thing is when … Software Development assembly | |
Hi coders, I create a BSTree but i don't know if it is right. I only want to create a bstree with Strings, nothing else. my code: import java.util.Scanner; class Node { private Node left; private String number; private Node right; public Node() { left = null; number = "0"; … Software Development java | |
any one knows how to write this program:- given two arrays A and B . array 'A' contains all the elements of 'B' but one more element extra. write a c++ function which accepts array 'A' and 'B' and its size as arguments/parameters and find out the extra element in … | |
I am facing some problems in a project regarding to byte fetching from a file and storing. Problem in java bytes is they are number, instead of char. In file i have seen a byte is like a char... Also how to make bytes unsigned , because signed bytes creates … Software Development java | |
i know how to read a file into array, however i want to perform some search operations which is difficult to do on array. if someway i am able to read a file to string then it becomes easier. i have 2 methods of reading a file into wstring but … Software Development c++ file-system ios | |
here is the code, that reads a file. Currently i am able to print contents of the file but i want to edit its contents. how can i do this? #include<iostream> #include<fstream> using namespace std; void main() { wfstream file; file.open("hello.exe",ios::binary | ios::in); if (!file) { cout<<"ERROR"<<endl; exit(0); } wcout<<file.rdbuf(); … | |
hello, I am trying to record video by aviwriter class in aforge but the resulting avi file is either 0Kb or the whole video is viewing only one picture using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using AForge.Video; using AForge.Video.DirectShow; using … Software Development | |
Hi, Can somebody please explain , printing with structure variable also working. int main( void ) { struct bitfs { unsigned char a:4; unsigned int b:5; }; struct bitfs bf = {15,31}; struct bitfs2 { unsigned char a:4; unsigned int b:5; }bf2 = {15,31}; printf("a= %u \n", bf.a); printf("b= %u … Software Development c | |
#include <Stdafx.h> #include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int rand_0toN1(int n); int hits[10]; int main() { int n; int i; int r; srand( static_cast<unsigned int>(time(NULL))); // set seed for random numbers cout<< "Enter number of trials to run "; cout<< "and press ENTER: "; cin>> … Software Development c++ | |
i read c++ ebook, then i make a code to open a file using fstream and use ios::in flag here's the code : #include <iostream> #include <fstream> using namespace std; bool openFileIn(fstream&, string); int main() { fstream dataFile; if(openFileIn(dataFile, "sendy.txt")) { cout<<"succes"; } else cout<<"fail"; return 0; } bool openFileIn(fstream … | |
Hello,everyone..I am a beginner in using c#. Now, i have some problems in my project. I hope someone can help me. Below is my coding:- public partial class Form1 : Form { string file; double allTransaction; SortedList frequency = new SortedList(); SortedList<string, double> m_dicAllFrequentItems = new SortedList<string, double>(); SortedList<int, String> … Software Development | |
Hi guys I need help in creating login page for my web application. There are two users who will login to the system: Admin and User in my database I have UserID, Password and Type for column Type i have 'Administrator' and 'Users' This is what i'm doing, but it … Software Development | |
Hey all, I have a JApplet that runs in browser and I can't get it to create a new JFrame popup when a button is clicked. It works fine in my IDE (Eclipse) but not when I upload it. Here's the code for the JFrame I'm trying to create: import … Software Development java seo web-browser | |
anyone can help? i want to check whether the data has been exist or not. but its shows some error in this code. error :No value given for one or more required parameters. Public Sub doSave() Dim con As New OleDb.OleDbConnection(My.Settings.KK3DB) Dim cmd As New OleDb.OleDbCommand Dim adap As New … Software Development dataset open-source vb.net | |
Hye i am running difftime tu different 2 time values, but unfortunately when i run on my laptop it does return values, but when i pass it to my friend the value returned is 0... and also when i run in windows the value returned also zero.. here is a … Software Development c | |
I have a long string of characters as input and I want to count the number of words in that string. How can I do it through regular expression? Software Development | |
i have previously created time using mktime and stored it in file, now the problem is how can i call it back and read as standard time, not an array. this is because i wanna make use of difftime function. here is my code sample: int ex(){ int typ; printf("\n\n\nEnter … Software Development c | |
how can i build a formal context table based on data that i get from a text file using c#? i can just browse the location of the data but dunno how to create a table of formal context based on that data. below are the data: 1 5 1 … Software Development | |
Can anyone please help me that how this program works?? i have got this Program on internet and i want it to run..... #include <cstdlib> double** gauss(double **matrix, int dimension) { double **inverse; inverse = (double**) malloc(dimension * sizeof (double *)); for (int i = 0; i < dimension; i++) … Software Development c++ | |
A console chess program that features normal chess rules including Castling, En Passant and promotion by choice. Detects draw if only kings are left, no moves possible and not in check or 50 consecutive moves without movement of a Pawn or a capture. Detects check/mate (obviously). Would be glad if … | |
Imports System.Data Imports System.Data.SqlClient Public Class LookupForm Dim stable As String Dim SelectQuery As String Dim cs As String Dim htKeys As Hashtable Property FKeyWithTable() As Hashtable Get Return htKeys End Get Set(ByVal value As Hashtable) htKeys = value End Set End Property Public Event LoadRecord(ByVal CurrentRow As Hashtable) Private … Software Development vb.net | |
Hello, I have two linked tables in my database (access), one is for the student and one is the ages(selection drop list ). When I have transfered the data in vb form, a simple text box is shown with numbers in it. How can I have the drop down list … Software Development linked-list vb.net | |
Good day, I am new in programing (still a student). I whant to write a c# program using winform, which will populate data from an external text file(as a array) into a textarea in the form, to check if each data in the textarea is present anywhere in a specified … Software Development | |
Hi All, I am writing a program to find the number between 1 and 100 that has the greatest number of distinct divisors. Below is my code for the same. It is returning an erroneous answer, i.e. 8 for greatest number of distinct divisors and 4 as the number for … | |
I'm looking for a java tutorial site that will teach java and also give some exercises. Any other sites would be helpful too. Software Development java | |
**Before you start complaining that this has been asked before, please hear me out** Hello, I've been trying to write an simple application for windows that can send and recieve packetts over a network. I'm hoping to find some simple library that can simply open the port, and send a … Software Development c++ | |
How to calculate time complexiy of the following line of code using 'Big-O' or 'Big-OH' notation??? 1. scanf("%d",&n); 2. for(i=1,m=n+66;i<=m;i++) 3. printf("%d \n",i); 4. for(j=n/21,m=n/5;j<=m;j++) 5. printf("%d \n",j); I have basic idea but i am getting confused...So, please help me to calculate time complexity of each step, plus overall complexity. … Software Development c | |
Hi! i have problems with input validation, so here goes the problem : Write a program that uses a structure to store the following data about a customer account: Name Address City, State, and ZIP Telephone Number Account Balance Date of Last Payment VideoNote Solving the Weather Statistics Problem Review … Software Development c++ data-structure user-interface | |
The application should have one method that populates the multidimensional array with data and another method that shows the contents of the multi dimensional array. Both methods should be triggered from the main method. Assist because am been notified that the code below is not correct public class ArrayExample { … Software Development java | |
![]() | Ok, for some strange reason I cannot move from the "Python27" folder: I have tried this... Python 2.7.3 (default, Apr 10 2012, 23:31:26) Type "help", "copyright", "credits" or "license" for more information. >>> from os import system >>> system('cd') C:\Python27 0 >>> system('cd ..') 0 >>> system('cd') C:\Python27 0 It … Software Development python |
I am using a tab control on my mdi parent forms. when i open a child window i hide the tab control. but i want the tabcontrol to show itself on child close event. but i cant figure out the code. any help will be great Software Development vb.net | |
The name "Debit" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted. Software Development vb.net | |
There are 2 textboxs to accept from date and to date. I will be comparing the fromdate value and todate with the table column. If the record matches then only that row will get display in the datagridview. Software Development vb.net | |
I have an abstract class. I'm creating a large array in the base class, which appears to never be deleted because no destructor is called. My questions (obviously) are... * Why isn't a destructor called? * How do I fix it? #include <iostream> using namespace std; class A { protected: … Software Development c++ | |
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <malloc.h> struct account { char AccName[20]; int Age; double AccBalance; struct account *Next; }; typedef struct account BankAcc; void init( struct Account **headOfList ); void insert(struct account **headOfList, char *name, int age, double balance); int Delete(struct account **headOfList, char *name ); void print(struct … Software Development c++ | |
.please help me I want opearte the code program .model large .stack 4096 .data msg db 0dh, 0ah, "Demonisch Basic Assembly Language Calculator", 0dh, 0ah, 0dh, 0ah, "Press return when each number is entered", 0dh, 0ah, "(done automatically if 4 digits is entered)", 0dh, 0ah, "You may put + or … Software Development assembly | |
I'm doing a class project, creating a text based game, separate compilation must be used. The descriptions for each room must be kept in it's own class. Here is an example of what I have: Room.h #ifndef ROOM_H #define ROOM_H #include<iostream> #include<string> using namespace std; class Room{ public: ///set the … Software Development c++ | |
anyone can help me? my login doesnt work smoothly. i want to login based on Username, Password & Category. So that, if the user is Admin all data can be access, while if user is Staff, only few data can be access. Public Sub DoLogin() Dim strsql As String Dim … Software Development vb.net | |
I am currently working on a project that has hit a bit of a snag. I have the following string; <td class="bld"><span id="ref_12590587_l">5,304.48</span> I want to cut this string so that only the "5,304.48" is remaining. I would also then like to remove the comma. Thanks Software Development vb.net | |
![]() | Is it possible to make a Python program which checks if a file exists, maybe like: #!/usr/bin/python if exist 'File.txt': print "File.txt exists!" else: print "File.txt does not exist :-(" Obviously the `if exist` code will fail, as it is not a python command, but is there anything like the … Software Development python ![]() |
The End.