Beginners - April 2012 (Page 53)

by TehLS
Cant solve this simple error!
 
hello everyone.. i just registered to this forum and as you can see i am a beginner.. this is my code.. #include <stdio.h> #include <sys/types.h> #inc...
[1 reply] : It seems that the code is valid. Maybe the problem is hidden in header... (by vlad from moscow)
by cecc8
Hi (1,2)
 
i am a quite new and self tough of c++ and i have the following problem. i am building a class to use a vector and store some value from a txt file(notepad). ...
[28 replies] Last: yes ok that is what i was looking for so basically whit ss you set a f... (by cecc8)
by ozone
getting confused with dereference n pointers
 
Helo pls i am having a serious headache with pointers and dereference operator. if explain with example will be appreciated.
[3 replies] Last: Thanks guys am really grateful (by ozone)
Changing characters in a File to all uppercase
 
I have been working to make all the characters in my file convert to all upper case. I have looked all over and asked people and I thought this should work but ...
[5 replies] Last: bool uppercase(){ try{ inputfile.open(location here); outputfile.ope... (by ui uiho)
Headers are driving me crazy.
 
I have no idea why this isn't working, although I am new to this. #include <iostream> #include <stdafx> using namespace std; void main() { do...
[5 replies] Last: You're a life saver. Thanks (by AlitCandle)
StrTk in MFC
 
Hi, I'm trying to include the StrTk library (strtk.hpp) in a MFC application in Visual C++ 10.0, but it won't compile - it gives me a C1506 unrecoverable blocki...
[no replies]
Operator assignment overloading with dynamically allocated array
 
I'm writing a class that contains a array allocated dynamic of floats. I need to implement an assignment operator that is overloaded to assign the contents of o...
[7 replies] Last: you need a destructor in c++ when doing this. also might i suggest vec... (by ui uiho)
Caesars Cipher
 
So for my assignment, I have created two files, the plain text, and key. What I need help on is figuring out where to insert the following : offset = (KeyL...
[1 reply] : the actually ceasar shift is +3 to each char. are you streaming from f... (by ui uiho)
Swapping a nested For statement with a nested While statement
 
I have a homework problem from my Intro to C++ class that I cannot get my head around. I am given a specific IPO chart and code that works with a nested For sta...
[2 replies] Last: So I should try: #include <iostream> #include <iomanip> #include... (by Texcuda)
How to use Template class with list
 
I am stuck on how to approach this assignment. I need to create a template class that incorporates The STL list into a sorted_bag. Below is most of what I have ...
[1 reply] : I need help with an approach to using iterators with this as well!! I ... (by glickmac)
Can seekp and seekg be interchangable?
 
I'm learning about reading and writing to a random access file in my C++ class. I noticed that seekp and seekg do the same things respectively. So i tried t...
[2 replies] Last: cool thanks. (by jokerfwb)
Simple input validation: I dont understand this code by Stroustrup
 
From his 2009 book. The problem is to get an int input from the console in range [1:10] cout "Please enter an integer in the range 1 to 10 inclusive: \n"; in...
[6 replies] Last: what would go wrong if lines 14-17 were not present. That would be... (by DexterMorgan)
getline discarding eof
 
Reading lines from file using an eofbit -controlled while loop. Last line does not have an eol ( newline ) character, so getline uses the eof in its pl...
[2 replies] Last: Thank you, no more out_of_range error and outputs the way I want it. (by erandall)
Reference and Pointer, the same thing?
 
Hi guys, I'm a novice C++ programming taking my second term of programming in university. My teacher claims that pointers and references are equivalent. For exa...
[4 replies] Last: Sad, but common problem. You're going to have to learn your teacher's ... (by Cubbi)
Encrypting and decrypting
 
What does the c++ code look like for trying to use a plain.txt and a key.txt file to do encryption and decryption? When I look at this code: string orig...
[1 reply] : Here is a fairly simple sample of reading data: #include <iostream>... (by bcrawford)
Constructor with array as argument
 
Hi, Quick question. If I wanted to make a constructor that takes 2 arguments, an array of ints to copy into a vector and another int that tells me how many e...
[4 replies] Last: > If you're taking in an array, you don't need an extra size argument,... (by JLBorges)
40 line code with errors on line 148?
 
Not sure why it won't compile. Usually gives me errors and highlights the lines that need work. When I try to compile it does not highlight anything. Just pr...
[10 replies] Last: The code I posted earlier ran just fine using DevC++. #include <cst... (by bcrawford)
okay the arrays are kicking my ass..
 
this progam is a multi demison array.. and i am to calculate the temperature distribution.. it works but idk if i did this right i have alot of degrees and ...
[2 replies] Last: i have numbers that go in to it.. the top part of the thing the temp... (by Glenda Hayes)
fibonacci
 
I have been trying to iron out these three errors for a while now and i am sure its something simple if someone could help me out with would be amazing 1>...
[1 reply] : I put a int before the fibonacci on line 70 and removed the parameters... (by bluescreen)
I have undeclared variables please read
 
basically my tax1-6 variables will not work#include <iostream> #include <string> #include <iomanip> using namespace std; const double FederalIncomeTax = 0.15; ...
[1 reply] : And the error states that tax 1-6 are undeclared what do i do to fix ... (by Athar)
April 2012 Pages: 1... 5152535455... 66
  Archived months: [mar2012] [may2012]

This is an archived page. To post a new message, go to the current page.