43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for protas

Hi Guys, Wanted some help with my code. This should be the OUTPUT. Enter the size of your array: (array size should be 1-100) Enter values of your array: x[0]= (any integer) x[1]= (any integer but not equal to the value of x[0]) x[2]= (any integer but not equal to …

Software Development c
Member Avatar for protas
0
137
Member Avatar for Alexkid

Hi, Simple question but why would someone use #define. Whats the difference between; #define sum 1 and const int sum = 1; both can't be changed and anywhere you sum its going to be 1!. Many thanks Alex

Software Development c++
Member Avatar for Alexkid
1
120
Member Avatar for Harris00

Hello I have below code to draw the circle, i want to add vertical line dividing the circle half and horizontal line and cross lines like in attached document. all the lines divide the circle equally with 45 degrees angle. I really appreciate the guidance from turtle import * r=100 …

Software Development python
Member Avatar for richieking
0
1K
Member Avatar for tech9x

[CODE=C++] 1. //my main 2. int sizeOfArray; 3. 4. int main() 5. { 6. int i; 7. int *num1, *num2, *num3, *num4, *num5; 8. string *opening, *ending; 9. cin >> sizeOfArray; 10. command = new string [sizeOfArray]; 11. opening= new int [sizeOfArray]; 12. num1= new int [sizeOfArray]; 13. num2= new …

Software Development c++
Member Avatar for jonsca
0
103
Member Avatar for inahrun

hi! having issue with duration time in crystal report. i want to sum duration time 0:48 1:05 2:00 0:45 I want to sum the time in crystal report.The sum of the time should be 4:38 not 3:98. Please help.Thanks in advance

Software Development visual-basic
Member Avatar for AndreRet
0
140
Member Avatar for cavern

hello everyone i need help about msgbox "Insufficient Data" coding. below is my coding: [CODE]Private Sub cmdSave_Click() On Error Resume Next Adodc1.Recordset.AddNew Adodc1.Recordset!Dateregistration = txtDate.Text Adodc1.Recordset!Title = cmbTitle.Text Adodc1.Recordset!Name = txtName.Text Adodc1.Recordset!Ic = txtIc.Text Adodc1.Recordset!Email = txtEmail.Text Adodc1.Recordset!Phonenumber = txtPhone.Text Adodc1.Recordset!Address = txtAddress.Text Adodc1.Recordset!Address1 = txtAddress1.Text Adodc1.Recordset!Residential = cmbResidential.Text Adodc1.Recordset!Gender …

Software Development visual-basic
Member Avatar for cavern
0
207
Member Avatar for The Bug

Hello all, I'm a new guy on this block <bowing> I have completed my "Advanced" VB.NET class this year, yet I still feel no more evolved than a newbie. So please please - be gentle <Grin> My question involves the creation of the actual database file. I have played around …

Software Development vb.net
0
64
Member Avatar for Syrne

Hello there! So I have an assignment where I am given a text file with customer information that I need to convert into a "label" format. The original file has caret (^) symbols marking the different lines to be organized. I have the input totally finished, the only thing I'm …

Software Development c++ file-system
Member Avatar for Syrne
0
157
Member Avatar for MasterGberry

I seem to be having an issue with using multiple class constructors? I did it for one other program and didn't have an issue. I can't seem to find the bug. Since it is complaining about multiple constructors it won't let me make Plorg1 in the 3rd set of code. …

Software Development c++
Member Avatar for MasterGberry
0
148
Member Avatar for terabyte

How can I print some numbers during a loop for example I have a while loop, and while the loop is running i want to print the numbers of times the loop has been repeated.

Software Development perl
Member Avatar for terabyte
0
114
Member Avatar for frankchester

Hi, I'm a newbie to programming in general and I'm really struggling with working out how on earth to do this! I am aware of how to open the stream and read the text file using fscanf, however I want to store the text in that file into a string …

Software Development c file-stream
Member Avatar for frankchester
1
38K
Member Avatar for bretthay93

write a program code thathas two functions: first() and second(). Function first() should print the string "in function first()" and then call function second()> functions second() should print the string "in function second()". in the global scope, you should call function first.

Software Development python
Member Avatar for WildBamaBoy
0
149
Member Avatar for batuzai04123

Hello! It is my first time to post this thread, So I hope it is in the right place. My problem is that I am creating system tools for windows with a good gui and I don't know how to start with it. One of my difficulties is making code …

Software Development gui hard-drive vb.net
Member Avatar for batuzai04123
0
342
Member Avatar for tallyhop

I am working on reading data from a file into a struct array. The first line of the file tells how many users there are, then the following lines are the username, password, and a pincode.So the file is setup as follows: 15 mah123 happy 1234 bah123 moody 4567 ...etc …

Software Development c++ file-system
Member Avatar for tallyhop
0
466
Member Avatar for Chocolatemoon

I have made a program that uses struct where a user can input a grade,average, and their name. I am trying to make it so their can be three students each with a grade average and name but I can not figure out how to make a loop so it …

Software Development c++
Member Avatar for Chocolatemoon
0
167
Member Avatar for yogibear13

Hello there, This is my first time posting on these forums. I was wondering if I could please get some help, there is a minor glitch in my code but I cannot figure it out. Basically, I have to create a class called XYPoint, and according to given criteria, have …

Software Development c c# c++
Member Avatar for SgtMe
0
191
Member Avatar for arsnic

Ok, I'm not new to C++ but I am used to running a g++ compiler vs Microsoft's VS C++. I understand what this error should mean. It should mean that I'm missing a ';' on the line before or in the class Polygon. I can't seem to find anything wrong. …

Software Development c++ file-stream storage visual-studio
Member Avatar for arsnic
0
587
Member Avatar for gpjacks

Im into the last stages of my C++ class and am having trouble with a project that has been assigned. Here is the problem and thanks in advance for whoever helps out! Declare an object of type bucket 1). Use the SetGallonSize() method to set the bucket size to 5.0 …

Software Development c++
Member Avatar for Fbody
0
126
Member Avatar for fenomenal

[ICODE]public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Input an integer: "); int n = in.nextInt(); int d = 1; int temp = n; while (temp > 9) { temp = temp / 10; d++; } System.out.println(n + " can be expressed in " + d + …

Software Development java
Member Avatar for Gerbiler
0
107
Member Avatar for ram619

Below shown is a simple C Code. The code which is troubling is in commented area (please remove comment symbol to run those lines, comment symbl is just here to highlight them), here there are two printf's in comment area......... the error is that both are getting executed continuously without …

Software Development c
Member Avatar for ram619
0
185
Member Avatar for white feather

[CODE] <Window.Resources> ... ... <DataTemplate DataType="{x:Type my:Section}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Name}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Instructor}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Cours}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Instructor}" x:Key="InstructorDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=FirstName}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Cours}" x:Key="CourseDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock …

Software Development asp.net
Member Avatar for white feather
0
176
Member Avatar for yongj

I have an application that allows the user to open a file by clicking file -> open. The thing I'm trying to do is read the text file...but I don't know how to assign the user defined text file that the user opened to an object. I guess because I …

Software Development file-system vb.net
0
111
Member Avatar for M3M69

Goodafter noon all, i would like some help on how to modify a python program to do the following: 1. Read both files actors.small.list and actresses.small.list and, using a dictionary, build a database that maps from each actor to a list of his or her films. 2. Two actors are …

Software Development python
Member Avatar for M3M69
0
128
Member Avatar for longlongsilver

i need the code to ask the play for a guess with a call to ask_number() here is my code i have a problem in that it won't run can somebody offer me some help? thanks [CODE]import random secretNum = random.randrange(100)+1 tries = 0 while tries < 5: try: def …

Software Development python
Member Avatar for TrustyTony
0
218
Member Avatar for RenanLazarotto

Hey guys! First post here. I'm new to VB.Net programming, so I decided to make a small app that runs another app with arguments. I think the best way to do it was selecting one option from a dropdown menu and using this option as an argument to run the …

Software Development vb.net
Member Avatar for RenanLazarotto
0
773
Member Avatar for tech9x

[code=c++] #include <iostream> #include <fstream> #include <cstring> #include <string> #include <stdio.h> #include <stdlib.h> #include <limits> using namespace std; void call(int i, int * test) { cin >> test[i]; } int main() { int sizeOfArray; int *temp; int i; cin >> sizeOfArray; int * test; string * command; command = new …

Software Development c++
Member Avatar for mike_2000_17
0
130
Member Avatar for jae5086

Ok, here is the loop from my code, a for loop inside a do...while. The title is a tad misleading, I couldn't edit it though. Probably not the most efficient coding to do what I want but I have no errors and it is so close to working. When I …

Software Development c++
Member Avatar for jae5086
0
100
Member Avatar for danholding

im a newbie to python still so bare with me if i have gone down the wrong route or my explanation is confusing!! any ideas on how i can sort my list by the size of the file at the moment it is getting the size of the file and …

Software Development python
Member Avatar for TrustyTony
0
240
Member Avatar for dbwalters67

Hello, I would like to modify a value that is in a window of another application using Windows API. I am trying to use Spy++ to determine the particular handle/class, but, I haven't any luck. Attached should be some pictures. One is a snapshot of the window I want to …

Software Development api visual-basic windows-api
Member Avatar for AndreRet
0
407
Member Avatar for Shlesh

hi! any body tell me any easy matrix program which is correctly working. please..... i am new in c#.

Software Development
Member Avatar for ashishkumar008
0
141
Member Avatar for ARaza110

Vector v = new Vector(); i<10; v.add(new Integer(i));// what does this lien do? I dont understand, what does calling (`new Integer()`) do? Is is calling the constructor and passing the value i in it. Why can't we just pass the value i directly and add it in the vector.

Software Development java
Member Avatar for ARaza110
0
132
Member Avatar for ashishkumar008

helloooo, Actually, i want to know something. please read this code... [CODE]using System; using System.Collections.Generic; using System.Text; namespace temp { class Program { static void Main(string[] args) { Int16 i = Int16.MaxValue; Console.WriteLine("Simple: " + (i )); unchecked { Console.WriteLine("Unchecked: " + (i + 1)); } checked { try { …

Software Development
Member Avatar for nick.crane
3
142
Member Avatar for sallubhai

Hi, I want to draw some rectangles with the same size and different colors by using an array but don´t know exactly how to do it in the for-loop. Thanks for help! [CODE]class Figure { private: int **figur; int row,col; public: Figure() : row(5), col(20){ } void allocate_place(int r, int …

Software Development c++
0
109
Member Avatar for Strangelle

We are going to make a system for computer using visual basic where the server pc can able to schedule what application you may want to run at a certain time, like photoshop, microsoft office, paint, autocadd, etc.. Then when the time is up, the client pc will automatically shutdown …

Member Avatar for AndreRet
0
518
Member Avatar for exception

do comments in code affect the Programs efficiency or it slows down the processing or reading of the code?? does it have disadvantages? In our program, we are not allowed to delete the past programmer's code when we have modification, we just have to comment it.

Software Development visual-basic
Member Avatar for Strangelle
0
90
Member Avatar for xtianenikkian

Good day to all, Im creating a computer laboratory admission system, and one of the functions of my program using a bar code reader, this how the system runs, assuming that mr. villa has the bar code and the code is 00123456789 then after you scanned it, it will look …

Software Development visual-basic
Member Avatar for AndreRet
0
263
Member Avatar for trippinz

[code] 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 System.Diagnostics; using System.Xml; namespace Shortcuts { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public string FileLocationToRun; private void button1_Click(object sender, EventArgs e) { OpenFileDialog fdlg = new …

Software Development xml
Member Avatar for crishjeny
0
169
Member Avatar for TheDocterd

Hi there all I have to write a small interface where I can read text files from a location and edit them. My aim is to have a small GUI, in that GUI there will be a combo box where I select the text file. when selected the info in …

Software Development gui
Member Avatar for crishjeny
0
117
Member Avatar for tdba.316

Hey :D this is my first post here^^, and it's a problem with an exercise from the book C++ Primer Plus, which I have been self-studying (I'm the beginner). The following code is how I did the exercise, which is in the header comment. It was built in VC++ 2010, …

Software Development c c# c++ programming-construct
Member Avatar for tdba.316
1
1K
Member Avatar for Dean_Grobler

Hi there, This is just going to be a quick question. Also just note that I am i some "remote location" so I cant even show you my code. But what I want to know is this: Say you have a package called "myPackage" and inside that you have 2 …

Software Development java oop
Member Avatar for JamesCherrill
0
143
Member Avatar for halopower67

Hey guys, so i have this project due on the 13th of Dec. I have been trying to work on it but im at a roadblock pretty early on and im just at a loss as to what to do, so i would appreciate a ton if you guys an …

Software Development c c# c++
Member Avatar for SgtMe
-1
126
Member Avatar for YairHa

Hi, I would like to FTP a file that only part of the filename is known. The name is something like “ClimateData2010042207XXXX.xls” performing the following does not work: [CODE] FTPClient client = new FTPClient(); FileOutputStream fos = null; client.connect("ftp.domain.com"); client.login("admin", "secret"); String filename = “ClimateData2010042207*.xls”; fos = new FileOutputStream(filename); client.retrieveFile("/" …

Software Development java
Member Avatar for zenfaraad
0
568
Member Avatar for badllama

Otay, I was brushing up my coding skills by creating a basic, coding 101 list class. At this point it works fine with a generic value, either primitive type or class. If it's a class, all the relational operators need to be overloaded to match the class key. I suddenly …

Software Development c c# c++
Member Avatar for badllama
0
140
Member Avatar for Madawar

Hello i want to create a file crawler that lists all files in hard disk using directory functions in C i have been able to list files in one directory only and haven't been able to crawl through other directories and sub-directories this is what i have so far. [CODE] …

Software Development c file-system
Member Avatar for Madawar
0
418
Member Avatar for newbee3

Hello, I need to write a password check function to validate the following: 1. Length of the string is at least 5 characters. 1. Cannot be all digits. 1. Cannot contain a space. Below is some of what I have so far but I'm not sure if it is correct. …

Software Development c++
Member Avatar for Isaac Remuant
0
128
Member Avatar for jnewing

Hey all sorry I'm new to c++ and just trying to get my head around vectors of objects etc.. so here is what I'm playing with [CODE] #include <iostream> #include <string> #include <vector> using namespace std; class foo { public: std::string blah; std::string blah1; foo() { } foo(std::string b, std::string …

Software Development c++
Member Avatar for Ancient Dragon
0
170
Member Avatar for kengamble

The following Ilmerge example merges all the dll files into a single executable. The problem is this merged executable creates a dos window along with the expected windows form. I do not know how to avoid this dos window. The unmerged version of the exe does not have the dos …

Software Development
Member Avatar for kvprajapati
0
859
Member Avatar for arineon

I am trying to come up with my own code for strcat. This is what I have so far. I'm getting a segmentation fault and i can't figure out why. The function prototype and call must not change. Any suggestions? [CODE]//Function Protoype char* stringCat(char *pWord, char *pTemp); //Function call in …

Software Development c
Member Avatar for darkbreaker
0
150
Member Avatar for ace8957

Hi all, I've been working on making a bounded priority queue implemented as an array of queues and I believe I have it at last -- except of course for this error that I don't understand... I am getting an error about the queue array being declared without a type …

Software Development c++ queue
Member Avatar for ace8957
0
414
Member Avatar for jrp370

im trying to create a function that does the same thing as the built in list opperation for index with out using the built in command for it. what i mean is i cant have a list lets say myList=[1,2,3,4,5] i then cant simply go mylist.index(3) any idea on how …

Software Development python
Member Avatar for TrustyTony
0
108

The End.