Beginners - February 2011 (Page 39)

Conway's The Game of Life
 
Hello everyone, I finished writing the code for Conway's game of life. I used 0s as empty lives and 1s as cells with lives. I'm not sure If it's correct or not ...
[3 replies] Last: A few thoughts: Your variable names are not accurate. rows and cols s... (by rocketboy9000)
by MrKen
Opening multiple .txt files from unspecified paths
 
I'm having difficulty with my current project. I'm trying to write a program to browse movies on my harddrive through a .txt i have in each movie's folder. C...
[2 replies] Last: The way I have is currently set up is that each one has the netflix su... (by MrKen)
Sorting a Linked List
 
Can someone help me point to the next node, so that my output will show the two sorted nodes. Right now it is only displaying one. #include <iostream> usin...
[10 replies] Last: Everything is running. I just need to know how to make the other nodes... (by tlove65219)
3d char array problem
 
I have to write a code to build an array like this: 1,6 1,0 2,3 3,4 5,6 4,5 7,6 1,2 9,7 Where the numbers are coordinates which have to be "separated" w...
[1 reply] : I've found it myself, I simply put ' instead of " for anybody who may... (by MessMyHair)
by ts1000
problem with code dont know whats wrong with the syntex
 
#include <iostream> #include <cmath> int main() { using namespace std; int rows, columns; char thechar; cout << "how m...
[2 replies] Last: thanks for some unknown reason i thought that was supposed to be there... (by ts1000)
Array of Strings
 
I know if i did int code ; code = 12 cout<<code ; I would get "12" printed. But is there a way to get a string into an array? for instance...: ...
[1 reply] : Yeah: char code = "Zero"; for (int i=0;i<5;i++) cout << co... (by MessMyHair)
by ts1000
problem with my input and output
 
Hello, Im using dev C++(i dont know if it matters or not) and every once in a while ill get this bug in the code with my input and output(cin/cout) i have the l...
[2 replies] Last: no i made the variable. but i added an extra end line on the end and i... (by ts1000)
by ritz
Problem in making my grid
 
Hi i have have some how made a grid using linked list in c++ instead of input data iam just incrementing size to know whether nodes are made or not but i dont k...
[1 reply] : main must return int. The Console is a Terrible Medium for Games ht... (by ne555)
RPN Expression Evaluator ...segmentation Fault
 
The code in its current form works just fine. But whenever I enable the commented out portion for the unary operators there is a segmentation fault at runtime. ...
[1 reply] : if (in>>opt) { opn = stack.back(); ... (by ne555)
String woes
 
I've been designing a program that takes two user-entered words, removes the characters that are in both and then outputs the result. I'm not sure where exactly...
[4 replies] Last: So i have this at the moment, and it's almost working but it seems to ... (by cormac94)
printing out data to many different files (1,2)
 
Hallo, I'm a total newbie in the C++ world. Started to learn it a month ago. So far I've been using Fortran, where to print out some data to many different out...
[26 replies] Last: Now it works, thank you very much! What if I want to print somethin... (by gizzmo1)
by bzb95
How is this for a first program?
 
http://www.youtube.com/watch?v=NsUl5K_WDx0 normally i would like to include the 200 or so lines of code but i seem to have misplaced them so try to judge off...
[no replies]
by wtf
Program crashing during getline()
 
I have the following code: cin.clear(); clearcin(cin); getline(cin, plain); cout<<"exiting.\n" << endl; exit(1004); I have 3 const cha...
[4 replies] Last: edit: i tried it again and this time the same thing happened, except t... (by wtf)
Payroll program with functions
 
Hi all, I am currently taking my first course in C++, I enjoy the course but do find it difficult at times. I am currently having a problem with this current p...
[1 reply] : [co de] "Put your code inside code tags" [/co de] I guess the pro... (by ne555)
program to implement a game
 
I am trying to learn C++ and this is the first program I wrote besides "Hello World". I really need help :( with almost all of it but I am completely confused o...
[3 replies] Last: Did you miss the part right before that? Generate a random number to d... (by Zhuge)
by acorn
Boost Article on boost::asio
 
this article was posted a awhile ago but i just wanted to post it here for folks interested in boost cross platform libs. This article shows code examples of bo...
[no replies]
by holtaf
read image
 
Hi all; I want to read pixel by pixel an image,then put that into another image.Can I? I don't know which type should i use .
[1 reply] : Sure. You'll need an image library such as FreeImage or DevIL. (by Athar)
Return String from a Function!!
 
Hi, I often see that people use code like this even in some open source(openLDAP) char* func() { return "Some String"; } Is it safe to write code like...
[7 replies] Last: Hi, If you write something like return "Some String"; in y... (by athachil)
std::string problems.
 
I can't seem to get get working with strings. Why can't I use infile.get(row, columns);? #include<iostream> #include<fstream> #include<vector> #include<s...
[4 replies] Last: Thanks, for some reason I thought string memory was automatically all... (by filipe)
by acorn
4 books recovered from the dust
 
can I get an opinion on these books. The stl is to advanced for me so I will hold on to it but what about the others. Ive been through full c++ books before jus...
[5 replies] Last: Other than Effective C++, there really isn't a prerequisite for Effect... (by moorecm)
February 2011 Pages: 1... 3738394041... 43
  Archived months: [jan2011] [mar2011]

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