Beginners - June 2017 (Page 7)

Free programming resources
 
Hi all few free tutorial sites for beginners are given below. C PROGRAMMING http://learnermode.com/c-tutorial/ C++ pROGRAMMING http://cplusplus.com ...
[no replies]
Trouble about Random Numbers
 
So I am a beginner programmer learning about to program, and I have a question in particular about random numbers. I am basing me code of the book for my school...
[2 replies] Last: Thanks you, my question has been answered. I will mark as resolved. :) (by Bayan Khorshidi Berkeley)
by Vneo
Sum Problems
 
I have to find the sum of all integer numbers lying between 1 and N inclusive. Input The input consists of a single integer N that is not greater than 10000...
[5 replies] Last: Thanks Handy Andy, it seems i already know where i get wrong. (by Vneo)
Unable to understand pattern problem using loops
 
I was printing a pattern like this and found this code online. AAAAA* AAAA*** AAA***** AA******* A********* When i calculated how the loop is working I found t...
[5 replies] Last: Thanks for the help finally its clear to me where i was going wrong. (by Kartik24)
by xxvms
reading from file question
 
Hi there I am learning now about reading and writing to a file, there is something i don't understand. when I try to read names back I have set loop for that ...
[11 replies] Last: You may want to read the whole chapter. It is actually a good book -... (by mbozzi)
by TheArk
C++ game codes not working
 
Hello, I have been googling c++ game codes, to examine and test, however, once I copy and paste into visualstudio, none of them work. I thought perhaps it was j...
[2 replies] Last: Okay thanks! (by TheArk)
by seba97
No default constructor exist for class
 
Hello guys, when I've tried to create a constructor for class SmoothyCuFrica I receive this error "no default constructor exist for class DecoratorSmooty". Here...
[2 replies] Last: I don't know why that doesn't appear in the diagram,i use visual studi... (by seba97)
by TheArk
Types
 
I have no idea how to go about this. I do not know how to assign the type 1, 2 and 3 to a specific type of horse. I know that I can put lightRiding = 1, largeR...
[4 replies] Last: perfect, I appreciate the help! (by TheArk)
How to erase a printed, on the screen, character
 
Lets say I print on the screen the word "deleted", but I want to make it "delete". How can I delete the character 'd'? I tried using the escape character backs...
[2 replies] Last: std::cout is a stream (See https://en.wikipedia.org/wiki/Stream_(com... (by mbozzi)
C++ issue with my project
 
I am having issues with my code in order to work. I have a cpp and a .h class that I need to interact. prompt: One large chemical company pays its salespeople ...
[10 replies] Last: Here is what I have so far: I was able to get the user input the sale... (by closed account Sz6592yv)
streaming in from a file
 
I am learning about streaming in from a file. Right now i have 2 questions. how do i make sure that the program does not overwrite the file each time i r...
[2 replies] Last: there is also a problem at the line 38: cout << "Reading from the fil... (by masterinex)
Binary Trees
 
Hello, I am working in a project to make a dictionary with all words of my contry and I am using Binary Trees. The problem is that I do not know how to comp...
[2 replies] Last: Thank You. (by fantomasAlbania)
passing arrays
 
Hello, I am just learning arrays, and I am having a hard time trying to pass the information between functions. What I am trying to do is have the user put it i...
[7 replies] Last: Oh wow thanks, just have to call it correctly, I feel like a noob. (by alextexasfan12)
streaming into string and char
 
i have a text file called numbers.txt with the following content: 4 a astring i want to stream into the char ch the letter 'a' and stream into string s...
[2 replies] Last: i have a text file called numbers.txt with the following content: 4 a... (by Enoizat)
by xxvms
wrong result
 
Hi there I am playing with examples from book, I have modified one example and it does not provide correct result. I am not sure why. I am closing file a...
[2 replies] Last: Hi AbstractionAnon thank you for this, I think I have to get another ... (by xxvms)
help with making pFile stops
 
hey there,thanks for everyone that helped me till now, even though i was not registered :P i have a problem with making pFile stops im putting the sentences bu...
[2 replies] Last: while (sentence!=finish) This compares the address of the sentence ... (by dhayden)
Issue with reading string into an array
 
Hello! I'm having some difficulty inputting names of strings into an array. I've tried both getline() as well as cin, the output is the same. It skips over...
[2 replies] Last: Wow, I feel so blind. Thank you! (by SElliot)
by Kiryu
Improve chunk mesh generation time
 
Hey, I'm writing a minecraft-like game with OpenGL. As most of you will know, minecraft is split into chunks which consist of blocks. Because rendering every bl...
[no replies]
How to test part of the code without creating a new project?
 
I am using visual studio and creating a nontrivial project. There are many files containing many functions. I want to write "test case" for different functi...
[2 replies] Last: you should not copy code. You can make a new project that uses the sa... (by jonnin)
How to read file into multimap containing numbers and string
 
I have text file containing several numbers and string text. I would like to read text file into multimap. But don't know for sure whether my code is correctly ...
[6 replies] Last: Multimap version (somewhat more convoluted): #include <iostream> #in... (by JLBorges)
June 2017 Pages: 1... 56789... 16
  Archived months: [may2017] [jul2017]

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