Beginners - November 2015 (Page 46)

Constructor
 
I know in main() should be A a1 instead of A a1() but I'm curious why A a1() doesn't do anything? What does a1() call? #include <iostream> using namesp...
[5 replies] Last: Presumably you meant a1 and not z1 . As I said, it's a function de... (by cire)
Tower of Hanoi explanation
 
Can someone help me with this program it's about Towers of Hanoi and it's non recursive solution i found it from net and change a little bit. It's works but i w...
[no replies]
by DanaN
Splitting string and assembly issues
 
I can't seem to get my spaces to show up in my text and the numbers and letters are not appearing in the correct location. I thought the array was supposed to k...
[2 replies] Last: #include <iostream> #include <string> using namespace std; int main... (by gelier)
Is there any other way to solve my problem?
 
Hello everyone, I am very new to this forum and so in C++, I started just few weeks ago by reading a book I bought and programming small useless things just to ...
[1 reply] : The solution would be, for each physical property, to store just a few... (by Kevin C)
by boxsta
Averages Sums & Loops
 
Hi guys, I'm new to this coding game, it's one of my uni modules. We are currently looking at loops. I'm on task 4 of 12 and just cant get my head around thi...
[2 replies] Last: Here is some code to get you started: http://www.programming4beginners... (by Kevin C)
by nazis
Problem with a program, help please!
 
My program finds the secondsmallest number in an array, but when user inputs " 1 ; 1 ; 1 ; 2; 3" program gives out 1 instead of 2 Here's the code of the sec...
[1 reply] : If the input is 1 1 1 2 3, then the smallest number is equal to 1, and... (by Kevin C)
by Orzo
READ AND EXTRACT VALUES FROM A .DAT FILE
 
I have to make a program using c++ that open and read a file .dat in which there are a lot of lines organized in different columns, like these: 0.000000 ...
[no replies]
i can't figure out the problem in this program
 
We're supposed to print out the numbers divisible by 3 in between 1 - 100 #include <iostream> using namespace std; int main() { int num=0; while(num<=99)...
[5 replies] Last: By the way, http://cpp.sh is the native shell most of the code from th... (by YFGHNG)
Ich habe ein problem mit mein code.
 
Ich benutze das: CHOLESKY:CHOLESKY:CHOLESKY:CHOLESKY:CHOLESKY:CHOLESKY:CHOLESKY:CHOLESKY:CHOLESKY:CHOLESKY:CHOLESKY: ...
[no replies]
How do you pull specific strings from a text file?
 
I have a text file with various pieces of information that I need to define and send through some other functions. Below are three sections that I would need to...
[no replies]
by zezimo
Generating Permutations of a word Alphabetically
 
For my assignment, I must write a class called Permutation which is used to generate permutations of a word alphabetically. The constructor of the class must ac...
[no replies]
Program crashing - Help needed!
 
The following is a relatively short and simple program that creates an array of student objects. Information for each student is read in, and then printed out. ...
[4 replies] Last: You're welcome :) (by MikeyBoy)
Help in my RPG
 
I am trying to make a text RPG and need help so that when the user types in a certain command it will do a certain thing but I have a set amount of commands tha...
[5 replies] Last: Sort of. You don't have a return statement. The reason for putting ... (by AbstractionAnon)
pseudocode
 
I want to create a program that does the following: Write a process that would create a function that accepts an array of integer values, a whole number n, a...
[2 replies] Last: could you help by please elaborating on that more? i.e. how that would... (by gml5121)
by Orzo
Read from a .dat file made of strings of numbers
 
Hi everybody! I am a very beginner in language c++. I am doing a thesis and i have to elaborate some experimentals data. In particular i have to make a progra...
[no replies]
by kivaj
How to resolve matrix
 
Will upload soon
[2 replies] Last: Will edit for upload code (by kivaj)
Runtime Error
 
Well, I accidentally delete when Editing... I make a little change in the code... #include<stdio.h> int main(){ unsigned int x, y; const unsigned int z=2...
[5 replies] Last: you cannot initialise VLAs > format '%d' expects argument of type 'i... (by ne555)
Exiting do while loop
 
How do I exit the do while loop after k=3, so it won't exit after I type in an answer, but before that? #include <iostream> #include <math.h> #include...
[7 replies] Last: Figured it out #include <iostream> #include <math.h> #include <i... (by rojan1918)
Having some trouble with an array.
 
I have a list of baseball teams and I'm trying to store all the names in an array. I have written code that successfully compiles but when I do something like ...
[1 reply] : remove line 11 and replace it with: std::cout << winnerList << std::... (by Kevin C)
November 2015 Pages: 1... 4445464748... 53
  Archived months: [oct2015] [dec2015]

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