49,757 Topics

Member Avatar for
Member Avatar for Zssffssz

Ok in Code blocks I was commenting my code instuff and since I have a computer running xp when it is bult for winNT or win95 and a compaqu keyboard I have many tyPos, freezes, pieces of curcutry on my driveway under my window I accsedentaly typed three / in …

Member Avatar for thines01
0
201
Member Avatar for Ravic85

So, I've got my program up and running, and everything is great except my problem is I can't figure out why my output for my original balance and my output for my new balance are the same and it won't do my calculation Here is my header [CODE] #ifndef SavingsAccount_H …

Member Avatar for Ravic85
0
170
Member Avatar for totalanonymity

The homework question said to rearrange statements and remove part of code that made it calculate incorrectly. I'm lost on this and have been searching multiple places and trying different things. This is a beginning C++ class, too, so, for homework in the first half I can't very well be …

Member Avatar for totalanonymity
0
204
Member Avatar for namratag

I am new to VC++. And getting error as- error PRJ0002 : Error result 4 returned from 'C:\Windows\system32\cmd.exe'. so please tell me the solution as soon as possible. we tried following solution GoTo Project -> properties ->Manifest Tools ->Input and Output -> Embed Manifest changed Yes To No but it's …

Member Avatar for Zssffssz
0
91
Member Avatar for Zvjezdan23

Good evening all. I have a quick quick problem in my code. The build is successful but my debug shows up the errors: First-chance exception at 0x013c43e6 in week2_project1_gamephysics.exe: 0xC0000005: Access violation writing location 0xcccccccc. Unhandled exception at 0x013c43e6 in week2_project1_gamephysics.exe: 0xC0000005: Access violation writing location 0xcccccccc. The program '[9888] …

Member Avatar for mrnutty
0
326
Member Avatar for d4kkon

This is a ridiculously simple function that I just can not seem to get to work. I am getting a segmentation fault error for this every time I run it. [code] // LargestUsingPointers: receives an n-element integer array and returns // a pointer to the largest element; the function uses …

Member Avatar for mike_2000_17
0
217
Member Avatar for doomsday1216

I was recently creating a program and trying to convert a string to an int (similarly to Integer.parseInt(x) in java) and wasn't sure if there was a c++ equivalent that i could use?

Member Avatar for mike_2000_17
0
276
Member Avatar for sergent

I don't get why ISO don't include VLAs in C++ standard. C++ is supposed to be a C extension, and C99 clearly supports VLAs. It is not hard to implement and does not break any existing C++ code. It is useful for beginners, who do not yet know pointers, and …

Member Avatar for mike_2000_17
0
212
Member Avatar for newguy101

I have most of my code written but I need some help with a part of it, I need to get in one more variable and not positive how to go about it. I need to enter I as a variable for Industrial use: $1000.00 is usage does not exceed …

Member Avatar for Taywin
0
983
Member Avatar for Jennifer84

Hello I have a problem to convert a String to double. I use the below code but the messageBox show 11,07 with a Comma(",") instead of a dot(".") I beleive this depends on any regional settings on the computer. On my other computer I get the result "11.07" which is …

Member Avatar for James19142
0
180
Member Avatar for may4life

Hi guys, I'm quite new to C++, I have just recently gone through 3/4 of SAMS teach yourself C++ in 21 days and I am hoping to start programming my first object-oriented game. I have created a few games in the past (you can check them out on my site …

Member Avatar for Serapth
0
2K
Member Avatar for ntrncx

i do an exercise and i have 2 questions. the exercise is to take an array example from my c++ book and make it template. for start my code is this: [CODE]#include <iostream> #include <iomanip> #include <cstdlib> #ifndef ARRAY_H #define ARRAY_H using namespace std; template<typename T,int elements> class Array { …

Member Avatar for ntrncx
0
155
Member Avatar for nickyevil

um, I'm using Turbo C++ IDE with the blue screen thingy. but it won't run. i mean, whenever i try to run it to show output, it says "Error not an exe FILENAME.LIB" um, im kinda new at this, i just need it for school. how do i fix it?...:'( …

Member Avatar for elmonko
0
175
Member Avatar for Adnan671

It pretty much works fine...except for the fact that it wont output the total amount of withdrawals and deposits. I have no idea how to make it do that. Can anyone help? [CODE]#include <iostream> using namespace std; float userInput() { float balance; cout << "Please enter your current checkbook balance..." …

Member Avatar for Clinton Portis
0
292
Member Avatar for TArrington21

Having trouble trying to read characters from a file into a 2D array. I know this topic has been discussed before but your help will be greatly appreciated. I know there is more efficient ways of writing the entire code but im not that familiar with programing. Any suggestions are …

Member Avatar for TArrington21
0
129
Member Avatar for davidrgarber

In the code below, when I try to output out_phrase_char, I get a message that says "The Debugger has exited due to signal 10 (SIGBUS).The Debugger has exited due to signal 10 (SIGBUS)." Please help me as soon as possible. This is due at 11:59pm. [CODE]// classes example #include <iostream> …

Member Avatar for VernonDozier
0
279
Member Avatar for s_r_k
Member Avatar for Stefano Mtangoo

Hi, Is there a way I can access the Exchange Mails/Calendars/Addressbook without .NET or non cross platform thing? I want to access them with C++ but on both MS and Linux I was looking at EWS but it seems it is tied to MS and .NET Please share with me …

Member Avatar for Stefano Mtangoo
0
170
Member Avatar for Jsplinter

Any idea why declaring a const int inside a data member of a class would cause error C2582: 'operator =' function is unavailable in 'CMyClass'? There is a lot going on in CMyClass and I don't know where to start looking for the error. I am using the default operator= …

Member Avatar for mike_2000_17
0
591
Member Avatar for Student no.1

Hey all im a beginner in c++. Ive written this programme and ive tried to make a calculator using switch statement but its not working like it should.I would be very thankful if u point out whats wrong with it. [CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); float x,y; int choice; …

Member Avatar for Student no.1
0
275
Member Avatar for mazdasa

sorry.. i just wanna ask about the comment for this coding so that I can easily understand how this coding works. can anyone helps me to put the comments on it? [CODE] // array of structures #include <iostream> #include <string> #include <sstream> using namespace std; #define N_MOVIES 3 struct movies_t …

Member Avatar for MonsieurPointer
0
104
Member Avatar for Zssffssz

Ok I was reading a book on C++09 and saw this vareable auto that determins what kind of vareable it is. When I try to use it this comes up : "auto will change c++x09 plesase remove it" I did the settings stuff and know I have 09 but how …

Member Avatar for Narue
0
183
Member Avatar for sunn shine

im studying recursive algos... teacher gave us assignment to write a recursive algo for the tower of honai............. what is TOWER OF HONAI????? :'(

Member Avatar for Fbody
0
147
Member Avatar for Nakeo

So i got my code to compile with no errors but when i try to run it i get a segmentation fault and i am honestly clueless as to why. Any help would be greatly appreciated. [CODE] #include <stdio.h> #include <iostream> #include <stdlib.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include …

Member Avatar for Nakeo
0
175
Member Avatar for sunn shine
Member Avatar for ashanu

I am new to C++ coding. I want to know how hash_map and list can work together. My requirement is: I have a structure with address elements, name My hash key should be name of address object. Using the key I should find out structure. I have dynamic list for …

Member Avatar for sundip
0
182
Member Avatar for Mehwish Shaikh

Can anyone tell me what this following statement means in C++..[B] return (tos==0?1:0)[/B] where tos is a variable.. Thanks..!!

Member Avatar for peter_budo
0
311
Member Avatar for champu8

[CODE]#include<iostream> using namespace std; int main() { int *number=new int[1000]; int c=0; int i=0; cout<<"Enter no sir\n"; cin>>number[i]; while(number[i]>0) { number[i]/=10; c++; } cout<<"\n\n"<<"TOTAL NO OF DIGITS = "<<c; delete[]number; return 0; } [/CODE]

Member Avatar for champu8
0
115
Member Avatar for johnnyboyslim

I have a two dimensional array that needs to be loaded from a data file that contains last names and phone numbers and then I need to load another array with the addresses of those elements in the array. Is there a certain way to load a phone number since …

Member Avatar for johnnyboyslim
0
195
Member Avatar for b3hr0uz

I have been working on this code for a while and for some reason I can't figure out why it won't compile I get a lot of errors. [code] #include "rational.h" Rational::Rational () { _p = 0; _q = 1; } Rational::Rational (long P, long Q ) { if ( …

Member Avatar for b3hr0uz
0
333

The End.