Beginners - August 2014 (Page 25)

C++ keeps opening two black windows on execution.
 
No matter what I run in C++, as soon as I hit F9, it opens up two black windows. The first black window closes as soon as I enter the information it is waiting...
[3 replies] Last: It sounds like you have your project open twice OP. Code Blocks suppor... (by Computergeek01)
the sum
 
program that will accept a number n and display the sum of all even numbers and the sum of all odd numbers from 1 to n
[11 replies] Last: This is a simple factorial program. It doesn't matter what compiler o... (by cnoeval)
Integer value is lost in another function
 
I'm having trouble with this basic program. I'm 100% lost when it comes to this, I have written much more complex programs...solving Sudoku Puzzles and such, I ...
[3 replies] Last: By default, C++ parameters are "pass by value." This means that the k... (by dhayden)
Tutorial on handling C++ files?
 
When it comes to saving the workspace, project, and file, I'm really at a loss as to how all this works. I was doing a walkthrough of one guide that had me cre...
[2 replies] Last: Ok, thanks for the information. I think I get what you're saying and ... (by Ascendant78)
by mehak
structures in c++
 
can the structures in c++ have functions as members?i know structures in c++ can have functions but are they eligible to be called member functions?
[3 replies] Last: That seems like a mistake in the test. As Krisando says, classes and ... (by MikeyBoy)
by idek
Making A code read from an external file instead of within the code
 
http://www.cplusplus.com/forum/general/140414/ I posted this twice, see above thread.
[7 replies] Last: Already suggesting that on his doublepost thread: http://www.cplusplus... (by keskiverto)
Setter and getter
 
Write your question here. hey guys, ive a question between setter and getter...ive written two codes. The first is a combination with set and get..and the seco...
[1 reply] : Both of the samples have setters and getters present. This style of co... (by Aceix)
Soda Machine
 
I am making a very simple so to say "Soda Machine". I want it to ask the user if they would like a free soda, if they say yes it will keep going on with the pro...
[7 replies] Last: mark this as solved now (by xenovia12)
team
 
i was wondering if there is a group/team of beginners in c++.. i mean group which has same level programming that can brainstorm with.
[3 replies] Last: *cough* lounge not jobs (by giblit)
by mehak
Deleting a pointer twice
 
when we delete a pointer that was pointing to an object,the memory allocated in the free store is released ,but if i happen to delete the pointer twice which no...
[1 reply] : Er... what? Yes , deleting a non- NULL pointer twice causes heap ... (by Duthomhas)
Intermediate Books?
 
So I've spent the last few months reading multiple Beginner books on C++ including the Tutorial on this website. I want to know where I should look to further m...
[2 replies] Last: Awesome! Yes, this helps a ton! Although I was looking for books on mo... (by Chibi310)
by seet
need programme to display time of 3.15pm instead of 2.75pm
 
case 1: printf("Please enter the selected time of leaving school.\n"); printf("Please enter in the time you would like to leave school ...
[no replies]
by moezz1
cannot convert char to char & illegal use of floating point
 
Excuse me for asking such a simple silly question but i'm new to programming and in need of some serious help. Below is a simple program that the user enters...
[1 reply] : try changing "A" to 'A' (by Yanson)
Unexpected Infinite Loop
 
Hey guys, I'm just trying to write a basic program for my first week in a uni course. It's a continuation course of learning about OOP but whereas last semester...
[7 replies] Last: The compiler that comes with VS 2013 and the default settings. (by mutexe)
Writing to a Pointer Array
 
I haven't played with pointers much, especially not with arrays so I'm at a loss here. I've been looking in my book and all over the web but I can't find an ans...
[6 replies] Last: It's still not quite right. Try passing your array to your original ... (by Disch)
by idek
Code::Block, g++ and c++11
 
Figured it out. Still have other issues, see other threads if interested please. :)
[1 reply] : You may refer to g++ as GCC (GNU compiler collection). Are your sourc... (by Krisando)
by Ch1156
How to change random number amount
 
Ok so I have a random number generator in main that I use for everything that uses it in the program which are only switch statements. The problem is I have lik...
[1 reply] : you can use a function to do this. It will make it easier to read and... (by pilotnate)
by jlken
Array outputting unintended triangle
 
My last sorting function recSwap is returning a triangle. I'm getting the sorting I want which is in the last line of output from the triangle but I've no luck ...
[no replies]
display pattern
 
hello, i have a question here in my project asking a program that will display the following pattern, given the value of n. example if n=4, output ...
[no replies]
by thefly
Class member functions returning wrong answer?
 
I'm wanting the program to display "12: 4" (item number: total cost) but it is displaying "-858993460: 7.95081e+070" #include <iostream> using names...
[2 replies] Last: Wow! Thank you so much for the great explanation! Been going crazy bec... (by thefly)
August 2014 Pages: 1... 2324252627... 40
  Archived months: [jul2014] [sep2014]

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