49,757 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 { … | |
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?...:'( … | |
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..." … | |
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 … | |
| 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> … |
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 … | |
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= … | |
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; … | |
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 … | |
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 … | |
im studying recursive algos... teacher gave us assignment to write a recursive algo for the tower of honai............. what is TOWER OF HONAI????? :'( | |
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 … | |
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 … | |
Can anyone tell me what this following statement means in C++..[B] return (tos==0?1:0)[/B] where tos is a variable.. Thanks..!! | |
[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] | |
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 … | |
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 ( … |
The End.