49,761 Topics

Member Avatar for
Member Avatar for StaticX

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 …

Member Avatar for StaticX
0
81
Member Avatar for webdragon89

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, …

Member Avatar for tetron
0
400
Member Avatar for PDB1982

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; …

Member Avatar for PDB1982
0
110
Member Avatar for adcodingmaster

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

Member Avatar for adcodingmaster
0
205
Member Avatar for tusharvichare

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.

Member Avatar for kvprajapati
1
277
Member Avatar for callister

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 …

Member Avatar for callister
0
219
Member Avatar for riotburn

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 : …

Member Avatar for jazz_vill
0
393
Member Avatar for programer411

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 …

Member Avatar for tetron
0
462
Member Avatar for exeric90

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 …

Member Avatar for jonsca
0
143
Member Avatar for anthony5557

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 …

Member Avatar for anthony5557
0
90
Member Avatar for techie929

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.

Member Avatar for jonsca
0
95
Member Avatar for valeriy_zf

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 …

Member Avatar for valeriy_zf
0
145
Member Avatar for kalyanponnala

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 …

Member Avatar for jonsca
0
333
Member Avatar for kavithabhaskar

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 …

Member Avatar for Salem
0
336
Member Avatar for igodspeed

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 …

Member Avatar for Salem
0
463
Member Avatar for lgonzo

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.

Member Avatar for lgonzo
0
2K
Member Avatar for techie929

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 …

Member Avatar for techie929
0
84
Member Avatar for themarval

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 …

Member Avatar for jonsca
0
168
Member Avatar for puhzl

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 */ /* */ /* …

Member Avatar for kvprajapati
0
590
Member Avatar for WargRider

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 …

Member Avatar for mrnutty
0
86
Member Avatar for PDB1982

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 …

Member Avatar for mitrmkar
0
85
Member Avatar for PDB1982

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 …

Member Avatar for WaltP
0
172
Member Avatar for isralruval

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 …

Member Avatar for NathanOliver
0
82
Member Avatar for casjackkwok2001

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 …

Member Avatar for Lerner
0
2K
Member Avatar for IntegrySoft

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 …

Member Avatar for nezachem
0
100
Member Avatar for jnpnzn

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.

Member Avatar for Fbody
0
31
Member Avatar for Akirasan

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 …

Member Avatar for Fbody
1
191
Member Avatar for XinJiki

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 …

Member Avatar for Shinedevil
0
250
Member Avatar for rahul8590

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 …

Member Avatar for WaltP
0
197
Member Avatar for LEEEEE

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

Member Avatar for WaltP
0
208

The End.