43,549 Solved Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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++ | |
[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 | |
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 | |
[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 | |
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 | |
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 | |
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 | |
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 | |
[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++ | |
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++ | |
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 | |
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 | |
hi! any body tell me any easy matrix program which is correctly working. please..... i am new in c#. Software Development | |
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 | |
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 | |
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++ | |
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 … Software Development client-server microsoft-office visual-basic | |
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 | |
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 | |
[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 | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 … | |
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 |
The End.