49,766 Topics

Member Avatar for
Member Avatar for k3na26

Hi, I kind of need help with my homework. I already have a code but it doesn't seem to work. I'm confused about the parameters I put. I don't know which part I actually messed up. I don't know what else to do. Thank you so much in advance for …

Member Avatar for satabios
0
3K
Member Avatar for starletcharmed

Hi, can anyone help me with my code? Im trying to reverse my string using stack... but when it compiles and put in a string and press enter... nothing happens... Any suggestions? [CODE]#include <iostream> #include<stack> #include<string> using namespace std; int main() { stack <string> s; string a; cout << "Enter: …

Member Avatar for d_a_y_o
2
4K
Member Avatar for Carc369

How do you do that? This code reads in the book. It reads in fine. Now I just have to alter it so it doesn't read in repeat words in the book. How would I do that? void readInStory(){ ifstream inStream; // declare an input stream for my use int …

Member Avatar for vijayan121
0
698
Member Avatar for Carc369

I've tried cin >> userInput; and it stops reading the word after it hits a space. but then I tried cin.get and it just skips all the other cins. Then I tried cin.getline and it skips over the userInput cin and goes right to the next cin (cin >> direction). …

Member Avatar for vijayan121
0
567
Member Avatar for Elixir42

Hi I am getting some strange results from my framerate calculation. It seems to have a mind of its own. It wants to stay at about 60 fps even if I set it to 80fps. It does run though if I set it to 50fps. I am getting smooth movement …

0
78
Member Avatar for ritchonson101

Hi all...I really need someones help and real fast. I am trying to read a textfile with multiple columns that are each separated by a #. eg: Inventory.txt Nokia Lumia 610#Nokia#Touch#8GB#8#Tango OS#3899.00# Blackberry Curve 9380#Blackberry#Both#1GB#8#Blackberry OS 7#3499.00# Samsung Galaxy S3#Samsung#Touch#32GB#8#Andriod#6999.00# iPhone 4S#Apple#Touch#16GB#8#IOS#7899.00# I am trying to save each bit of …

Member Avatar for mLearning
0
163
Member Avatar for s1994

I'm missing something obvious here I think I'm trying to check for the existence of a file, and I hear this is possible with ifstream's .good property. Not even managing to get that far. Forgive me on this, I'm new to C++ Created a new VS console application. I then …

Member Avatar for mLearning
0
1K
Member Avatar for ahsan2132

iam having my end term oops symester,iam much intresting in doing the project of intercom chat systrm via intranet,iam in in 3rd symester and going to get familier with java with in somedays days,moreever iam much familier with c++,so do you thing i could do this project as being java's …

Member Avatar for KaeLL
0
163
Member Avatar for roland.sikk.1

this error window is all the time on my desktop, closing it it comes back immideately. how can I solve this error problem`? thank You.

Member Avatar for KaeLL
0
64
Member Avatar for chris.causey.37

This code should read in some data from sector zero off of a USB flash drive, then print out some of the data. However when I run it there is nothing that was put in the buffer. int _tmain(int argc, _TCHAR* argv[]) { int ReadSect = 0; char diskname[60]; sprintf_s(diskname, …

Member Avatar for dx9_programmer
0
310
Member Avatar for anjalirwt

I need urgent help in my project as i am getting exception 13 error & that also at such a crucial time when i have to submit the project day after tomorrow...please help and tell the mistakes and their will be some mistakes. the source code is as follows: #include<fstream.h> …

Member Avatar for KaeLL
-1
147
Member Avatar for MianJahanzaibYousaf

* ** *** **** ***** for input=5 How i can print this by using only one for loop with if else statement.

Member Avatar for deceptikon
0
106
Member Avatar for vicky30312

I'm still stuck on my number guessing game. (The program guesses the number the user inputs)I have wokred out some kinks but i am stuck again. I have a bunch of stuff but i am focused right now on getting the program past asking if the first guess of 50 …

Member Avatar for vicky30312
0
159
Member Avatar for Instinctlol

I am studying performance analysis and character instance gets brought up a lot. I am unclear to what this means. It also talks about functions of instance characteristics. Can someone elaborate?

Member Avatar for vijayan121
0
2K
Member Avatar for 330xi

I have an usb-camera with its drivers and dll with some funtions to use this camera in my solutions. I want to use it in any wide-spread applications, to be able just to choose and use it in Skype, for instance. So. I want to develop some soft that will …

Member Avatar for 330xi
0
111
Member Avatar for christinetom

Is it possible to set Environmental variables other than the ones set by default. I am trying to build an application though it keeps on telling me that it needs a file from another directory which doesn't seem to be in the include path. I am using a Mingw compiler …

Member Avatar for christinetom
0
105
Member Avatar for poloblue

Good Afternoon, I'm having a little trouble with a class. The error that I'm getting is: a nonstatic member reference must be relative to a specific object in the function void B::printStatic() { cout<<"size is "<<size<<endl; Here is the code that I have. #include <iomanip> #include <iostream> #include <string> using …

Member Avatar for poloblue
0
2K
Member Avatar for highonbikes

I have this assignment to make an infix calculator I think I have all the logical things figured out, but I am having trouble converting values. the return is a double, but the read in is a string and outputting as a double, I know that there is the difference …

Member Avatar for Lerner
0
838
Member Avatar for trantran

I am thinking of writing a path_name_class that would be easily adaptable to any file system, but I have run in this difficulty: it appears that some file systems allow **ALL unicode except null** characters in their directory entry (this is the case for example for exfat and many others …

Member Avatar for trantran
0
192
Member Avatar for sbrohee

Dear all, I am certainly not an expert in C++ development but after some time, I had some code running and compiling for a bio-informatics tool. As always in Science, I changed my area of research of a while and when I came back to my tool, I had changed …

Member Avatar for sbrohee
0
2K
Member Avatar for rajat.sethi93

#include<iostream.h> #include<conio.h> #include<string.h> class X {public: int a[50],n; char b[20]; char name[20]; void input() { cout<<"Enter the limit upto which you want to enter "; cin>>n; cout<<"Enter the numbers "; for(int i=0;i<n;i++) { cin>>a[i]; } cout<<"\n enter the string"; cin>>b; } void large() { int c; c=a[0]; for(int i=1;i<n;i++) { …

Member Avatar for NathanOliver
0
187
Member Avatar for Eclip7e

Hello everyone, I want to implement Kruskal algorithm for finding minimum spanning tree in Adjacency Matrix for my program. So I want to write method Graph& getMinSpanningTree() . I have 2 classes: class Graph { public: /* Adds an edge between given vertices. Third argument is a weight of an …

Member Avatar for Eclip7e
0
2K
Member Avatar for Jsplinter

I understand how to write a function to loop through a vector<double> and calculate the mean and standard deviation of its values, but I was wondering if there is a library which I could simply #include<> and then just call a function to compute such values.

Member Avatar for Jsplinter
0
265
Member Avatar for cacadi

So i am doing a program that opens a file that contains grades and shows the average, total, etc.. But at the end I am supposed to make a histogram that would look something like this A= * * B= * * * C= * * * * * * …

Member Avatar for rstralberg
0
462
Member Avatar for yeliabsamoht

Hello New here I am looking for some information on Splay Trees. I can't find any c++ source code on splay trees. any idea on where to look

Member Avatar for cedricve
0
178
Member Avatar for marcel.gybels

Improper use of typedef 'TManagerProc' struct TManagerData { public: // Card is inserted callback procedure TManagerProc CardInserted; // Card was activated callback procedure TManagerProc CardActive; // Card was removed from the reader callback procedure TManagerProc CardRemoved; // Invalid card was inserted into the reader callback procedure TManagerProc CardInvalid; // There …

Member Avatar for marcel.gybels
0
664
Member Avatar for SphirosOkelli

I have been working on a program for class- yes this is homework. I have completed the program, it runs- yay newbie me- but it does not run correctly. I am working with functions, wether referenced or not, and I have passed several values to a function inorder to calculate …

Member Avatar for SphirosOkelli
0
108
Member Avatar for ktsangop

Hello everyone. As the title suggests i need to implement a type of timer based function inside a UI Thread in MFC. Although CWinThread is a UI Thread and has a message pump it does not have a Timer function as CWnd::OnTimer Is there any way i can implement a …

Member Avatar for ktsangop
0
763
Member Avatar for phorce

Hello, So basically, I am trying to create a system based on the Singleton Pattern and I'm confused. If I have an Animal class, as well as a Cat class which is derived from Animal and then using a Singleton class will create a single object of which-ever class has …

Member Avatar for L7Sqr
0
225
Member Avatar for manuel.sabu

case 4: { cout<<"Enter the word you want to delete: "; gets(b); f1.open("anotherf.txt",ios::in); f2.open("tempf.txt",ios::out); while(!f1.eof()) { f1>>a; i++; if(strcmp(a,b)==0) { j=i; } } i=0; while(!f1.eof()) { if(i!=j) { f1>>a; f2<<a; } i++; } f1.close(); f2.close(); f2.open("tempf.txt",ios::in); f2.seekg(0); f1.open("anotherf.txt",ios::out); while(!f2.eof()) { f2>>a; f1<<a; } goto menu; } I am trying to …

Member Avatar for NathanOliver
0
165

The End.