49,761 Topics
| |
Here is a smaller program I made but the concept is much the same, what I understand( which is obviously not the case ) with this program is: The function returnFunc is called 3 times in main Each time is is called it returns a value from the array Is … | |
I have a 3x3 matrix with values: (0,0)=3 (1,1)=4 (2,0)=2.4 the rest of the values are zero and the code: [CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(); sMatrix(int,int); int getR(); int getC(); bool rValid(int); bool cValid(int); void setEl(int,int,double); double getEl(int i,int j); void print(); private: int nr, … | |
I am having trouble overloading my function JustSold() with the array for CartSales[x].Cart . I can't seem to get the array to properly import....any ideas? [code] #include <iostream> #include <fstream> using namespace std; class HotDogStand { public: void JustSold(int DogCounter, int numCarts, [COLOR="Red"]int HotDogStand[][/COLOR]); int Cart; int IdNumber; int SalesToday; … | |
Hi all. Can you please give me some ideas for software engineering project. This is not my final year project. Just a project for this course. There will be no implementation of the project. It only involves Documentation. So please help me. Thanks in advance | |
Any one have idea about how to convert Visual C++ application to VB.net Or how to include VC++ application into the vb.net application so that function of VC++ application can use in to the VB.Net application. Thank you. | |
Hey everybody.. I have some problem here. This is the question: Find a root of the equation on the interval [4,5] by using the bisection method. What happens on the interval [ 1 , 2] ? I wrote the code and everything seems fine with the interval [4,5] but for … | |
Hi, first post...I am writing a program for simpsons rule for numerical estimation of integrals, [URL="http://en.wikipedia.org/wiki/Simpson%27s_rule"]wiki here[/URL] , and I finally got the code to execute with no errors. Now I am just getting a blank black box with no results. Any help? Thanks in advance. [CODE] // hw2.cpp : … | |
Hi I'm supposed to write a program that has the input include: • m lines, each including n characters. If the character read is not a space, the character belongs to the boundary of the shape. • Two numbers that specify the coordinates, namely the row and column indices of … | |
Okay so lately I have been messing around with encryption. I thought I might give making my own simple encryption program a shot. So I am trying to make it. I am compiling my code in DEV C++ and when it runs, after I enter the message, nothing happens. It … | |
When writing programs with class declarations you need to write a header file with the .h extension. In Microsoft Visual Studio 2008 where do you enter this bit of code? I know how to start a .cpp file but don't know where to put the extension so I can call … | |
How can we remove all leading and trailing <SPACE>, <TAB>, and <CR> characters from a character of string. I think I can use strtrim but can anyone explain me with the help of an example. | |
What is the most effective method to make an animation on the Form? Now I'm doing the following: I paint the rectangle in order to clear the old picture, and I draw the new picture after that. It was working properly in C++ Builder. But it's working very slowly in … | |
Hi, I am using cmake to build a visual studio 2008 solution file. When I do all build it works fine, but when I try to run a certain target inside that solution its giving me errors like: fatal error: 'limits.h' file not found 'stdio.h' file not found 'reloc2.h' file … | |
here is a c++ code .. It compiles fine and looks fine but it messes up the output. [CODE=C++] #include<iostream> #include<string> using namespace std; int main() { string s; cin>>s; for(int i=0;i<s.length();i++) { if (isalpha (s[i])) if (s[i] == 'a'||'A'||'e'||'E'||'i'||'I'||'o'||'O'||'u'||'U') cout<<s[i]<<" is a vowel"<<endl; else cout<<s[i]<<" is a consonant"<<endl; if … | |
Hello, I am trying to convert this C code to C++. The original code is further down this page. From the changes that I have made till now, the code should work but i keep on getting errors. I am using gcc in ubuntu to compile it. Thanks in advance … | |
i have following code done, now after i menu item is chosen i want to be redirected to preform the actual conversion, Can some give example of how do that thanks. | |
I have to create a bst in which i have to add string values in the nodes..I have to display the no of nodes inserted each time..When I insert small string like..FA or B...i am getting the correct value in count[count is the variable which I have taken to count … | |
I'm taking an intro course to C++ and we're covering stack overload and how the library and linker come into play with programming. I have a simple .cpp file called dataType.cpp. The code is as follows [CODE=C] int A; int rtn; int main() { rtn = dataType(A); cout << rtn … | |
Hi, So I am currently working on a homework assignment for my data structures class, basically C++, and I am having some troubles converting a working c++ program to use a template. [code] #include <iostream> using namespace std; /* -------------------------------------------------------------------------- */ /* */ /* SECTION: DECLARATIONS */ /* */ /* … | |
Dear Community, Well after googling and some searching, managed to find a good 3ds loader class, that loaded all the vertices, UVs and other information for multiple meshes in a .3ds file. My only worry at the moment is displaying the vertices. The vertices are stored in a struct like … | |
I'm getting the following error and I don't know how to fix it: Error 1 error LNK2001: unresolved external symbol "public: static int HotDogStand::DogCounter" (?DogCounter@HotDogStand@@2HA) CartTesting.obj CartTesting I'm trying to use the HotDogStand::JustSold() function to increment the DogCounter variable by 1, or none (depending on user entry). I think my … | |
I'm trying to see if there is a better way to go about getting the number of carts that the user inputs, instead of mandating that they have exactly three. My assignment calls for the following: "You operate several hot dog stands distributed throughout town. Define a class named HotDogStand … | |
i have the following function which works, its encrypts a text file, well its suppose to shift the letters of a text file by whatever the user wants, lets say the text file says "zoo" if the user wants to shift the letters by 1 to the right the output … | |
Hi All, I'm stuck on my C++ assignment. I have no idea how to finish it...I think I'm missing something in my code such as how to double the size of the argument array and copy it, then initialize the unused elements of the second array with 0. thanks in … | |
Does anyone have a quick and easy piece of code that I could use to point to the url location of a bunch of image files and download them to a local folder? For example, imagine I wanted to download [url]http://www.mysourcewebsite.com/images/picture0001onsite.jpg[/url] through .../picture999onsite.jpg. I've not had a lot of experience … | |
I am having problems how to use bubble sort to sort names from an infile alphabetically, please help me for i have a test coming up soon and this is my main problem. | |
Hello, I'm kind of new to C++ development in linux and I'm trying to make a multiplayer game. I know that it is a bit of complex program to start but I have some background on this type of program from other languages so I guess the most difficult part … | |
I am working on a homework assignment: File Input to the program is the body of the letter. Keyboard Input to the program is the name and address of the recipients. The file contains all the letter except the names, which are denoted by #N#. This occurs exactly once in … | |
Well ,it may sound a bit preposterous , but i have a pretty weird problem (which i have solved many times , dunno why it isnt working for me this time ) . I have a data file from which i randomly pick up row nos . The data file … | |
Hay i'm new here + new to c++ :cheesy: But not new to programming/Scripting (QBasic/VB/VBS/VBA/Batch/HTML) LOL Looks like i like the basic stuph :eek: Anyways i'm learning C++ But a good start would be a Compiler! So where do i get 1? oK thats my question! Thanx |
The End.