Beginners - May 2014 (Page 11)

Just a query
 
I am learning c++ and i just came over passing by reference topic i created a code to understand the concept #include <iostream> using namespace std; int...
[3 replies] Last: Thank you MiiNiPaa and Softrix (by jksprt0)
Need help with program!
 
I am getting an error every time i check for syntax errors; it states that "expected primary expression before 'double'." which is this line: cout << "Your cur...
[17 replies] Last: #include <iostream> using std::cout; using std::cin; int main ( ) {... (by Yay295)
Nested for loop help
 
This code is killing me. I want to write a code that outputs 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10 11 # include <iostream > using namespace...
[3 replies] Last: Try this loop.I dont have laptop or PC so i havent compiled. but i gue... (by Pter0dactyl)
Categorizing and linking data
 
Hello! I'm trying to figure out how and what to use to categorize information. I also want to link the information so the program knows where the linked info...
[7 replies] Last: OK. This was very helpful. Im going to experiment with this for a bit.... (by morta93)
g++ command line/shared libraries -- some questions
 
I am compiling a program called CCExtractor in Terminal on a Mac. The program is downloaded as source code, and the developer includes this ... g++ -Dfope...
[4 replies] Last: That was a big help! Thanks. I figured out from that what the basic p... (by epstewart)
Simple Image Display
 
I am looking for a line(s) of code to use to display a previously saved image in a window. I am currently working in Microsoft Visual Studio 2010 Express and wo...
[2 replies] Last: Using SFML: // I'm cheating a little with this header -- you nor... (by Disch)
Not Sure What I'm missing.
 
I have been given some code which reads some values from a .txt document. It supposedly was tested on a PC compiler and runs perfectly. However, when I try to r...
[4 replies] Last: @AbstractionAnon , sorry, not refreshing page creeping up on me again... (by Codermik)
by venros
C++ Fstream SEEKg/Getline not working!
 
Hi guys, Im trying to create a change password from file function but my seekg getline for: int pos = tempUser.length() + tempPass.length()+2; // pos ...
[11 replies] Last: k removed app and it now works, but I get why we shouldnt write direct... (by venros)
Sort problem
 
I am writing this program to sort the data and select a median from the information. It is giving me the error of sort is undefined. What would be the correct...
[5 replies] Last: on line 18 size_t size = scores.size(); you calculate the size of th... (by Yanson)
Arrays-PLEASE HELP
 
Hi there I currently have a sample Array(which i have named Arsenal). But i need to change it so i can load bullets and shotgunshells (randomly generated).I h...
[4 replies] Last: @cplubeginner89 I just wanted to point out that you are supposed to b... (by fg109)
Shifting Elements in Array that Keeps History;
 
Say I have a history array of 10 indexes; when I fill the array with values up to the last index {0,1,2,3,4,5,6,7,8,9} and I "keep" updating the array for the l...
[4 replies] Last: Resolved; thank you for the hasty response. So the idea is to fill the... (by MaciejG)
by jise7
Derived class problem! Help
 
Hi, i have a problem with derived class. I can't understand why this code doesn't work: class point { public: point(); point(double ...
[5 replies] Last: Yes, that will work. There are examples here: http://www.cplusplus.... (by AbstractionAnon)
Outputting scores
 
I am trying to figure out why this code just closes the window instead of displaying the results and I am kind of stuck with what I have. Please let me know if...
[1 reply] : http://www.cplusplus.com/forum/beginner/1988/ Once you reach line 6... (by AbstractionAnon)
by tdk93
memory allocation run time error
 
Program crashes after taking 'test' input. This is just a snippet of code. I don't understand why. using namespace std; #define SIZE 2000000000002 int...
[2 replies] Last: Sixteen terabytes? (assuming 8 bytes for each unsigned long long int). (by Chervil)
string function
 
I have no idea on how to do the following: Write a function that takes three strings s, oldVal and newVal. Using iterators, and the insert and erase functions...
[1 reply] : Write a function that takes three strings s, oldVal and newVal void... (by MiiNiPaa)
by dllabs
std::vector<type> slow to write to memory
 
I have a thread (which I will call the background thread) that scans a disk and loads its file names into a std::vector, inside a class called DiskClass. When i...
[5 replies] Last: > I'm wondering why you're using a vector for this? > ... > To me, a s... (by JLBorges)
urgent help pplllllzzzzz!!!
 
create a class student with data members reg no. name and age using inheritance create a class UAFstudents having fields semester ,fee and stipend .enter data f...
[1 reply] : What is your question? If your question is "Will we do your homewor... (by AbstractionAnon)
loadidng array
 
Hi there i am trying to create an array using classes which i have made. Also i want to (load)bullets and shotgunshells into a dynamic array. I'm having issues...
[2 replies] Last: Thank you. (by cplusbeginner89)
What book to learn from?
 
Hello folks, my name is Raymond and I'm new to this forum, well, actually I'm not. I started learning C++ language from this site. Back then, when I was learnin...
[2 replies] Last: Oh, hey! Thanks for the support, I checked the topics and by suffering... (by raymondtfr)
Outputting file data
 
I have two questions with this code here. I can get the file to open and display the numbers one right after the other, I am not sure how to format them so the...
[4 replies] Last: Thanks for your help. (by DEnumber50)
May 2014 Pages: 1... 910111213... 55
  Archived months: [apr2014] [jun2014]

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