Beginners - May 2011 (Page 39)

Stuck on Infinite Loop
 
Basically, once the do while's start, I am stuck in an infinite loop and I do not know what is going on. Basically, this program is for processing CPU "jobs". I...
[1 reply] : I know the loop is in the do while. For some reason, the timeLeft nev... (by ne555)
by Drue
Error!!!
 
I don't understand this error message. Can someone please help. G:\Flash drive\C++ Programs\Drue Made\Read a text file\main.cpp|105|error: no matching func...
[1 reply] : open doesn't accept a std::string as an argument. It takes a const ch... (by PanGalactic)
Finding averages of columns and rows from an array.
 
Hi, very new to C++, am trying to find averages for columns and rows in an array which has been input from a txt file. Any help is appreciated.Thanks The tex...
[no replies]
two dimensional arrays!
 
Hi, if I have numbers in 9X9 board/grid , the choice is to user whether to bring the numbers from a file or enter his numbers. Then the program shou...
[16 replies] Last: , thanks It works If I want to check each column and row to contain... (by Thuraya)
Is this function wrong? please ^^
 
please, i have looked everywhere. is this function ok? #include <string.h> int contains(char const * * verse ){ if(strstr(verse,"Baobab")){ ...
[2 replies] Last: thanks for answer ^^ that variable is defined with double pointer. c... (by Bot0016)
File Creating and Reading Program.
 
I am suppost to make this for my class and i need help.. This is what i have so far i am not currently working on read files yet but writing files and i am havi...
[4 replies] Last: "conio" <- Like that is what the CodeBlocks compiler uses. It take... (by Drue)
Immediate Segfault
 
Hey guys, I'm trying to start a new project using C++ (in eclipse 3.6.2 with CDT). I have another c++ project that is working just fine, but I created a new...
[6 replies] Last: Right, well I copied the source code, created a new project, copied th... (by chisser98)
Palindrome program
 
I'm writing a program to check whether or not an integer is a palindrome or not. (whether or not it can be read both ways, e.g 123454321 is a palindrome, 12345 ...
[1 reply] : pow is a C function. In C++, due to the problems that occur with fra... (by personak)
displaying in descending order.
 
#include <iostream> #include <algorithm> #include <vector> using namespace std; bool myfunction (int i,int j) { return (i<j); } struct myclass { ...
[2 replies] Last: If you want to display it in descending order but don't necessarily ca... (by Albatross)
Operator overloading on non-objects?
 
Is it possible to use operator overloads on non-objects (like typedef-ed arrays and floats)?
[no replies]
need help with this question
 
This is one of the question I found on my friend's facebook. Write a C++ program that converts Fahrenheit to Celsius temperature in increments of 5 degrees....
[1 reply] : Duplicate thread from the one here: http://cplusplus.com/forum/general... (by Albatross)
by Drue
Help Please. Error Message.
 
I'm making the password program thing (or at least editing it). I had some good help from people, the last post I made. They taught me some new good commands, ...
[2 replies] Last: I've got the errors down to this: G:\Flash drive\C++ Programs\Drue M... (by Drue)
[console] 0+0 = NULL not 0?
 
hi, I have little problem, title says all, here is code: void player::CreateItem() { int lines = 0; bool ItemFound = false; string line; string sav...
[8 replies] Last: ahh, thanks, I really didn't noticed that :P (by mekkatorqu)
input and output files
 
I am writing a program that prompts the user to enter a file to input to and then enter a file to output to. echoing the users choices back on the screen. then...
[1 reply] : you are just opening the files successfully and showing their name on ... (by mahinkhan22)
Vector's build in functions
 
#include<iostream> #include<vector> using namespace std; template <typename T> void printVector(vector<T> v1) { for (int i = 0; i<v1.size(); i++) ...
[6 replies] Last: ?? anyone can help m ehere?> (by jimmy5023)
Help
 
Started learning c++ yesterday using the tutorials on this site.firstly do you think the tutorials on here are suitable for complete beginners? Finding it hard ...
[6 replies] Last: simply take a c++ book which seems easy to u for the basics..with the ... (by nomijigr)
by bbcc
variables in c++
 
Hello every body, I am a newbie to c++ and I am wondering about the differences of introducing variables in these two ways: 1. double a 2. double a(0) My ...
[3 replies] Last: Dear Buddy, Thank's a lot for your help. I still have problem in co... (by bbcc)
by rvevea
2d char array from file
 
What I'm trying to do: I'd like to fill a 2d char array with words read in from an ifstream. I'd like to fill the array until the loop reads a '\n' and the...
[1 reply] : Try this: char array ; ifstream file("file.txt"); for (int y = 0;... (by ModShop)
enumerations
 
i want to use enumerations and want to show the exact enumerators as output instead of their integer values. #include<iostream.h> #include<conio.h> enum et...
[6 replies] Last: @framework...that was helpful..thanks (by nomijigr)
Finding Averages of columns and rows in an array?
 
Hi, very new to C++, am trying to find averages for columns and rows in an array which has been input from a txt file. Any help is appreciated.Thanks The tex...
[1 reply] : i am sorry but your code is unreadable ...try posting again (by mahinkhan22)
May 2011 Pages: 1... 3738394041... 48
  Archived months: [apr2011] [jun2011]

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