Beginners - August 2016 (Page 11)

by Starke
Reflection or vector rotation problem...
 
Hi all, im new to c++. My task is to make function that will rotate radius vector of incident photon when he interact with surface. Its total reflection problem...
[6 replies] Last: I'm glad it helped Starke , all the posts point to the same, believe ... (by closed account 48T7M4Gy)
ofstream isitn working..
 
My function does not overwrite or add a newline to my text file :( void newaccount() { fstream fp; int nid,id, npw, pw, renid, repw, newaccount=1; int nsc...
[2 replies] Last: That was my post too :( i still couldnt get it to work p.s. i dont kn... (by pminwei)
using inheritance or friendship
 
while programming i mostly don't see a use in class friendship unless i want to access private members and even than i can make them protected and inherit them ...
[4 replies] Last: Thank you for the information now i need to review and organise it! (by globaltourist)
problem with friend and inheritance
 
i have been learning friendship and inheritance and i am stuck in front of the same problem for 5 hours and cant find any answer why doesn't it work: #includ...
[4 replies] Last: Thanks now i understand how it works! (by globaltourist)
Insert input string into char str[]
 
Did anyone know how to insert the input string(characterorintegal) into char str90 ?? cout << "Please enter a character or integal" << endl; getli...
[8 replies] Last: http://www.cplusplus.com/forum/beginner/195899/ (by closed account 48T7M4Gy)
How to replace substrings in a string?
 
#include <iostream> #include <iomanip> #include <cstring> #include<stdarg.h> #include<string.h> using namespace std; int main() { char str1 = "abc def ...
[1 reply] : So what's the plan here? Do we keep opening up threads on basically th... (by closed account 48T7M4Gy)
How to use strlen() in CodeBlocks?
 
I am working on a program where i have to made a word appear at centre and scroll left. I've written a program which will do the work but the problem is that my...
[3 replies] Last: No need to apologize, just good that problem is fixed. (by closed account 48T7M4Gy)
Delaying the exit
 
Hi, my application is supposed to display the message and end when the condition is met. The problem is that it exits so quickly that the user is not able to vi...
[6 replies] Last: The problem is that it exits so quickly that the user is not able to ... (by closed account 48T7M4Gy)
alignment issue
 
Hi I having a problem with my program is not printing the printCharges function aligned. I want the last digit to aligned at the end of M of the word ROOM for a...
[3 replies] Last: :) (by closed account 48T7M4Gy)
Plot using c++
 
Hello everyone, I need your help. I want to plot results of my program. It calculates the Gauss Bell and the normal distribution. I tried with a lot of external...
[no replies]
Seeking advice on class template that uses 'this' keyword
 
I intend to have several derived classes that have the same function that utilizes the this keyword to referred to objects in the derived classes. The issue i...
[3 replies] Last: Thank you! Casting works. I hadn't considered casting because I haven'... (by carlwryker)
by Nobert
question on use of Graphics.h
 
please i tried using graphics.h for learning purpose with code blocks, as directed by a video, and i kept getting this error: "Test.exe" has stopped working ...
[no replies]
by V32857
CPP FILE TO PROGRAM ON MAC LIKE .EXE ON WINDOWS. How TO DO IT?
 
Hello everyone When I create a simple program .cpp file. How can I convert it to a program or software to work on a Mac system? or even do some design for it t...
[3 replies] Last: Thank you (by V32857)
SDL2 Screen freeze minimised -> maximised
 
I have a simple SDL2 application with a re-sizeable window, if I minimise then maximise the window (ie click application icon on the taskbar) the rendering free...
[2 replies] Last: Thanks so much Peter, upgraded to 2.0.4 and this fixed it. (by chrishr)
by koopey
linked list basic problem mistake-i am pulling out my hair
 
someone please tell me, why is this not working. why is the L1 not being updated by addbegin() function. literally have been stuck in 2 programs for last 4 hour...
[5 replies] Last: i didn't get that. In "addend()", according to your logic, I am takin... (by cire)
Is this a good solution?
 
There is a beginner exercise that I found on this forum called, "while (user==gullible)", the following is the description of the program modification #2: **Mod...
[6 replies] Last: @cire thanks a lot it works! (by Sundus Yawar)
by llll
need help asap
 
I am working on a sequence of RNA, I converted that sequence to string of int, I am trying to divide the string of intrna into parts of 3, use each to find the...
[6 replies] Last: Maybe use this as a starting point. 'argument in a parameter' and 'arg... (by closed account 48T7M4Gy)
java programming
 
Is eclipse the better platform for learning java? Is there a better way?
[3 replies] Last: http://stackoverflow.com/questions/4577313/using-qt-in-java Try Qt - i... (by closed account 48T7M4Gy)
help with functions
 
The problem i am having is, how do i print win lost and draw without having -1,0,1 at end of it? also why does it double print win lost or draw when i have the ...
[3 replies] Last: sorry the delay and thank you. (by taintedrogue)
Grading Program
 
I am trying to create a grading program that allows the user to input his/her grade, which tells the user where they stand, as in what letter grade did he/she g...
[7 replies] Last: @Thomas1965 Copy & paste your code in the comment between these (b/w 2... (by Sundus Yawar)
August 2016 Pages: 1... 910111213... 22
  Archived months: [jul2016] [sep2016]

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