Beginners

by admin
news Welcome -- read before posting! closed
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic rela...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-... (by admin)
question Console Closing Down closed (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. in... (by Duoas)
post game of life the output is not right
 
#include<iostream> #include<ctime> using namespace std; void fillArray(char ); void ...
[7 replies] Last: Did it work? Edit: double post (must be high usage in my area :l) (by chrisname)
by Ishtar
post Generating very good random numbers
 
Hello everyone Please forgive the state of this code, I have quite literally only started coding ...
[2 replies] Last: Yes, I agree! I have just done a quick google and found out that [code... (by Ishtar)
by JRevor
questionsolved extern const declarations. How to get them to work?
 
My code has several files. This is a part of Peli.hpp . /*===============================...
[3 replies] Last: Oh.. i think i got it. I should have written extern const ... (by JRevor)
post How to join two very similar programs?
 
How to join two programes? I’ve got two well fuctioning programs. The first one counts combinatio...
[2 replies] Last: What I tried to do is this( I put the commentary in the place where th... (by valdinez)
solved dynamic array
 
# include <iostream> using namespace std ; class Circle { private : sta...
[3 replies] Last: Thank you Bazzy really thanks (by rishamessi)
by Acid
question C library function "rand"
 
Im trying to make some modifications to this game. I dont fully understand some of its code, basical...
[5 replies] Last: Each number has the same probability of being the result of that, depe... (by Bazzy)
post Static Casting
 
If the inputs are 4.5, 8.6 & 9. #include <iostream> using namespace std; int main() {...
[2 replies] Last: I am actually asking... given the inputs are 4.5, 8.6 & 9 in qns. How ... (by makan007)
by jnrf
solved new / delete operators in for-loop
 
Hi, I have a question concerning the new/delete-operators: I have written a program: i...
[5 replies] Last: Is narray been declared a pointer? you can debug your code and can co... (by writetonsharma)
by JRevor
question How to return a const char*reference?
 
I want to return the pointer to the beginning of an array as a reference in a method. Something like...
[1 reply] : const char*& Obj::funct(void){ return array_; } ... (by JRevor)
post occasional stackdump created and errors on program run.
 
I'm having occasional errors when testing my program, I'm not quite sure. When this error occurs cre...
[2 replies] Last: debug the core using gdb and you will know where you got the exception... (by writetonsharma)
by Vita
post How to make simple chat app?
 
I've learnt basics of C++ programming, but I don't know how to make a simple chat application with w...
[1 reply] : if you google you can find many simple chat programs or client/server ... (by writetonsharma)
by disini
post percentage program
 
Hi,I'm very new to this language, I'm in the midst of doing an assignment for my college and I'm stu...
[2 replies] Last: Thanks for your reply. What I'm trying to get is a 2% commission if th... (by disini)
post Declaring static variable
 
static int goodAns = 1; if (goodAns % 2 == 0) cout << "Congrats" << endl << endl;...
[2 replies] Last: Hello! Ok, what don't you understand? The static keyword ensure... (by screw)
post Where is the problem?
 
This program dont work. If there is not even number after odd number,all negative numbers must be p...
[6 replies] Last: [c o d e ] code goes in here then you finish with [/c o d e ] Also... (by gcampton)
post I/O program major issues
 
Figure I might as well go ahead and clear up that this is obviously a school assignment. I have comp...
[1 reply] : -from line 9- int studentID ; int creditHours ; double gpa[... (by Bazzy)
post QString::toWCharArray error LNK2019
 
Hi! I'm fairly new to programming in C++ (only done Java before). I try to read data from a *.dat f...
[10 replies] Last: I tried the function and it worked for me. (My QT version is 4.3.3... (by guestgulkan)
by bbbfan
question Problems with Cin
 
Im pretty new to c++, and am really only using cin and cout so far, but im creating a program for a ...
[1 reply] : Hello! Here is my probe code: include <iostream> using ... (by screw)
by prob
post Displaying a file
 
In this program I am suspose to be able to edit my grades.txt file. But I'm stuck and don't know how...
[10 replies] Last: This should help: http://www.cplusplus.com/doc/tutorial/files/ E... (by Zhuge)
by TBird
solved Please explain a DLL to me?
 
I've programmed in a few languages - JavaScript, PHP, and a proprietary language called GML used for...
[8 replies] Last: Awesome. Much thanks to both of you. I think I know what I need to k... (by TBird)
by ripley
post function returning field
 
Hello, how do I return variables from function, that has arguments? For example: word ...
[5 replies] Last: no no, i sugest i didnt write it correctly. but what i want to do: ... (by ripley)
by sparky
solved does not name a type error
 
Hi, Code::Blocks keeps giving me this error message whenever I try to compile: 'LinkListIter...
[2 replies] Last: Thank you helios and Alvaro (cpp-home.com). Forward declaration solved... (by sparky)
post Problem comparing Variables
 
#include <iostream> using namespace std; int number1(char,int); //My first function int n...
[1 reply] : I've noticed several problems with your code, including syntax errors.... (by chrisname)
by wasabi
post Copy Constructors
 
So, I'm currently completely over my head creating a program that is, well, completely over my head....
[5 replies] Last: I can't test to see if the array overflow is the source of the ... (by guestgulkan)
post Funtions and powers
 
I have written a program to have the user enter 2 values and put the first one as the base and the s...
[1 reply] : float pow ( int a, int b) { float c = a^b; // ^ means xor... (by Bazzy)
post parsing user commands into my progam
 
lets say i have a class that computes the addition. substraction , powers of complex numbers. cur...
[1 reply] : You can write a simple parser, streams are helpful in this d... (by Bazzy)
solved dynamic array
 
#include <iostream> using namespace std ; class NumList { private : s...
[6 replies] Last: In the dynamic one, you are calling an unexisting constructor on line ... (by Bazzy)
post How to read every other column of a table?
 
I have a text file containing 6 columns, that are each 10 rows down. The columns need to be copied t...
[2 replies] Last: Thanks for the reply. I'd like them to be in the order of the first ex... (by xboxmods)
question one vector for two class
 
how to i create a vector that holds two class' type?
[10 replies] Last: @helios: I will not gain anything. :-) The OP mentioned that he want... (by kevinchkin)
post how to make cheat code for socom 2
 
hello pleople i am new to c++ and i play video games a lot and what to go to collage for tech. and...
[8 replies] Last: #2 reason: hacking Depends what you mean by hacking. Y... (by chrisname)
question fstream , counting the occurences of words.
 
I am writing a program that uses fstream to take in words from a file and then outputs the the numbe...
[1 reply] : Another way is to not insert the same word multiple times. Check if t... (by kempofighter)
Pages: [1] [2] [3] ... [22]   Archived months: [sep2009]

Registered users can post in this forum.