132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nora-s

hi : ) I wrote this code for count a specific word selected by user in an array but it have a logic error .. and also is there another way to write it without using pointer ? [ICODE] #include<iostream> using namespace std; int j,i=0; const int size=500; char array1[size],search[100],*cnt; …

Software Development c++
Member Avatar for NathanOliver
0
232
Member Avatar for mithunp

The conditions for the question 1. you dont have any head ptr 2. you cant traverse as you dont have head ptr 3. its a singly link list 4. each node is dynamically allocated You only have a pointer to the node which you have to delete, and that is …

Software Development c
Member Avatar for WaltP
0
309
Member Avatar for sahil1991

hello frndz, i was doing this program and then i encountered this strange problem... it is a program in which i want to open two text files and then compare it.. It is giving me two errors: 1)variable f1 might not be initialised. 2)variable f2 might not be initialised. and …

Software Development java
Member Avatar for NormR1
0
138
Member Avatar for rEhSi_123

Guys I have a created a test windows form to try few of the HAP functionalities..... I have the following code as shown below: The function below deals with HTML Parsing whereby removing unwanted HTML metadata. [CODE] Function SanitizeHtml(ByVal html As String) As String Dim doc As New HtmlDocument() doc.LoadHtml(html) …

Software Development html-css vb.net vbscript
Member Avatar for rEhSi_123
0
897
Member Avatar for toneranger

Hi, I have a csv datafile with stock price data that I've read into a vector of structures that looks like this: 09/11/2009 9.30 open, high, low, close, volume 09/11/2009 9.31 o, h, l, c, volume and so on to 09/11/2009 16.14 o, h, l, c, volume //next day starts …

Software Development c++
Member Avatar for Ancient Dragon
0
242
Member Avatar for mhirschb

Hi all, I am currently extending a large C project with an own extension and I am stuck in a pointer/array/struct problem: The project offers a struct of this structure [CODE]struct ip_addr{ unsigned int af; /* address family: AF_INET6 or AF_INET */ unsigned int len; /* address len, 16 or …

Software Development c
Member Avatar for nezachem
0
183
Member Avatar for aiwasen

I'm having a problem on try again program.I checked the syntax and yet is still not working.am trying to make a program that will output the student's grade and when the program is finished it will ask whether to try again or not.If the input is y or Y, the …

Software Development c++ qt
Member Avatar for WaltP
0
3K
Member Avatar for DJSAN10

what happens if we delete a pointer twice..??

Software Development c++
Member Avatar for DJSAN10
0
672
Member Avatar for Muhammadlodhi

Hi I am making a banking system in c++ but getting a problem I am not sharp in programmin if you can help then thanks [CODE]//*************************************************************** // HEADER FILE USED IN PROJECT //**************************************************************** #include<iostream> #include<conio.h> #include<stdio.h> #include<process.h> #include<fstream> #include<ctype.h> //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** using namespace std; class …

Software Development c++ file-stream ios
Member Avatar for Salem
0
970
Member Avatar for vishal1949

I am trying to make a program in which the user is prompted to input a number(max length of 4 digits), and then the program shall produce the number of outcomes of a two dice roll meaning that 1 roll includes two die. The outcomes could be 2-12 and I …

Software Development
Member Avatar for ddanbe
0
1K
Member Avatar for the_kitoper

[CODE] #include <time.h> time_t whatTime(const char* month, const char* day, const char* year) { time_t rawTime; time(&rawTime); struct tm* convTime = localtime(&rawTime); std::cout << "Today is: " << ((convTime->tm_mon)+1) << "/" << convTime->tm_mday << "/" << convTime->tm_year << std::endl; } [/CODE] When using this code I get the output '7/27/111' …

Software Development c++
Member Avatar for pseudorandom21
0
179
Member Avatar for liran

Hello I need to rename a folder within / inside a ZIP file, preferably without extract it and compress it off-course. How can I do this (only with free help stuff if needed) ? Thanks

Software Development python
Member Avatar for liran
0
163
Member Avatar for tiredoy

These days ,I am learning inheritance and dynamic binding. I could figure out what the code means. However, I can't see much point in setting such base classes So,I want to know why should we set up base classes and derived classes

Software Development c++
Member Avatar for mike_2000_17
0
233
Member Avatar for thesimplestnick

So I was trying to add elements into my list. But for some reason the words inside the list are very very small.... is there anyway to increase the font? I tried setFont, doesn't work. :( [CODE] import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import javax.swing.event.DocumentListener; public class sub …

Software Development java java-swing
Member Avatar for JamesCherrill
0
164
Member Avatar for c#dummie

hi, can anyone tell me what's wrong with my code or show me a working code to add in to my program so that i can study and understand how the code actually works.. after i type in textbox, i want to be able to hit "enter" key instead of …

Software Development
Member Avatar for nmaillet
0
139
Member Avatar for Raim

Basically, I made a small calculator. It does the PEMDAS and factorials. Part of my code is here:[ICODE]#include "stdafx.h" #include "iostream" #include "stdio.h" #include "math.h" using namespace std; short MENU (void); void raiz (void); void suma (void); etc..... [/ICODE] [CODE]int main () { short OPC; OPC=MENU (); do { switch …

Software Development c++
Member Avatar for mrnutty
0
119
Member Avatar for ogopa100

Hi, I am trying to change this program to compile in g++ compiler in terminal in linux. I have reached a point where I am stuck. I would really appreciate some help. I am getting the following errors: test@linux:~/signalgenerator> g++ -o audio audio_backup.cpp -lasound audio_backup.cpp: In function ‘int main(int, char**)’: …

Software Development audio c++ file-stream
Member Avatar for Salem
0
269
Member Avatar for yousafc#

I have a Textbox named txtage.text.Now I want When Insert in txtage.text as 30/12/1980. disable tabindex.and messagebox show "You can not give admission".If Insert in txtage.text as 30/12/2005. Enable Tab index .its mean student 's age must be 6 year not greater nor less.

Software Development
Member Avatar for yousafc#
0
190
Member Avatar for tiverton

I have run into a unsolvable runtime error, I always get the message invalid floating point error, with the following C++ program. This program reads floats from a file(float.txt) 1.56 .98 5.78 Then sorts to put the largest float on top. But when I try to read this I get …

Software Development c++ ios
Member Avatar for tiverton
0
206
Member Avatar for aot

I'm frustrated by the nature of time.sleep(), which prevents the script from doing anything else during the allotted time period. For example, I have: [CODE]while True: checkSomething() time.sleep(0.1) print 'hello'[/CODE] In this case, "hello" is never printed. I really want to check something every few milliseconds, but I also need …

Software Development python
Member Avatar for txfoo
0
1K
Member Avatar for king03

Good day friends, so we have a homework about areas of a circle, rectangle, and cylinder. Now I know how to code this entire program in c++, but in c sharp, not that much because I am only starting to learn c sharp this term. Anyway here is my question: …

Software Development c#
Member Avatar for ddanbe
0
162
Member Avatar for michael!

[LEFT]Looking for a code for editing XML[/LEFT] Thanks

Software Development xml
Member Avatar for nmaillet
0
89
Member Avatar for danieldane

//include files #include<stdio.h> #include<conio.h> #include<stdlib.h> #include"c:/includes.h" //stores the structures of master and index file #include"c:/function.cpp" //stores all the functions for the file primitive /* The main function input: none output:none calleed by: OS. calls: ADD_RECORD,DELETE_RECORD,MODIFY_RECORD,SEARCH_RECORD,DISPLAY_RECORD */ void main(void) { int choice; int status; int roll_no; char ch; clrscr(); printf("Enter the …

Software Development c
Member Avatar for danieldane
0
181
Member Avatar for Slotes

Hi im fairly new to developing (started making some basic small programs yesterday) and today I was working on a program which is essentially a updater/update checker and what the program does is it checks the version of the checker and compares it to the current version.txt and if they …

Software Development vb.net visual-basic
Member Avatar for Huntondoom
0
2K
Member Avatar for harrisonbs1
Member Avatar for ericwalter

i) Create a class called Complex for performing arithmetic with complex numbers. ii) Write a driver program to test your class. Complex numbers have the form realPart+imaginaryPart *i Where i is: √-1 Use floating point variables to represent the private data of the class. Provide a constructor method that enables …

Software Development java
Member Avatar for peter_budo
0
6K
Member Avatar for chellemits

Hello guys. I'm doing a project now. I'm having a problem on getting specific file type from my computer using the .getfiles function. Here's my codes. [CODE]Private Sub dlgOpen_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles dlgOpen.FileOk Dim filepath as String = "C:\" dlgOpen.CheckFileExists = True txtOpen.Text = dlgOpen.FileName …

Software Development vb.net
Member Avatar for Mitja Bonca
0
393
Member Avatar for pg9

Hi all, I am a beginner in C# and am exploring dataGridView currently ,am stuck at a point would be amazing if i could get a professional insight on the below problem. I want to capture the data from the cell of the dataGridView.Basically i want the value of the …

Software Development
Member Avatar for ddanbe
0
75
Member Avatar for vincenzorm117

In the code below I am attempting to establish a method of inputing a year with digits (only digits) into the character array of year. It works, but now if the inputed non-digits are 4 or more (i.e. "abcd") the program runs the printf command more than once. I recommend …

Software Development c
Member Avatar for Narue
0
203
Member Avatar for mitchney

hello there! i am developing a registration form of users data...but i got a problem...what i want to happen is that if an id,name, username,password already exists msgbox will appear that it is already existing...here is my initial code..can u add it for what i want to happen with my …

Software Development visual-basic
Member Avatar for debasisdas
0
114
Member Avatar for wenbnet

Hello, Any Help will be much appreciated. i m entering information of each person in Employee Information form and saving it in MS Access database. Now i want to Show the data of each person Individually and the information of the next person will be shown on the next button …

Software Development vb.net
Member Avatar for debasisdas
0
121
Member Avatar for sj5536

hi, I have following question 1) is main thread is daemon thread? if yes then how? 2) what is meaning of daemon thread? 3) Does daemon thread require main method for execution? 4) Daemon thread do its execution without main method? 5) if Daemon thread require main method can any …

Software Development java
Member Avatar for masijade
0
124
Member Avatar for o.narasimharao

Looking to work as freelancer in ASP, ASP.Net,C# and Sharepoint. If anyone needs this type of work, please contact us. [email]O.Narasimharao@crawler.com[/email] 09962353555

Software Development asp asp.net sharepoint
Member Avatar for vish_96
0
161
Member Avatar for pseudorandom21

Hey, I'm wondering if it's a good idea to put my email in the about box of a utility I wrote, and in the source code. My thinking is the developers or users will be able to contact me if they have problems with it or ever need to update …

Software Development
Member Avatar for charlybones
0
100
Member Avatar for ineedsomehelp:3

Ok, this is my 3rd time asking a question so far I can see that people here are very helpful and I appreciate it :) today I have a question if something like this is possible [CODE]#include<stdio.h> #include<stdlib.h> int difficulty() { char difficulty; printf("Level of difficulty? (l-Low,h-High) - "); scanf("%c",&difficulty); …

Software Development c
Member Avatar for ineedsomehelp:3
0
129
Member Avatar for arindam31

[CODE]struct marks{ int p:3; int c:3; int m:2; }; void main() { struct marks s={2,-6,5}; printf("%d %d %d",s.p,s.c,s.m); }[/CODE] Output 2 2 1

Software Development c
Member Avatar for arindam31
0
4K
Member Avatar for Dean_Grobler

Hi there, I'm having a rather bad morning today and my brain is being stupid. I have an ArrayList containing String Arrays. How do I convert my ArrayList to a 2D Array? What I have: [CODE] ArrayList<String[]> transactionList = new ArrayList<String[]>(); String[] resultSetRow = {"String1","String2","String3","String4","String5"}; int resultsSetRowSize = resultSetRow.length; for(int …

Software Development java
Member Avatar for peter_budo
0
1K
Member Avatar for ayoba01

i need help regarding the code. the problem is when i try to make a new process payment. here is the situation, first, i click this button. [IMG]http://i1120.photobucket.com/albums/l483/farid011/first-1.png[/IMG] second, i click the payment button [IMG]http://i1120.photobucket.com/albums/l483/farid011/second.png[/IMG] third, i click balance button to calculate the payment and charge [IMG]http://i1120.photobucket.com/albums/l483/farid011/third.png[/IMG] fourth, i click …

Software Development pay-per-click vb.net
Member Avatar for Netcode
0
111
Member Avatar for n1_razz11

hey! i m new in software development. so plz help meh with ideas of getting more knowledge in vb.net. looking for help..

Software Development vb.net
Member Avatar for Netcode
0
57
Member Avatar for gozo12

is there a way to add command1 onto form's boderstyle ? like there is close and maximize and minimize can i add a new one nearby them

Software Development visual-basic
Member Avatar for imolorhe
0
92
Member Avatar for felix001

Ive written a small program to convert celcuis o Fahrenheit and vice versa. The script as it stands works : [CODE]#!/usr/bin/python import sys def convert(t,fc): if t == "c": print (fc * 9) / 5 + 32,"Degress Fahrenheit" elif t == "f": print (fc - 32) / 9 * 5,"Degress …

Software Development python
Member Avatar for Gribouillis
0
194
Member Avatar for Bosterk

Hi, I'm new to Python, I'm practicing queries sqlite3 database, I will present what I have so far. until now I have not seen an example of how to reflect queries a database using wxPython I hope I help, do not write very good English. frame.py import wx import sqlite3 …

Software Development python
Member Avatar for Gribouillis
0
303
Member Avatar for hmortensen

Hi all, i found [CODE] <Window.CommandBindings> <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" /> </Window.CommandBindings>[/CODE] to be a very effective and useful. But I was expecting it to tunnel and not bubble. I want it to call "PasteExecuted" no matter what control is selected.. Is this possible? Without having to add this to every …

Software Development
Member Avatar for hmortensen
0
179
Member Avatar for zentechsupport

I am just learning python. I am switching from visual basic so this is a bit new to me. I am trying to write a loop for a super small script. It is below I am trying to understand the def f() how to loop that short code over and …

Software Development python visual-basic
Member Avatar for woooee
0
265
Member Avatar for itgrowsind

I have to write a code that accepts 5 grades and sorts them from smallest to greatest using linked list.This is what I have so far using examples from the book. #include <iostream> using namespace std; struct List { int value; List *next; }; int main() { int num, num1,num2,num3,num4; …

Software Development c c# c++ linked-list
Member Avatar for Saith
0
140
Member Avatar for ghosh22

Hi everyone.. I am trying to write a perl code which appends a text file after taking two inputs from the user. It saves the file in tab delimited format. I have the input text file attached here. Now I want the file to check if the user given input …

Software Development file-system perl
Member Avatar for ghosh22
0
432
Member Avatar for g33k3r

I basically am trying to figure out how to store data into an array by calling a method enterSalary() within another method enterAllEmployees(). This is what the assignment is. I don't understand how to do it. Your solution must: • Store the salaries in an array (the department may not …

Software Development java
Member Avatar for NormR1
0
118
Member Avatar for pseudorandom21

I copy data from a "DataGridView" to the clipboard, but it contains lots of mysterious tabs that shouldn't be a part of the data, here's a sample of what I mean: [code] Keywords Searches omaha nebraska apartments 260 houses for rent in omaha nebraska 140 houses in omaha nebraska 720 …

Software Development
Member Avatar for pseudorandom21
0
197
Member Avatar for shadowscape

Hello, I'm trying to write a function for a DLL in c++ what would check if a website is online or not and return either a error or the status code returned from the server, is there are any clever people out there, your help would be awesome, thanks. i …

Software Development c++
Member Avatar for JasonHippy
0
2K
Member Avatar for sirlink99

I am working on a snake game. I have posted about it before. It is going well, and now I would like to implement a high score option, that saves the score online, so that everyone can see it. I am planning to make a menu, that will have a …

Software Development java
Member Avatar for Ezzaral
0
682

The End.