Beginners - March 2012 (Page 36)

Help with my linked list please!
 
Ok, so I have to make a linked list for my school assignment and i can't use the std lib to make it. Im having trouble making it although I understand the conce...
[1 reply] : First things first. Little bit confused as to what you want here. Yo... (by MrHutch)
Boost Iostream reading many files in a folder
 
Hello I'm trying to read a folder for its files using boost iostreams this is my current code typedef ex::container_source<string> ...
[3 replies] Last: If textfolder is a folder in your current directory then use: "./text... (by Stewbond)
Sample of Multidimensional Array
 
Hello Guyz, I just want to share this code that I made. Please feel free to comment. Thanks :D #include <cstdlib> #include <iostream> using namespace...
[3 replies] Last: Thanks for the link sir... i have removed the system("pause"); ... (by csaavedra)
different approach to present code
 
I have to write this function int cppfsm::updateState(int& state, char c) { int inState = state; switch(state){ case start: if(ident_s...
[no replies]
Returning containers from functions (memory issue)
 
Q1. Consider the code snippet int foo(vector<baz> & rick) { int num; vector<baz> local; //process and add stuff to local //process num rick = local...
[8 replies] Last: Thanks! I did not realize I had not understood references!! That exam... (by DexterMorgan)
[Linker error] undefined reference to `binarySearch(int*, int, int)'
 
#include <iostream> #include <fstream> using namespace std; void bubbleSort (int arrayone , double arraytwo ,int x){ bool swapped = true; int j = 0,...
[1 reply] : the "account balance.txt" file contains account number(numbers),name,a... (by andrix10)
Passing Class Objects Into Another Class Object Without Knowledge of the Passed Object
 
I have the following situation: I have 2 classes that are not related to each other. Call these ClassA and ClassB. I have another class. Call it Class1....
[6 replies] Last: Awesome! Thank you! (by skyline01)
by arooj
getline function problem
 
I have this problem with the getline function where the output is clumped together: This program calculates your weight on nine planets: 1 Mercury 2 Venus...
[1 reply] : It seems like there is something still left in the input stream that i... (by georgewashere)
by arooj
getline function problem
 
I have this problem with the getline function where the output is clumped together: This program calculates your weight on nine planets: 1 Mercury 2 Venus...
[7 replies] Last: Visual C++ and GCC handles sync() differently. GCC's sync does not dis... (by Peter87)
Question on transform()
 
For transform(b, e, d, f) Can the destination d be the same as b? Thus making transform have the functionality of List.map() from functional programming langu...
[2 replies] Last: Thanks!!!! (by DexterMorgan)
Tic Tac Toe (Artificial Intelligence)
 
Can any one please help me that how would i do artificial intelligence in tic tac toe game to make computer's turn intelligent?
[8 replies] Last: Seriously, why don't you check out the MiniMax algorithm? Its easy, bu... (by Pravesh Koirala)
Writing a program to handle ticket sales...How do I initialize this multidimensional array of structs?
 
Hi, total fresh n00b to c++ here. I'm trying to solve a problem to handle ticket sales for a show. To represent the seats at the show, I made a 2D array, name...
[1 reply] : Somthing like this ??? #include <iostream> #include <string> #includ... (by Subzero030201)
Loading a 1-D Array
 
I'm not sure what's exactly wrong with this code. We're suppose to open a file and take the numbers from that file and store it into an array, however, if a fi...
[2 replies] Last: Thanks! It seems to have worked...dumb mistake on my part. (by RawrDuy)
BinarySearch and pointers
 
Hi, my problem in this program is that I don't know how to use binary search in this code : #include <iostream> #include <ctime> using namespace std; ...
[no replies]
sizeof
 
Hi everyone. Here's my code. My question is included in the comments: int array ; int*ptr; cout<<sizeof(array); //output is 20, as I expected. ptr=new ...
[13 replies] Last: Okay, I just decided to use Peter87's advice about using the vector cl... (by CJC0117)
Problems in cmath?
 
Building my first real Win32 app, and I ran into like 100 errors in cmath for some reason. I don't even have cmath included, but I opened it anyway and I dont s...
[1 reply] : Nevermind, got it figured out (by ResidentBiscuit)
by Mithz
What is the difference between these two?
 
I have just begun learning c++ and what i have learned online and what i have learned from a book are two different ways to get the same ending product. What ex...
[5 replies] Last: Thanks for the help you were all helpful! (by Mithz)
overloading ostream template trouble
 
I am currently learning about data structures. I haven't had much trouble up until now and I have looked all over the Internet to find why my code is not worki...
[no replies]
array with rand number
 
Hi, I have this assignment I am working on. "Simulate the rolling of five 6-sided dice, storing each roll number in an array. Then: Loop through the array to ...
[3 replies] Last: if statements are a great thing to do, this is a function that will do... (by ui uiho)
Win32 typedef'd types
 
Ok so I've been working my way slowly through learning some Win32. I'm just following MSDN right now, and after a quick search, it looks as if Microsoft has typ...
[5 replies] Last: Eh I actually just did this for (LPCWSTR)"Test Class\0" not givin... (by ResidentBiscuit)
March 2012 Pages: 1... 3435363738... 71
  Archived months: [feb2012] [apr2012]

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