Beginners - November 2013 (Page 56)

by aish96
"does not name a type" error for a file
 
The following code gives me a error that says "error: 'afile' does not name a type" #include<iostream> #include<fstream> #include<conio.h> #include<s...
[2 replies] Last: yes! that worked! thanks :D (by aish96)
Help with my output
 
I need this program to out put the correct number of answers each person had. I'm unsure where I'm going wrong. Any help would be great! My output is: *******...
[8 replies] Last: Correct. I just don't know why I'm not getting my correct number to ou... (by bhenlee)
Any book for beginner to read?
 
Write your question here. I've been reading the c++ programming language(4th) for half a year,now i am looking for something new to learn,although there are lo...
[1 reply] : C++ Primer 5th Edition. (by Uk Marine)
Need help with segmentation fault
 
Hi everybody! I'm a real beginner in programming, because I started classes one month ago at the university; I've got a problem with a really simple exercise wi...
[2 replies] Last: Thank u for the tip..I forgot the dynamic allocation..a real shame >.< (by Micaela)
average of seven numbers
 
Write your question here. hi :) i am new in beginners,.,.i need help,.,i am confused in cin and cout,.,.,i mean where they will be used in what condition,.,.,...
[6 replies] Last: ok,.,.,i am trying (by white beauty)
HELP!!! C++
 
Hi, all! :) HELP, I need help.. So- my task: I have to enter 5 different words in my c++ program, then define the length and THEN output those words (fr...
[1 reply] : Duplicate thread here: http://www.cplusplus.com/forum/general/116310/ (by Catfish4)
by enemy
aa and bb ot declalred???
 
Hello! Please why do I get the error that aa and bb are not declared? Aren't they? Many thanks! for (int y=0;y<5;y++){ int a8=rand()%10; int b8=r...
[1 reply] : Scope. You have essentially: { int aa = 7; } int fu = aa; // error... (by keskiverto)
array problem
 
Hi everyone.My code is simulation of heat flow in a square plate ,using the method of finite differences.At the beginning plate in each node has a temperature o...
[2 replies] Last: Omg, what a HUGE Mistake I made! THX God for ppl like You!! Now it's a... (by martin619)
by wolfv
vector of pointers crashes
 
The first example crashed, the last two examples work fine. The first example has vector of pointer to a derived object. Why does it crash? #include <io...
[6 replies] Last: > My thinking was that, since A1::funcA() is not declared virtual, > ... (by JLBorges)
by enemy
random number always the same???
 
Hello! When I made program with: int x=rand(); it is always generating the same nnumber for the same variable. It is devcpp compiler. What am I supposed ...
[7 replies] Last: i dont know how to fix any of this because im still new myself but her... (by Tristan101)
stl list of pointers
 
Can any one please tell me why i get this error. Is this not possible? Bool operator==(const Master::ClientInfo* clientInfo, const U32& clientId) “e...
[1 reply] : http://stackoverflow.com/questions/7493932/what-causes-c-compiler-erro... (by Catfish4)
New Programmer_C++_Possible Problem with one-dimensional arrays(Dynamic?)
 
I've built a program which creates an array and ultimately changes the amount of elements available before performing some mathematical calculations. The pro...
[2 replies] Last: 1. Why does my program run, but crash upon termination in the origin... (by Chervil)
Stack Help
 
Hi. This is a homework direction. I am not understanding this part... "In designing the data structure, you may assume that the stack elements are integers i...
[5 replies] Last: Here is the entire directions. Your assignment is to re-implement the... (by sethman410)
How to readline() from file, kind of FILE
 
How to read a line? char* file_name = (char*)"input.txt"; FILE* f = fopen(file_name, "r");
[1 reply] : fgets http://www.cplusplus.com/reference/cstdio/fgets/ (by Chervil)
System()
 
Ive been reading around this forum and noticing everyone saying system commands are bad so is there any way on windows to clear your screen without using system...
[2 replies] Last: > everyone saying system commands are bad Not every one. There is not... (by JLBorges)
H:\CompSci\classroom management\ClassRooms.cpp|7|error: call of overloaded 'ClassRoom(int&)' is ambiguous
 
I am working on a homework assignment involving classes and objects and I cannot seem to get it to compile. I keep getting this error. And this is the segment o...
[8 replies] Last: In your ClassRooms.cpp: [code firstline=7]rooms = new ClassRoom(nrooms... (by long double main)
Text Based RPG: Status Effects?
 
Hello fellow programmers! I'm a newbie here. I've been learning to code for the past year. I've really learned a lot from reading forums like these to answer...
[10 replies] Last: Hmm... For this status effect issue, it could be recommended that you ... (by Ispil)
Concordance
 
If somebody would put me in the right direction with this problem, I would greatly appreciate it, thank you. I don't know where to begin with this, Please help!...
[4 replies] Last: Here's what I did (note that this is probably not the most efficient a... (by long double main)
by mattho
Program.exe
 
The input numbers I put in does not work with instead it shows " the pointed number?(I think that's what it is called) versus my actual input. and I also get pr...
[no replies]
Sorting through a vector.
 
Hey forum I am trying to create a function that searches through a vector to find a name. I want to use a loop to iterate through the vector then stop and displ...
[1 reply] : remove std:: prefix if you declared using namespace std; , and replac... (by nvrmnd)
November 2013 Pages: 1... 5455565758... 80
  Archived months: [oct2013] [dec2013]

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