132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abby2589

can someone tell me whats wrong with this codes, because there's some error in printing.. [CODE]#include<stdio.h> #include<iostream.h> struct bday{ char month[2]; char date[2]; char year[4]; }; struct contacts{ char surname[10]; char phoneno[12]; }; void main(void) { struct contacts con[2]; struct bday bd[2]; int i; for(i=0;i<=2;i++) { cout<<"\nSurname : "; cin>>con[i].surname; …

Software Development c++
Member Avatar for Ancient Dragon
0
90
Member Avatar for sayeediqbal

Dear All please read below my test C code. The ins_inv() picks Value of :cds but did not pick :xyz value though it is populated in find_sp_inv() function. [code] varchar cds 11; varchar xyz 30; varchar fxo 11 main(argc, argv) int argc; char **argv; { find_sp_inv (); ins_inv(); } find_sp_inv() …

Software Development c
Member Avatar for Narue
0
80
Member Avatar for NRaf

I was wondering if the following fuction is a safe way to get input from a user (with a specified length). [CODE=c]char *input(int inputSize) { char str[inputSize + 2]; /*DO STUFF HERE (i.e. GET INPUT, CHECK IF CODE IS CORRECT, ETC*/ return &str[0]; }[/CODE] Is there anything that can go …

Software Development c
Member Avatar for Narue
0
109
Member Avatar for ScienceNerd

I just started studying structured programming and I was trying to do a If Else then function but the compiler won't let me compile it? #include <iostream> using namespace std; int main (void) { int age; cout << "Enter your age" << end1; cin >> age; if(age > 21) { …

Software Development c c# c++
Member Avatar for charleen
0
116
Member Avatar for _::suhanna::_

hello...hi im using VB.NET...can u guys teach me how to convert an Access database to a SQL server database? i really hope u all can help me.. thank you...

Software Development sql vb.net
Member Avatar for msuhyd1
0
102
Member Avatar for firoz.raj

Can anyone tell me .why i am getting error item cannot be found in the collection corresponding to the requested name or ordinal.error is generating on bold line.Here is the code what i have written. [code=vb] Private Sub Command1_Click() y = MsgBox("do you add this record", vbYesNo + vbQuestion, "message") …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
102
Member Avatar for hansel13

I need to create a search function that search for a product type. If it's found, I return true, otherwise i return false. My client program will output the data that was found (if true), otherwise it'll output an error message saying that product type does not exist in the …

Software Development c++ linked-list
Member Avatar for DemonGal711
0
145
Member Avatar for MJV

I have a stored procedure which returns a parameter @quotenum when run in sql but I'm having trouble getting a return value in my C# form. I'm trying to get the message box to show the @quoteno parameter but im failing misserably. The connection is working an the parameter @estnum …

Software Development open-source
Member Avatar for Seemant
0
194
Member Avatar for riahc3

Hey In VS, you can in a struct do: [code] struct test{ int tes; }tt; [/code] then when I put tt., it would display the all fields in a tooltip which in this case would display tes. Is "IntelliSense" (I know it is not called that) in wxDev-C++?

Software Development c c++
Member Avatar for mitrmkar
0
122
Member Avatar for ezkonekgal

I have a problem: 1.) How do you insert a sequence of integers into a binary tree? does anybody have an algorithm for it? like input : 1, 5, 3, 4 ,2 binary tree: 1 5 3 4 2

Software Development algorithm java
Member Avatar for verruckt24
0
381
Member Avatar for breatheasier

Hi. I've read the documentation but I can't quite work out how i create an object and give it attributes. I'm trying to create a disk object that has attributes disk.x and disk.y which i can then identify with a line, [code=python] disk.id = (x,y) [/code]

Software Development python
Member Avatar for breatheasier
0
93
Member Avatar for manjusaharan

I need an xml and HTML based search engine that I can use in my .net application(offline). Help Me ?????

Software Development c# html-css xml
Member Avatar for manjusaharan
0
82
Member Avatar for 3pid

hey guys, I built an array of objects but I don`t know how to access it`s methods or fields.It keeps sending me errors How should I access them?

Software Development
Member Avatar for LizR
0
124
Member Avatar for Digvijaysinh

Hiii I am developing one window application in c# and .net with sql server 2005 as database. now, i have Four questions: 1] I have one dropdownlist in form and i want to fetch the content/data of table category in to this dropdownlist and when I run this form on …

Software Development c c# c++ pdf web-server
Member Avatar for LizR
0
114
Member Avatar for Dumpen1337

Hey I got some quetions [b]Question 1:[/b] I have a image that is in a picturebox which is called pictureBox1 I want to read monstersetbase.txt and add small ellipses to my image. The position of the ellipse comes from my monstersetbase.txt. The image is 256x256 and the coordinates is example …

Software Development
Member Avatar for viper1891
0
231
Member Avatar for tksrules

Hi, I am comfortable in c.But i find errors here in my code.I know its related to that structures cant be accessed outside main().Need s use of pointer.How to do?.Help me soon. A revised code will be of help. [code=c] #include <stdio.h> #include <string.h> struct phonebook { char name[100]; long …

Software Development c
Member Avatar for John A
0
103
Member Avatar for baby_1

it means the new exe file is a copy of old file ( but its neccessory to see content of old exe file and save the texbox not use filecopy in vb6)

Software Development visual-basic
Member Avatar for cguan_77
0
70
Member Avatar for winrawr

I've tried everything, and I just can't get my program to compile in visual basic. Someone tell me what I'm doing wrong? see attached image, are the includes in the wrong spot or WAT!??!?!

Software Development visual-basic
Member Avatar for winrawr
0
814
Member Avatar for walom

I'm trying to convert a string to an integer and store it in the same variable multiple time through a loop. For some reason it never works after the first time, it screws the number up. [code] #include <stdlib.h> #include <string> #include <iostream> #include <cstdio> #include <sstream> using namespace std; …

Software Development c++
Member Avatar for siddhant3s
0
72
Member Avatar for tksrules

Hi, I have written the following code.I need to convert it to GUI. import java.awt.*; import java.applet.*; import java.awt.event.*; public class CompString{ public static void main(String[] args) { System.out.println("Enter two strings:"); BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Please enter first string:"); String str1 = bf.readLine(); System.out.println("Please enter second string:"); String …

Software Development gui java
Member Avatar for BestJewSinceJC
0
140
Member Avatar for peedi

when i run a program, and try to type in a decimal as input i always get an error? what can be the problem? should i use int or double? help!

Software Development java
Member Avatar for BestJewSinceJC
0
3K
Member Avatar for MJV

I have created and tested a stored procedure that works in sql. This stored procedure has one parameter that it requires to run "quoteno" . I already have the database attached to the form. Can anyone help me with the code for this. The name of my stored procedure is …

Software Development
Member Avatar for JerryShaw
0
222
Member Avatar for disaster

Hi all, Im fairly (very) new to coding. now I have this school project I need to do for IT which is due tonight. Basicly what I have to do is count the amount of words and letters in a string using what we know, which is not much... What …

Software Development java visual-basic
Member Avatar for verruckt24
0
126
Member Avatar for oscarresonable

Hello everyone, I have a project that the user can create/customize a report in a form,.. And in my project I have a form where user can choose a multiple tables, and also user can choose which fields they put in the report form..............., but the main problem is only …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
103
Member Avatar for DemonGal711

I'm dealing with a map of vectors, and I'm making sure I clean up all the memory used. So, what exactly is the best way to handle this? One person said to use clear() on each vector in the map and then use clear() on the map, but I don't …

Software Development c++
Member Avatar for DemonGal711
0
90
Member Avatar for Icebone1000

Hi, I alredy got it to work, but I did things that I figured out by debugging it, and I dont understand very well what is happening.. So..I trying to read a file header( its a ppm image file), here is a commom one: [CODE] P3 # example comment 512 …

Software Development c++
Member Avatar for Icebone1000
0
100
Member Avatar for ahfan_85

I have a question here: Complete a program that performs following operations by using C++ programming: a.Enable user to create and manipulate a list of items (must be able to read integers, characters and strings). b.Enable user to sort the list. (any sorting algorithm except naïve sort) c.Enable user to …

Software Development algorithm c++ linked-list
Member Avatar for ahfan_85
0
127
Member Avatar for Duki

Hey guys, I have a function that compares two dynamic arrays and returns true or false if they're identical. [code=c++] bool Identical(QueType que1, QueType que2) { if (que1.IsEmpty() != true && que2.IsEmpty() != true) { cout << "in loop\n" ; ItemType tmp1 ; ItemType tmp2 ; que1.Dequeue(tmp1) ; que2.Dequeue(tmp2) ; …

Software Development c++
Member Avatar for Duki
0
179
Member Avatar for arshad115

i m getting a runtime error and the program skips the first attribut i.e name,and gives a runtime error at the second one.compiler gives some warning about gets".\Assignment 3_Question 4.cpp(118) : warning C4996: 'gets': This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. …

Software Development c++
Member Avatar for vmanes
0
156
Member Avatar for Henry Schubel

I'm not even sure where to post this, but since I wrote the code in VB6, maybe here... This is really more of an Outlook problem, but what I'm doing is programatically creating email. Here's the problem. My VB6/Access application is installed on a Vista machine, and the host machine …

Software Development visual-basic
Member Avatar for Henry Schubel
0
113
Member Avatar for arshad115

i m having so many problems,i m trying to make an hotel database management program in win32 console and i m not allowed to use structures,only variables or pointer or Dynmaic arryas. i m using 2d dynamic array,i have to pass it to a function to store values in it,i …

Software Development c++
Member Avatar for vmanes
0
170
Member Avatar for JameB

How do you find the length of an int array?? I have int array with some values and I need to count how many values are there? I tried a lot of things like strlen(); sizeof(); etc.. [code=c++] int main() { int iarray[10000]; // Now I have a lot of …

Software Development c++
Member Avatar for arshad115
0
161
Member Avatar for CPPRULZ

Hello, I posted a program about converting furlongs to kilometers and other conversions concerning those 2 main units. These errors kept popping up: error C2027: use of undefined type 'Kilometer' see declaration of 'Kilometer' error C2228: left of '.getkilometers' must have class/struct/union error C2027: use of undefined type 'Kilometer' see …

Software Development c++
Member Avatar for CPPRULZ
0
155
Member Avatar for CPPRULZ

Hello, I have been working a week on this program with this stupid bug that gives tons of errors. I have narrowed them down to 4 errors and 2 warnings but I have no idea how to fix the 4 errors. The program is supposed to have two user defined …

Software Development c++ visual-basic visual-studio
Member Avatar for siddhant3s
0
118
Member Avatar for death_oclock

I had forgotten about calloc for the longest time, but I was recently reminded of it. Now i'm curious, what would be the difference between [ICODE]malloc(numElems * elemSize);[/ICODE] and [ICODE]calloc(numElems, elemSize);[/ICODE]? If my knowledge of arrays is correct, there shouldn't be any difference in the memory allocated.

Software Development c
Member Avatar for death_oclock
0
137
Member Avatar for cruisx

Hi guys, i am working on a bank program for school but i am running in to a small problem. when the program starts up its displays a menu such as: item 1 item 2 item 3 And say if you click item 2, it will do waht ever it …

Software Development c++
Member Avatar for charleen
0
90
Member Avatar for aminura

Well, today I had my C++ viva at my school..and I screwed it up!! The answers to this question which I was asked may be easy but I couldn't get it..Few questions of which I haven't got the answers yet-- 1. [CODE]class A { public: int a; int b; };[/CODE] …

Software Development c++
Member Avatar for charleen
0
295
Member Avatar for blair.mayston

Hi, Making good progress with a script that collects rss feeds from a news website and emails headlines but wondering whether I can alter what I have to email only the new headlines. My idea is that the new headlines would be compared with the previous ones using something like …

Software Development python xml
Member Avatar for blair.mayston
0
97
Member Avatar for weblover

hi all..i have a question ..and need help please... i have this applet code and i don't know how to use applets ....so i want to put this code in a single class if it can be made..coz i don't know anything about applets...and i want to join it with …

Software Development java
Member Avatar for weblover
0
151
Member Avatar for digiPixel

How do I create a Python egg that will properly pick up all the files and directories in a Python package :?: I have tried to do this with a "setup.py" file (created outside the Python package). Listed below are its contents: [CODE] from setuptools import setup, find_packages setup(name = …

Software Development python
Member Avatar for digiPixel
0
490
Member Avatar for robotnixon

Quick question (hopefully). I have a vector of strings and need to remove duplicates. Normally, I'd just use sort, erase and unique. However, I don't want to sort the data. My idea was to copy the vector to a set, then back to a vector. But every attempt just screws …

Software Development c++
Member Avatar for robotnixon
0
553
Member Avatar for botter911

Hi, I use the code below for an bitmap image and it works great. The only problem is after I use system("cls") or when the scroller goes down it cuts the image. I use compiler Dev-C++ and my OS is Windows XP and I have also vista. I was thinking …

Software Development c++ os-x windows-vista
Member Avatar for marco93
0
267
Member Avatar for Drake

What does the software or computer actually do when you compile a program using a software tool such as MPASMWIN. Just need to know what compiling actually does?? Would be great help cheers

Software Development assembly
Member Avatar for tux4life
0
94
Member Avatar for nitu_thakkar

hi... my question is how many total control can be taken in single form

Software Development visual-basic
Member Avatar for nitu_thakkar
0
146
Member Avatar for jacline

Add an interface, SizeComparable, that includes only the boolean isBiggerThan( Shape other) method. In your ShapeSet class, provide a method void sort(), that sorts the shapes of the shape set by class Shape implementing the SizeComparable interface. This is the problem I wrote codes but it gives run-time error.Could you …

Software Development java
Member Avatar for jacline
0
212
Member Avatar for jtb19nh

I would like to learn html. I need book recommendations. I need a beginner book I only know very basic stuff. Thanks for the help

Software Development html-css xml
Member Avatar for uxgeoff
0
99
Member Avatar for RahulV

Hi, How can i open a PDF file in Form instead of using a shell to open it? Also i want to select some text in the opened PDF file and store it in a variable. Thank you.

Software Development pdf visual-basic
Member Avatar for SlyMaelstrom
0
645
Member Avatar for Lilal

Heya, Just trying to get a little help on some excercises I need to do, Done 14/15 fine, but stuck on 15th and not sure quite whats wrong. Need to do a systemcall from C program to copy a file, using stat, open, read write and close. So far I've …

Software Development c file-system
Member Avatar for Lilal
0
99
Member Avatar for apch01

cant display the correct value of the structured values with function ... is it got to do wif some buffer stuff ??? [code] #include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; const int MAXCHARS = 15; const int NUMEMPS = 1; int i; struct EmpRec { long num; char …

Software Development c++ ios
Member Avatar for apch01
0
70
Member Avatar for daviddoria

If I use the uncommented 3 lines for getting an int out of a stringstream, the value in MPV is wrong. However, if I make a new stringstream, then it works fine. I thought setting .str("") was essentially resetting the stringstream? [code] line = ""; getline(fin, line); //get fourth line …

Software Development c++
Member Avatar for daviddoria
0
470

The End.