49,761 Topics

Member Avatar for
Member Avatar for sexyzebra19

Hi, I've tried to make a program that inputs two 3D vectors and then calculates various norms of the first vector, and the dot product and addition of both vectors. My code is working fine when everything is put into the main, however I wanted to create some functions to …

Member Avatar for sexyzebra19
0
97
Member Avatar for Rastafari

hi, I have a program that compresses a file but for some reason my output file comes up empty every single time ...I dont get it . can some body tell me what i might be overlooking The sample input file looks like this ..GGGGGG...OOOOOOOO...OOOOOOOO...DDDDDD and my function has to …

0
79
Member Avatar for salmanoreen66

Assignment Write a C++ program to implement employee directory, which will let the organization to perform the following functions: 1) Insert the record of new employee 2) Delete the record of an existing employee 3) Find the record of an existing employee 4) Display Report Following information of each employee …

Member Avatar for ellimist14
0
166
Member Avatar for umarabbas
Member Avatar for SerenaG

I am a beginner at programming and dont understand the difference between get.cin( ) and getline ('\n') ???

Member Avatar for Tom Gunn
0
53
Member Avatar for kadji.kahn

I was asked "This program asks for a series of five test scores and calculates the average score in a function. The function should receive the total of the five scores as an argument and return the average of the five scores. The program should not accept scores less than …

Member Avatar for cgeier
0
152
Member Avatar for UKmason

********************************************************************************** Write a float function that will have four float parameters. The four parameters represent two Cartesian points, 2 x's and 2 y's. Return the distance between the two points. It involves a square root. Write a main function which will ask the user for 2 points (4 numbers), decide …

Member Avatar for mrnutty
0
281
Member Avatar for complexcodes

Hi all, I am playing around with list and I figure out how to merge two lists and all. But I have no idea how can I integrate one list onto another. For example A = {1,2,3,4,10,11} and B = { 5,6,7} Then my integrated list should be {1,5,2,6,3,7,4,10}. I …

Member Avatar for mrnutty
0
145
Member Avatar for tomtetlaw

How do I access the paramaters entered after param1? Like this: void foo(param1, ...); How do I access the ... part?

Member Avatar for Dave Sinkula
0
85
Member Avatar for number87

I am trying to convert a string "500.00" into float. When I use this it produces a string 50000, why does it produce such a result? [code] atof(bal.c_str()); [/code]

Member Avatar for mrnutty
0
171
Member Avatar for t_simpson

I'm a student but I'm not asking anyone to do my work for me, however I would like a little help if possible please. For part of my assignment I have to create a program that will issue a bepp of the value ( frequency and duration ) that the …

Member Avatar for t_simpson
0
71
Member Avatar for preludeg5

Hello, I have a program written using Borland Builder C++. When ever I try to close the program, either by closing the form or having a button close the form, I get an access violation error. The error says: access violation at 0x41301e73: write address 0x1b50a18(this value changes) 89 02 …

Member Avatar for Ancient Dragon
0
91
Member Avatar for NinjaLink

Can someone help me determine if 2 stacks are the same? I am fairly new to stacks and need help. My header file is also below. Currently I am getting an error message using "==" and "!=" in my if statement. If someone can help, I will appreciate it! Thanks …

Member Avatar for VernonDozier
0
1K
Member Avatar for AdRock

I've bene banging my head against a brick wall trying to work out how to do this. I need to be able to read a text file line by line and to read each character of the line. When the character is a space, anything up to that is added …

Member Avatar for VernonDozier
0
266
Member Avatar for Dr EUU

for some reason when i run the program the print method for the array gets called instead of the one for the matrix..but it jus print out "array index out of bound".which is the exemption...the code is attached

Member Avatar for Dr EUU
0
83
Member Avatar for tomtetlaw

When I try to compile this: [code] #define NODES_MAX 100000 extern node_t _nodes[NODES_MAX]; [/code] It gives me this error: ------ Build started: Project: TheAlienEngine, Configuration: Debug Win32 ------ Compiling... main.cpp c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.h(12) : error C2148: total size of array must not exceed 0x7fffffff bytes Generating Code... …

Member Avatar for rdrast
0
741
Member Avatar for brijendra_kumar

how we can check a linkedlist of char have a palindrom or not but without distrubing pointers of linklist

Member Avatar for Tom Gunn
0
95
Member Avatar for slim2hott

I have made a window that has message boxes, menus and dialogs, but can someone tell me what is wrong with this .rc code? It looks ok for me it gives me this error: [Resource error] syntax error on the line 3, the one that starts with style. [CODE] #include …

Member Avatar for slim2hott
0
115
Member Avatar for Baseball400

Hey guys I made this program that works fine but the thing is I have to add a feature that will ask the user if they have more records to add to the file. Keep adding records until the response is No. Thanks. [CODE] #include <iostream> #include <fstream> using namespace …

Member Avatar for Ancient Dragon
0
77
Member Avatar for kv123
Member Avatar for YousefAB
0
125
Member Avatar for schnell

I have "Vertex" class pointers in a list. I want to delete these pointers and free up the memory. I deleted the pointers in the first for loop and set these pointers to 0. but just to check whether the pointers have really been deleted and set to NULL, I …

Member Avatar for schnell
1
110
Member Avatar for stoymigo
Member Avatar for stoymigo
0
109
Member Avatar for AirGear

guys, i have a project that needs using GUI in cpp. my lecturer suggests me to use Microsoft Visual Studio 6 and create a MFC based application. But i don't really understand how to use it. Can anyone please give me a link that can explain about that MFC stuff? …

Member Avatar for pspwxp fan
0
132
Member Avatar for FREEZX

I need to "decode" a string into numbers. it should convert 1=ij 2=abc 3=def 4=gh 5=kl 6=mn 7=prs 8=tuv 9=wxy 0=oqz so i made a code where i use a dynamic string array which should get filled up according to the above table, but when i try to print the …

Member Avatar for FREEZX
0
105
Member Avatar for gretty

hello How do I traverse & compare 2 linked lists that have different sizes without getting an error. For example: [QUOTE] List1 -> 1 -> 4 -> 6 List2 -> 8 -> 3 -> 2 -> [B]8[/B] [/QUOTE] [CODE] // I will get an error the 4th time this loop …

Member Avatar for Clinton Portis
0
88
Member Avatar for Dr EUU

hi ya all..im having trouble trying to code a matrix using a dynamicArray for my rows and columns..i get a problem calling the insert function from the dynamic array class because its not a base class for the matrix.just have a pointer of type dynamicArray...Can anyone help me call the …

Member Avatar for dkalita
0
51
Member Avatar for nekomata

hello, I seem to have lost part of my notes an was wondering if someone could plz explain how one would use the pi formula below to display a 10000, an 20000, and a 10000 value. pi = 4(1- 1/2 + 1/5 - 1/7 + 1/9 - 1/11 + 1/13 …

0
38
Member Avatar for ice_tea_lemon

I find a problem which says An approximate value of pi can be calculated using the series given below: Pi = 4 [ 1 – 1/3 + 1/5 – 1/7 + 1/9 … + ((-1)n)/(2n+1)] Write a C++ program to calculate the approximate value of pi using this series. The …

Member Avatar for nekomata
0
164
Member Avatar for gretty

Hello I have a task to perform an addition of 2 Big Integers. Each Big Integer is stored in a linked list in reversed order. [B]Is my add function correct?[/B] For eg; we have 2 Big Ints to add together [QUOTE] First BigInt = 245 { strored in the linked …

Member Avatar for gretty
0
404
Member Avatar for NinjaLink

Hello, I need some advice to help me write a program to convert postfix to infix. However, I am having difficulty getting started. I tried to search for more information, but all I got was infix to postfix results. This is what I have so far, but I want to …

Member Avatar for tsfaridi
0
196

The End.