132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for berwick53

Please can you tell me where I've gone wrong !!! thanks Sam [CODE]#include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<string.h> int main() { char array[80]; // input array int i=0; // loop counter 1 int vo=0; // vowels int co=0; // consonents int ot=0; // other characters printf("please enter string\n"); fflush(stdin); gets(array); while(i!=80) { …

Software Development c
Member Avatar for vinitmittal2008
0
158
Member Avatar for denmark22

how to make a simple browser using c++ and by using <stdio.h>&<conio.h>

Software Development c++
Member Avatar for group256
0
111
Member Avatar for stpmani

Hi advance thanks... kindly let me know the detail command and communication with smart card... tell me the reference and suggestion....i have 94POS Machine.. i need to write and read the data from 94POS Machine with smart card...

Software Development c
Member Avatar for nitin khare
0
86
Member Avatar for Ahmed Sarwat

Hello, I am trying to read two floats from a file written in its first line using the below code but after compiling I always get "wrong dimnesions" coulp please help me in that problem. Thanks in advance. [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> int main() { float …

Software Development c
Member Avatar for Ahmed Sarwat
0
3K
Member Avatar for sirlink99

I have started making a calculator. There are buttons and a screen where the numbers should how up. Except I dont know how to program the larger numbers so when someone types in a '5' then a '2' then a '7' the number becomes 527 instead of a 5 then …

Software Development java
Member Avatar for coil
0
198
Member Avatar for kimlong008

Please give me code demo by C or C++ : Speak file text ! HRESULT hr = S_OK; CComPtr <ISpVoice> cpVoice; CComPtr <ISpObjectToken> cpToken; CComPtr <IEnumSpObjectTokens> cpEnum; //Create a SAPI voice hr = cpVoice.CoCreateInstance( CLSID_SpVoice ); //Enumerate voice tokens with attribute "Name=Microsoft Sam” if(SUCCEEDED(hr)) { hr = SpEnumTokens(SPCAT_VOICES, L"Name=Microsoft Sam", …

Software Development audio c
Member Avatar for kimlong008
0
164
Member Avatar for quintoncoert

i am trying to connect to an MS Access database but i am new to C#. I have looked at, amongst others, Paladin's response to dark omen about connecting to a database and since i have connected to a database before in Visual Basic most of it makes sense to …

Software Development visual-basic
Member Avatar for vkmaurya5785
0
166
Member Avatar for Beornhelm

New to the forums and could use a hand. I am completely stuck, and not sure what to do at this point. I keep getting "TRACE: <at java.lang.IndexOutOfBoundsException: Empty field: 106>, Exception caught in Display class java.lang.IndexOutOfBoundsException: Empty field: 106" during run-time when the method, displayList() is called (currently on …

Software Development java java-netbeans user-interface
Member Avatar for Taywin
0
409
Member Avatar for BOAH365

Hello, I'm very new at C++ and I have to write a code that uses a recursive function to reverse some characters within a boundary, so lets say I have A[1] == ‘A’ A[2] == ‘B’ A[3] == ‘C’ A[4] == ‘D’ A[5] == ‘E’ and I put in a …

Software Development c++
Member Avatar for BOAH365
0
188
Member Avatar for cmccaig

im writing a program for school that needs to search through a directory and find files of a certain type. if it meets up with a folder i need to search inside it and so on for all other folders found inside. i was thinking of a function to pass …

Software Development c++
Member Avatar for Taywin
0
964
Member Avatar for MasterGberry

I am a novice @ coding right now, and am getting it by trial and error, when i run this program after the 2nd round of input it skips some of the steps and then crashes. I threw the if (i > 0) to help bypass it on the first …

Software Development c++
Member Avatar for MasterGberry
0
95
Member Avatar for jFincan

Hi, firstly my english is not very good so ım sory about that. ı want to parse a web source. ı got the source code with urlconnection in jTextArea but ı cant get between two html tag for ex. <p class="asd">asdasdasdas </p> <p class="asd2">bdfgfdgdfgf </p> <p class="AltBaslik">I want to this …

Software Development java
Member Avatar for Taywin
0
103
Member Avatar for Ceerno

Hello Help is appreciated in the following code. I am trying to multiply the first array ,collected from random numbers, by two. When i run the code below:I get only the last number of the first array multiplied by two using System; public class Matrix { Random randomNumbers = new …

Software Development
Member Avatar for Ceerno
0
81
Member Avatar for mdpepper

Good evening folks. Im a Computing student in 2nd year of Computer Science at university. My current problem is the idea of a class within a class. I have developed a .h and.cpp file for a Date class(day, moth year), and a .h and.cpp file for a patients record. I …

Software Development c++
Member Avatar for mike_2000_17
0
166
Member Avatar for Anuradha Mandal

What is the function of "cin.get()" and "cin.ignore()".

Software Development c++
Member Avatar for Anuradha Mandal
0
89
Member Avatar for shelexelex

Can someone explain the (String [] args) of the main method.

Software Development java
Member Avatar for jon.kiparsky
0
92
Member Avatar for chupoi

Hi there, I am using some windows form controls available in the Infragistics Windows Form Controls. Everything works OK on my PC but when I save my project and try to run my form on another PC it doesn't work. I get a lot of missing references if I try …

Software Development
Member Avatar for Momerath
0
103
Member Avatar for sirlink99

I am in a java programming class but my teacher doesn't teach anything so could someone please explain to me how to import a picture into the applet and give me an example of a simple script that just imports a picture. I have learned how to use the mouse …

Software Development gaming image java
Member Avatar for kramerd
0
216
Member Avatar for Diamonddrake

I have written a couple applications that Work great on 32-bit but crash on open in 64-bit. They are all compiled against "any CPU" but even when I compile them for 64-bit they still crash on 64-bit windows. both of these applications rely on 3rd party Dlls, some native dlls …

Software Development
Member Avatar for Diamonddrake
0
105
Member Avatar for crazy_perl

I have a code which parses/validates all the fields present in i/p weblog file. My first field is ip_address & currently can have a value like 12.45.24.245 Now I have a change where ip_address can be a dummy value something like $10.00 or $23.123.34. or $12.233. How should I change …

Software Development perl regex session
Member Avatar for sysadm1n
0
87
Member Avatar for mrar85

im' confuse with this function...how do i call one function so it can be used in another function?? [ICODE]#include <iostream> #include <cmath> using namespace std; double pi=3.1416; double getinput(); double distance(double,double,double,double); double radian(double); double circumferences(double); double area(double); double diameter(double); void displayresult(double,double,double,double); int main() { double x1,x2,y1,y2; double rad,perimeter,areas,dia; cout<<"Please enter …

Software Development c++
Member Avatar for mrar85
0
166
Member Avatar for qvyhnl

So i have an original char * s with size of n; Can someone show me how to create another char * p with twice the size of s? and then fill p with 2 copy of s? Thanks.

Software Development c++
Member Avatar for qvyhnl
0
103
Member Avatar for Joey_Brown

Hello, Im looking at this weird little code fragment I stumbled upon the other day and I cant figure out how it works. OK, I get the picture how the array is filled up to the fourth index, but that descending part is evil. And weird. :) [CODE] #include<stdio.h> int …

Software Development c
Member Avatar for smellissa
0
98
Member Avatar for optikali

Java n00b here. I am putting together a little random number game and am having trouble with my loss condition test. It seems like Java does not like casting ints as a bools. Here is my code so far: [code=java] import java.util.*; public class TwoRandom { public static void main …

Software Development java
Member Avatar for optikali
0
184
Member Avatar for BLUEC0RE

I am looking to make my code more abstract so I dont need to repeat the same code. I am storing objects two different classes in the same arraylist. When searching, I need to check ahead of time to see if the entry in question is of a certain class …

Software Development java
Member Avatar for BLUEC0RE
0
142
Member Avatar for Nathaniel10

I was already thinking along ARKoenig's suggestion and revised my code to use arrays. It was working pretty well until I made some minor changes. Now it loops non-stop without any prompt for the player to make a play. I am sure it is a small error, but I can't …

Software Development c++
Member Avatar for Nathaniel10
0
165
Member Avatar for S.IDK

welcome , plz , i want a give the result about this instruction 50^99 in textbox what the data type can be use to give all number of this result. the result in textbox : 1.97654296816219E+172 but the cal in a windows 1.97654296816219[COLOR="Green"]383545704208846[/COLOR]E+172 how can give all number in textbox.

Software Development vb.net
Member Avatar for Momerath
0
118
Member Avatar for r3s3v0ir

Good evening guys.... i'm newbie in here and in c++... while i in the middle of pratice in making program... i try to make a stack that can check whether the string that user input is palindrome or not. i'm using visual studio 2010 and get autos error this is …

Software Development c++ visual-studio
Member Avatar for Taywin
0
233
Member Avatar for pythonlearning

I have a dictionary used a string (read from file by number) as key and a list as its value (each may have different number of elements). I want to print like this: 0 4 2 3 -4 5 3 1 -2 3 4 2 3 11 0 1 When …

Software Development python
Member Avatar for pythonlearning
0
150
Member Avatar for Jake1905

I am completly lost on this could someone point me in the right direction into where I am going wrong with this code. [CODE]#include <iostream> using namespace std ; int main() { int x ; int y ; int temp ; int remainder ; // read in the two integers …

Software Development c++
Member Avatar for ixmike88
0
101
Member Avatar for burcin erek

i made a test program, this line " *ps.Working_Hours=10;" generates mistake. why ? [CODE]#include <cstdlib> #include <iostream> using namespace std; class Salary { public: int Working_Hours; float hour_rate; float x; }; int main(int argc, char *argv[]) { Salary s; float yy; s.Working_Hours=7; s.hour_rate=30.5; Salary* ps; ps=&s; *ps.Working_Hours=10; cout << "s.hour_rate=" …

Software Development c++
Member Avatar for burcin erek
0
179
Member Avatar for hwalsh

Hi all! I'm new to Java, so please bear with me. I'm trying to calculate the average of grades input by the user. I keep getting a exception saying that it's dividing by 0. I can't figure out why. [CODE]import java.util.Random; import java.util.ArrayList; import java.util.Scanner; public class Average { // …

Software Development java
Member Avatar for Overbooked
0
2K
Member Avatar for Bandit290

I am trying to print out items I have saved. Each item contains a id number (ex. 34534), description( ex. book) and a barcode representation of the id number. My problem is that the barcode does not stay right below the id number. I would like for it to be …

Software Development storage
Member Avatar for nick.crane
0
169
Member Avatar for theProgrammer7

Hi, a few days ago I was trying to write a WPF application that needed to update a progress bar whilst in a loop. I searched around on the internet and finally found a solution, however, I don't actually know how it works. Here is the code: [CODE]using System; using …

Software Development
Member Avatar for nick.crane
0
150
Member Avatar for jvibez

write a pseudocode algorithm tp prompt the user to enter a number and it should tell if the number is odd or even.........i need help

Software Development algorithm c++
Member Avatar for daviddoria
0
49
Member Avatar for mogaka

am new to c++. i want to create a desktop application but i don't know how to create a user interface-forms like vb.ne forms using dev c++ IDE. how do i go about it.

Software Development c++ ide user-interface
Member Avatar for daviddoria
0
222
Member Avatar for tKc

I need help in using 2d arrays in c++. I want to output a table that looks like this 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 …

Software Development c++
Member Avatar for daviddoria
0
170
Member Avatar for beatenbob

I'm trying to write a program which uses 4 class files. However, I've got some issue regarding the error I got from cygwin using g++ command, it says Calling fdopen: bad file descriptor when I try to include the files I need on top of my header files. I'll show …

Software Development c++ file-system
Member Avatar for beatenbob
0
464
Member Avatar for Sarama2030

hi guys! it's my first post on vb.net, it's just that u can't develop on windows 7 anymore using vb6, guess we'll just have to get used-huh. i'm developing this procedure using a timer object.the thing is the procedure is not in the timer's event procedure but i want it …

Software Development vb.net
Member Avatar for crapulency
0
351
Member Avatar for jlivvers

Hi, I have a c# windows app with a formTab on one of the forms. What I'm trying to do is pass the id of one datasource into the parameter of the query for another datasource on another tab. So effectively when the row containing the id field is selected …

Software Development
Member Avatar for nick.crane
0
166
Member Avatar for Pushpasheela

Is there any possible way to create drop down menu in java?

Software Development java
Member Avatar for jon.kiparsky
0
189
Member Avatar for Alerwiali

Hi Every one in this great community ...i need help with Nokia BlockD game algorithm i really do not know how to start ,,,please could anyone here can get my feet on the stage ,just help me with some ideas to be able to get started: The rules of the …

Software Development algorithm c
Member Avatar for Alerwiali
0
70
Member Avatar for Nathaniel10

Is it possible to have an array as a class member? It is part of my Wumpus Hunt exercise. I want to do the following: [code] class Room { blah blah; }; int main() { for (i = 0; i < 3; i++) { Room adjacent[i]; blah blah; } [/code] …

Software Development c++
Member Avatar for Nathaniel10
0
111
Member Avatar for vbx_wx

[code] int main() { const char* p = "Hello"; cout << sizeof(p) << endl; } [/code] Why this is 4 ?

Software Development c++
Member Avatar for nbaztec
0
99
Member Avatar for gmfreak1991

Hey, I'm writing a wheel of fortune game and trying to figure out how to make the game update what players turn it is. It is assumed that there is only three players, and the variable "int players = 1" is defined globally, so if I change it in the …

Software Development c++ puzzle
Member Avatar for Fbody
0
175
Member Avatar for xcr

Hello all, I turn once again to the wisdom of the internet: I have attached my two files to this post as to not use up a whole lot of space. The program is a mock "assembler" it takes mock assembly code and turns it into a file with hex …

Software Development assembly c
Member Avatar for Ancient Dragon
0
175
Member Avatar for Dinnerfortwo

Im trying to add six functions which are six effects to this tic tac toe game. For instance a remove all pieces function. Also, Im trying to restart the DIE roll after every turn made. If I can get the remove all pieces function(reall) to work I can get other …

Software Development legal python
Member Avatar for Dinnerfortwo
0
452
Member Avatar for araisbec

Alright, so I've spent countless hours on this code and I need a fresh pair of eyes to give it a glance... This is my third assignment for my datastructures class, where I am to write code that turns a fully parenthesized expression (such as "((3+2)/(3-8))") into aan "arithemtic expression …

Software Development algorithm c data-structure
Member Avatar for araisbec
0
679
Member Avatar for gahhon

[CODE]#include <stdio.h> #include <windows.h> void main() { int i; for(i=0; i<21; i++) { if(i == 5) { system("cls"); printf("\n\n\n\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\t\t *** ***\n"); printf("\t\t *** WELCOME TO ***\n"); printf("\t\t *** CLASS ATTENDANCE SYSTEM ***\n"); printf("\t\t *** ***\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\n\n"); } if(i == 10) { …

Software Development c
Member Avatar for gahhon
0
150
Member Avatar for shakssage

Hello. I'm trying to create a traffic simulator using java applet. I've seen a couple of source codes and to be honest, I'm just clearly confused on how to go about it. What I've done so far is paint the image of the road junction that I am trying to …

Software Development java
Member Avatar for shakssage
0
1K

The End.