C++ :: Program That Accepts Three Images And Combines Them Into Panoramic View

Aug 15, 2013

I've been tasked with righting a program that accepts three images and combines them into a panoramic view I'm having trouble getting started?

View 2 Replies


ADVERTISEMENT

C++ :: Program That Accepts Array Of Characters

Nov 18, 2014

Here's the question: Create a program that accepts an array of characters. And displays the converted array of characters into Upper case if it is given in Lowercase and vice versa. Don't use string, but char.

Example: mychar ="I am A conQUeror."
Code: //My Codes:
#include <iostream>
#include <conio.h>
using namespace std;
int main()

[Code] ....

View 5 Replies View Related

C :: Program That Accepts First / Last Name And Displays It Through Another Function

Sep 25, 2014

I was trying to code a program that accepts your first name and then last name and then displays it through another function. I have checked that the assignments are between similar type of variables and pointers, but I don't seem to get it right.

When first input is taken and then second one, the first one's value changes to same as the second. E.G if first name is L and second name is S and after second input both variables, first and sec, become equal to S. Why?

Code:

#include <stdio.h>
#include <stdlib.h>
//FUNCTION PROTOTYPES
char *input(void);
void show(char *f,char *s);

[code]....

View 7 Replies View Related

C++ :: Program That Accepts Two Input From User?

Dec 8, 2013

I built a program that accepts two input from the user, using a array inside a loop, it is pass to a function inside a class which will display the two number, the problem is when the user is inputting a number and it is 1 the program continuously as the user to input a number, and when 2 is entered the program ask another number and end, but for example you entered 2 and 3. . . it will then outpu 2 and 4 (so 3 + 1 ) and always the last number is plus one. here is the code.

main.cpp
#include <iostream>
#include "newclass.h"
using namespace std;

[Code].....

View 5 Replies View Related

C++ :: How To Modify A Program So That It Accepts Columns Instead Of Rows

Feb 4, 2015

I have a N queens (actually 8 queens to be specific) program that accepts the numbers in order by row. I need to get it so it accepts the numbers in order by column. At first glance I thought it was just one space different, but it turned out not to be and how to get the one space difference in there. My current code (which I'm aware isn't doing the column accepting right) is:

Code:

#include <iostream>
using namespace std;
int main() {
int board[8];
cout << "Enter the columns containing queens, in order by column: ";
for(int i = 0; i < 8; ++i) {
cin >> board[i];

[Code]...

What the output should be:

Code:

Enter the rows containing queens, in order by column:

7
6
5
3
4
2
1
0

.......Q
......Q.
.....Q..
...Q....
....Q...
..Q.....
.Q......
Q.......

What it is:

Code:

Enter the columns containing queens, in order by column:

7
6
5
3
4
2
1
0
........Q
.......Q.
......Q..
....Q....
.....Q...
...Q.....
..Q......
.Q.......

View 5 Replies View Related

C/C++ :: Program That Accepts Information And Calculated CGPA

Jan 30, 2015

i want to display the grade report of two students in the table but this code will repeat the grade report of one student in the tables and what is wrong with this code below ?

#include<iostream>
#include<string>
#include<fstream>
using namespace std;

[Code]....

View 3 Replies View Related

C++ :: Looping Activity - Program That Accepts Positive Integer

Aug 10, 2014

You pros are once newbies like us. Hoped you might take a little time sharing your expertise. Got freaked out when our teacher gave us this activity, where she haven't taught this to us yet. So this is the activity (LOOPING) :

Write a program that accepts a positive integer. The program should be the same from the given output. Use do while to allow the user to continue or not.

OUTPUT must be:

n = 5
0
1==0
2==1==0
3==2==1==0
4==3==2==1==0
5==4==3==2==1==0

if n = 6
0
1==0
2==1==0
3==2==1==0
4==3==2==1==0
5==4==3==2==1==0
6==5==4==3==2==1==0

View 5 Replies View Related

C# :: Populating Second View From Info In First View

Jul 22, 2014

I have a program I have been working on where the user selects a date and enters the number of days to be viewed in the Calendar.cshtml view. This input renders another view (Update.cshtml) that contains two date picker boxes, one that should contain the selected date and the second one that should contain the calculated date. I am having an issue getting the date selected in the first view to populate to the first date block on the second view as the default and getting the calculated date to populate the second date block in the Update.cshtml view. In addition given the two dates, I would like to generate a calendar, which is why I chose the date picker approach and setting static dates.

Here is my code:

**CalendarController:**

using System.Web.Mvc;
using VanickCalendarApp.Models;
using System;
namespace VanickCalendarApp.Controllers {
public class CalendarController : Controller {

[Code] .....

View 5 Replies View Related

C :: How To Import Images In Program

Feb 21, 2013

I want to import images in my program and what function I will use.

Compiler: Turboc 3.0

View 2 Replies View Related

C++ :: Can Integrate Images Into Program?

Sep 10, 2013

The question is pretty simple. I'd like to integrate an image into a C++ program.

View 11 Replies View Related

Visual C++ :: Launching Current Version Of IE To View HTML File From Program

Nov 29, 2012

I tried to do this with _spawnl(), but first of all I'm not sure how to properly ask for the path to iexplore.exe, as I'm sure it will change every time MS gets a whim to move it. I know there's a GetWindowsDirectory() call, but that's not where IE resides (its in "C:Program FilesInternet Exploreriexplore.exe" in XP, Lord know where on win 7 or 8).

Also, even temporarily hard coding the path to make it launch with spawnl(), I can't seem to get my html document to display. I know the path to that is right (since I put it there ).

char * pFile = "someFile.htm";
char * pCmd = "C:Program FilesInternet Exploreriexplore.exe";

int res = _spawnl(_P_NOWAIT, pCmd,pCmd, pFile, NULL); // also tried without specifying pCmd 2x
if (res == -1) MessageBox("Can't Open File.");

So my second question would be, how to you PROPERLY pass the file to view as an argument.

View 7 Replies View Related

C :: Create A Proper Table That Accepts Value In Each Box It Contains

Sep 29, 2013

I want to create a proper visible table with boundaries that contains boxes and each box receives a value .I don't know where to start from.i have an idea of using matrix for entering values in each box of table,but how to create lines and boundaries ?

View 1 Replies View Related

C++ :: Add Constructor That Accepts One Argument And Uses It To Set Radius

Apr 10, 2013

I'm getting a error on my Circle::Circle(double radiusValue) constructor. My instructions is 'Add a constructor that accepts one argument and uses it to set the radius.'

#include <iostream>
#include <cmath>
using namespace std;
class Circle {
private:
double x;
double y;
double radius;

[Code] .....

View 3 Replies View Related

C++ :: Function That Accepts Integer And Returns A String?

May 5, 2014

How to go about making a function that accepts an integer and returns a string with any one of 5 strings containing the name of the object. For example object number 3 might be "Pen". Object 4 might be "Paper".

To do this would I just use an array?

View 4 Replies View Related

C++ :: Function That Accepts Array Of Integers And Its Size As Arguments

Feb 12, 2014

Write a function that accepts an array of integers and its size as arguments. The function should create a new array that is one element larger than the argument array. The first element of the new array should be set to 0. Element 0 of the argument array should be copied to element 1 of the new array, element 1 of the argument array should be copied to element 2 of the new array, and so forth.

The function should return a pointer to the new array. Use ONLY pointer parameters instead of arrays in both functions; use pointers (not subscripts) to move through elements of both arrays. Before calling the function, display your original array. When the function call is completed, display the new array.

Here is what i got so far:

#include <iostream>
using namespace std;
int *shifted (int * , int);
const int SIZE = 10;
int main () {
int array_size [30];

[Code] ....

View 1 Replies View Related

C++ :: Write A Template That Accepts Argument And Returns Its Absolute Value

Nov 19, 2014

Write a template that accepts an argument and returns its absolute value. The absolute entered by the user, then return the total. The argument sent into the function should be the number of values the function is to read. Test the template in a simple driver program that sends values of various types as arguments and displays the results.

#include <iostream>
using namespace std;
template <class integertemplate>
integertemplate totalint (integertemplate integers) {
cout << "How many integer values do you wish to total? ";
cin >> integers;

[Code] .....

View 8 Replies View Related

C/C++ :: Write A Function That Accepts Two Arguments / Array Of Integers

Feb 16, 2014

write a function accepts two arguments, an array of integers and a number indicating the number of elements in the array. the function should recursively calculate the sum of all the numbers in the array. Demonatrate the use of the functions in a program that asks the users to enter an array of numbers and prints it sum

i had done this but it wont work

#include <iostream>
#include <conio.h>
#include <iomanip>
using namespace std;

[Code].....

View 6 Replies View Related

C++ :: Lambda Accepts No Arguments But It Accesses Increment By Value And Current By Reference

May 24, 2013

In this code:

// Ex10_15.cpp Using lambda expressions
#include <algorithm>
#include <iostream>
#include <iomanip>

[code].....

The lambda accepts no arguments, but it accesses increment by value and current by reference, the latter being used to store the next value to be set. This lambda has the side effect that current will be updated when generate is finished. The following lambda expression is similar, but without the side effect:

[=]()mutable->T{T result(current);
current += increment;
return result;}
"

I dont exactly understand what side affect it is talking about. Wouldn't you want generate to update current? I understand how the second code fixes it though, just takes everything in the enclosing scope by value.

View 2 Replies View Related

C# :: Numbering Each Row In List View

Jul 10, 2014

I have a listview in my Windows Forms Application and I am having some trouble wrapping my mind around how I can get a number to increment in column 2 for each line item that is added. The reason that I want to do this is because this number will later be added to a set of soft fonts, which requires a unique Font ID.

Here is what I have and where I am stuck.

foreach (string fontFileName in ofd.SafeFileNames){
//Add a line in the list view for each selected file. Don't allow for the same file to appear twice.
if (listView1.FindItemWithText(fontFileName) == null){
listView1.Items.Add(fontFileName);

[Code] ....

View 10 Replies View Related

C# :: Mouse View In Picturbox?

Jan 22, 2014

i would like to add a image box to my application which shows a view/picture where ever my mouse is pointing. something like windows magnifier but it must not zoom in anything it must just display in picture box what your pointer is on.

So basically you have a picture box 504, 86 okay in a form when you move your cursor of mouse around desktop what ever you look at it will be visible inside picture box.

This is what i have so far.

private void MainForm_Load(object sender, EventArgs e) {
objPct.Visible = false;
this.Controls.Add(objPct);
}
PictureBox objPct = new PictureBox();

[code].....

View 3 Replies View Related

Visual C++ :: Can't Interconnect Doc And View

Nov 6, 2012

I'm trying to exchange data between doc and view but i can't do it.

I've readed that i need to write AddView but i don't know where.

View 10 Replies View Related

Visual C++ :: Doc / View In CDialog

May 13, 2014

I have a app with doc/view architekture. Is it possible to show/edit a doc of this type also in a CDialog within this app? How can I do that?

View 9 Replies View Related

C++ :: Address Book - Add / View Entries

Sep 3, 2014

This program is an address book where you caan add/view entries. I'm having a problem printing out entries. Why the information isn't getting saved into the structure array?

Code:
#include <iostream>
#include <string>
using namespace std;
struct contactinfo

[Code] .....

View 1 Replies View Related

C# :: Populating List View With Data

Mar 31, 2014

I am trying to complete this program and as far as I am aware, the only thing not working correctly is populating the listview with my data. I've been stressing over this for a few days and achieving no success. I have to load data from two text files (incidents.txt and technicians.txt), then use a query to populate a listview with all incidents that have been closed. Also, I have to use LINQ for this assignment, so I cannot change anything that would alter my use of that. I'm thinking that perhaps the problem is with my code in form1.cs?Included are all my classes,txt files, etc.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IncidentsByTechnician {

[Code] ....

Incidents.txt

45|1089|LEAGD10 |12|7/9/2012|7/13/2012|Problem upgrading from League Scheduler 1.0|Program fails with error 303 when trying to install upgrade.
46|1016|TEAM10 |14|7/9/2012|7/12/2012|Unable to restore data from backup|Error 405 encountered while restoring backup: File not found.
47|1034|DRAFT10 |13|7/9/2012||Can't activate product|Product activation code invalid.
48|1049|TRNY20 |11|7/9/2012||Unable to print brackets|Program doesn't recognize printer.

Technicians.txt

11|Alison Diaz
12|Jason Lee
13|Andrew Wilson
14|Gunter Wendt
15|Gina Fiori

View 4 Replies View Related

C# :: Bind XML Response To Grid View

Nov 11, 2014

I have been trying to bind an xml response from a web service to a gridview but to no success. bellow is my code

soapInvoker.setMethod("GetAgentProducts");
XDocument AgentproductsRequest = SoapMethods.GetAgentProducts(pin);
XDocument AgentproductsResponse = soapInvoker.CallSoapServiceInternal(AgentproductsRequest);
XDocument xmlDoc = new XDocument(AgentproductsResponse);
var vrresult = from a in xmlDoc.Descendants("product")

[Code] ....

And I always get an error that is not explained dont know whether is coz i bootstrapped my master page or what but all errors caught where there are it shows this Runtime Error

Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.

View 1 Replies View Related

C# :: Double Declining Balance In Grid View?

Apr 8, 2014

I don't really have an issue with the math behind this, rather it's more with the code structure itself. Basically, every row is right, except for the last row. The last row (year) needs to be depreciated by the value at the beginning of the last row (year).

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

[Code]......

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved