Beginners - November 2012 (Page 35)

cant find where the error is can someone help?
 
I get the error missing ';' before '{' but cant find where its missing or do these errors have other meanings? #include <iostream> #include <ctime> #incl...
[1 reply] : You seem to have added an extra bracket on line 77. Either that, or yo... (by DesiredNote)
Where should I be after using c++ for about 2-3 months?
 
I'm seeing some really good programs (from my perspective) in the beginner forums, and this got me wondering. Should I be more advance in c++ now, and when are ...
[5 replies] Last: Don't worry, dude I never want to be like your friend. I'll never stop... (by DJLad16)
Undefined String Length
 
Hey guys, I have a question about string lengths. Is it possible to set a string length such as "1 to 100?" To allow any amount of characters to be set as the v...
[5 replies] Last: Well, you've declared a buffer of 5 chars char string ; and you ca... (by andywestken)
Can it be better?
 
Hi Everyone Have been working on an assignment, it compiles, builds and runs fine. Just wanted to know if there is anything better I can do in the form of co...
[1 reply] : MainLab.cpp // Preprocessor Directives #include "stdafx.h" #incl... (by dudeman007)
Matrix addition
 
Assignment + code: #include <iostream> #include <cstdlib> #define SIZE 3 using namespace std; /*Write a function that takes two, 2-dimensional array...
[3 replies] Last: A requirement you haven't implemented. Factual, for this version. I... (by macleight)
by wokod
Inputting data from a text file.
 
Hi, I'm trying to work out how to link up the numbers I have in my text file to the variables in my equation. In my text file I have 4 numbers, each on a new...
[9 replies] Last: Resolved, input file was in the wrong location. Sorry I am new to thi... (by wokod)
problems making a vector of type vector<T> (ie, template)
 
Hi, I can't seem to make a vector<T> in the private section of a class, even though I declare template<class T> at the beginning of the class. Totally new ...
[2 replies] Last: Awesome! that fixed it. Thank-you for the input. :) (by kuriolis)
Difference between for and while loop for ifstream;
 
Hey, I'm having a litte bit of an issue when counting the amount of array entries when using ifstream to input values in to two double arrays. #include <ios...
[3 replies] Last: int n=0; while(input>>xarray >>yarray ) n++; (by ne555)
by kk666
sample program-inhertance
 
Hello everyone! I am new to cplusplus.com. I am student. I am learning C++ Visual Studio 2010. I have schoold assignment to have a program of inhertance. Can...
[2 replies] Last: Thank Progrady. I am still up in the air trying to understand your ex... (by kk666)
by lvdp00
getting multiple outputs
 
hi , im very new to this , i got this program to give random number from 0 to 0.99 , but it only gives me one output at a time , i need 1000 outputs generated e...
[no replies]
by Xraze
Question about Rand
 
What I'm trying to do is basically this, I want a certain rand function to be usable multiple times. For example: Srand(time(0)); int x = rand()%100; int z =...
[7 replies] Last: Your question is not difficult. But the code you posted above does no... (by Chervil)
C++ Hash Table collision and count issue
 
Hi there guys. I don't know what should I do for: -counting number of elements from table -in case of collision, adding node at the end of the table I have h...
[no replies]
Setting Boundary(Grid) in C++
 
How to set a boundary (grid) in c++. My first semester project is designing a game. But I haven't set the boundary yet. My teachers are giving me ahint about th...
[no replies]
Classes across multiple files.
 
Could someone give me a short and simple examples of putting classes in mutiple files? class ProgramFun { //Generic function i want in a different fil...
[4 replies] Last: Aha! I got it, thanks for the help. (by bosox99)
How do I move all elements of my array to the right?
 
I need help with a project. I need to make a character and be able to move that character left and right. I have made the backround and the character an...
[no replies]
by Meden
Quick pointer question
 
int x = 25; int* ptr1; int* ptr2; ptr1 = &x; ptr2 = &ptr1; // doesn't work. cout << ptr1 << endl; cout << ptr2 << endl; ...
[2 replies] Last: Thanks. (by Meden)
Alternate to system("pause")?
 
I've just read an article to why I shouldn't use system(), so is there any alternative to system("pause") because without it my programs will just close with...
[1 reply] : Perhaps you see the sticky at the top of this forum? (by cire)
by xzbit
String manipulation
 
String^ str = "abcd-123"; i want to get the string "123" from str. i can do that in std string using "...str.find_last_of("-")" method but what if its a sys...
[2 replies] Last: what if its a system string ? That'd be some kind of .NET language, ... (by Moschops)
Why shouldn't I use system("cls")?
 
Everyone says to always avoid using it? Why? People also say that as a beginner I shouldn't be clearing the screen, but I personally think its better than a bun...
[1 reply] : http://www.cplusplus.com/articles/4z18T05o/ (by Moschops)
Template class help
 
Hi all, I'm working on a project that creates a stack using a template class. My problem is I'm trying to make it so the user decides what kind of data type(in...
[7 replies] Last: I like the idea fun2code, but we are not allowed to use anything from ... (by closed account 17pz3TCk)
November 2012 Pages: 1... 3334353637... 75
  Archived months: [oct2012] [dec2012]

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