Beginners - April 2013 (Page 55)

Accessing a string from
 
I am taking a C++ class in which I am suppose to implement a linked list where I insert a node alphabetically by name. I am suppose to create a Winery class wi...
[no replies]
Vectors
 
How would I write loop to initialize each element with the square root of the subscript?
[2 replies] Last: http://www.cplusplus.com/reference/algorithm/generate/ (by keskiverto)
Macro Arguments
 
I would like to know what does the code below do? x = (x++ > y) ? (x+y) : (x-y);
[2 replies] Last: Thank you :) I've got it. (by Eliza0210)
by dima93
How do I find the maximum and minimum element of a two dimensional array? Is my program correct?
 
int main () { int a ; int max,min; for (int i=0;i<4;i++) for (int j=0;j<3;j++) cin>>a ; max=a ; //IS THIS PART CORRECT? OR SHOULD I ASSUME MAX AN...
[2 replies] Last: Thank you :D ! (by dima93)
Problem calling a function
 
Hi, i'm having some problems with my program, i'm learning c++ alone with no help so i think it's normal make some mistakes, i want to do a c++ basic calculator...
[3 replies] Last: then i have to write the if statement to all the options? (by SkyDriver2500)
by zmlink
my heads gonna explode i need to convert this i got like 120 errors can someone do this correctly so i can fix my mistakes..
 
// Pseudocode PLD Chapter 8 #7 pg. 350 // Start // Declarations // num MAXADS = 100 // num adcatcode // num adwords // ...
[9 replies] Last: Line 14.... cout << variable/text cin >> variable You're problem tho... (by closed account 3CXz8vqX)
Exception Handling Question:
 
Hello, I'm practicing Exception Handling, which is fairly new to me in C++. I want to be able to properly handle a 0-length array without using exception-h...
[2 replies] Last: !! Thank you (by closed account S3TkoG1T)
First Time w/ Linked List
 
For this project we're suppose to build a linked list and so far I've gotten most of it down due to the teacher helping write the code in class. What I'm having...
[2 replies] Last: Thanks. Didn't think about that one. (by natekelsey)
by abzksm
help please
 
hey anyone has an idea about calculate serie like this : 1+.......x!/x^y x&Y input integer always positive
[6 replies] Last: If by this you mean there is no function in the STL I believe you are... (by coder1)
i want to display data randomly from a file
 
Hello everyone, i have a text file with 15 rows and 2 columns of data that looks like: 1567 B 3209 E 4590 C 3492 D 4920 B and so on... i need the ...
[no replies]
by Savage
Algorithm for minesweeper problem
 
People, i really need your help with algorithmic problem. I am trying to make the minesweeper solver. As you know there are 2 ways to determine which fields in ...
[1 reply] : The way I think now, each field has a container of valid mine configur... (by Lowest0ne)
by maxmac
Roman Numeral output Program -- Need Hint
 
Been asked to create a Roman numeral output program which lists the numbers on one side and the roman numerals next to it from 1-100 (example below). I am s...
[13 replies] Last: I have just tried it the way you have suggested and it works very well... (by maxmac)
How can i find the size of a file that is found using a directory iterator?
 
What i mean is i need to parse through a folder on my computer using 'directory_iterator d(folder);' and i know that to gain access to the file the d is pointin...
[1 reply] : #include <iostream> #include <boost/filesystem.hpp> int main() { ... (by JLBorges)
by NRoth
Need help with tic tac toe game
 
I am in a C++ programming class right now, and I'm stuck. We made a Tic Tac Toe game (as shown below) that needs two players..I would like to change this progra...
[1 reply] : My advice is to advance your programming skills, read up about AI and ... (by Script Coder)
Give the output of the following program:
 
#include <iostream> #define func(x) x*x-x using namespace std; class abcd { public: static int a; int b; abcd(int x) { b=x; a=b+1; } }; int abcd:...
[5 replies] Last: I haven't done programming for a while. I think my mind completely for... (by Eliza0210)
Trying to multithread program. C++/CLI
 
Hey i'm trying to multithread my program in c++/cli but i'm having problems with creating the threads the code im using is: private: Void startThread(){ M...
[4 replies] Last: well no Threadstart dosn't atm. but the paramtisedThreadStart does and... (by welsh4evr)
C++ structure help
 
I am completely lost on the whole structure thing. My teacher only taught it to us for less than an hour and then gave us this. Anything will help right now as...
[6 replies] Last: Don't know if you still need help on this, but you need to declare coe... (by freddy92)
help me in inheritance !!
 
Suppose a class polygon has been defined as follows: 1. Data member defined to be available to descendants • The length coordinate of the polygon. • Th...
[1 reply] : Please note, that it is not a homework site. We won't do your homework... (by MiiNiPaa)
Help identify the error pls.
 
Hello, I was creating a project for my class at Devry. After pouring over the code for 3 days and trying to tweak a few things, I still wasn't able to identify ...
[6 replies] Last: [quote=ChaosCummings]When I originally learned C++ I always used void ... (by Chervil)
by Sam99
Simplest(!) string problem
 
char a ; cout<<"Enter word: "; cin.get(a, 6, '\n'); cin.ignore(2000, '\n'); cout<<//? If I input a word "Hello"; and I want to display an individua...
[1 reply] : use a std::string not a char array, then use the operator. (by mutexe)
April 2013 Pages: 1... 5354555657... 83
  Archived months: [mar2013] [may2013]

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