49,761 Topics

Member Avatar for
Member Avatar for cppgangster

hi, I am trying to establish a connection between two laptops, as a beginner encountered a problems that are still to be learnt, but still I would like to know. I have two app, first is server on win wista: [CODE] #include "stdafx.h" #include "winsock2.h" #include <string> #include <iostream> //using …

0
131
Member Avatar for valestrom

So I'm making this periodic table application, and spent an hour laying it all out. Perfectly I must add. Now I'm trying to figure out how to get it so when I click a button it opens the new form (Have this done) and replace the value of some labels/textboxes …

Member Avatar for valestrom
0
212
Member Avatar for dineshz

I have a problem with this code. Why this shows random symbols when i give view data ! ?[CODE]#include<iostream> #include<conio.h> #include<windows.h> #include "gotoxy.h" #include<cstdio> #include<cstring> #include<cstdlib> #include<fstream.h> using namespace std; //function declarations void out(char *); void matrix(int,int); class student { public: //class variable declaration in public part int roll,fee,ht,wt; char …

Member Avatar for VernonDozier
0
591
Member Avatar for johnnyboyslim

Why is my program failing to close? These names and phone numbers are what I am trying to load into the array and display. Yaztremski 592-48-1003 Tilden 355-71-8210 Charles 290-65-8817 Balboa 458-12-9834 Watterson 234-98-0023 Jefferson 303-41-5692 Carmichael 392-60-0932 Martin 418-77-0974 Davila 339-89-4475 Jacobs 228-42-0547 Dobbs 219-52-4058 Nastromo 628-79-2516 Rivers 611-69-7045 …

Member Avatar for johnnyboyslim
0
90
Member Avatar for pimpingreen13

Im having a hard time figuring out what is wrong with my program. I need to write a program that looks up a phone number in a file containing a list of names and phone numbers. The user is to input the first name and last name to look up, …

Member Avatar for MonsieurPointer
0
398
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
280
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
984
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
281
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
592
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
276
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

The End.