49,757 Topics

Member Avatar for
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
368
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
332
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
457
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
589
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
85
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
99
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
Member Avatar for DiscoJesus

I'm pretty low-level at C++, but decided writing up a program to do some playtesting work for me would save a lot of time. Anyway, I'm almost done - been debugging for a little while, and I've managed to bring it down to 16 repeats of the same two errors...and …

Member Avatar for Reisuke
0
1K
Member Avatar for sexyzebra19

I need this for matrix multiplication, I'm putting any 2 dimensional matrix into 1 dimension by column major order, i.e. the matrix 1 2 3 4 is stored as [1 3 2 4]. To try and figure it out I've worked out the pattern for 2x2 matrices: [code=php] data_[1] = …

Member Avatar for dusktreader
0
152
Member Avatar for techie929

/*I am getting the following errors free.cpp: In function 'int main()': free.cpp:24: error: expected `;' before 'obj' free.cpp:25: error: 'obj' was not declared in this scope free.cpp:25: error: expected primary-expression before 'int'*/ [CODE]#include<iostream> using namespace std; int array[]={0,1,2,3,4,5,6,7,8,9}; class free { public: void function(int array[]); }; void free::function(int array[]) { …

Member Avatar for techie929
0
214
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 …

0
68
Member Avatar for dusktreader

In my application, i currently make many (parallel) calculations based on a time parameter. The calculation is a parametric function of time, so, each time value renders a unique solution. Currently, I have many threads that are calling the same calculation function, and the time parameters are often the same. …

Member Avatar for dusktreader
0
289

The End.