General C++ Programming - September 2015 (Page 11)

by seanuu
HELP ASAP
 
How to do this T.T Help me guys ASAP ____* __*** ***** __*** ____*
[2 replies] Last: Create a function that prints a single line. Use parameters for the t... (by dhayden)
by aeck
Sorting a doubly linked list
 
I am trying to do this assignment: 1. Read data for names and weights for 15 people from the console where there is a name on a line followed by a weight on t...
[5 replies] Last: I think you are all missing something important here. When the assignm... (by dhayden)
C++ while loop, p.s im new to c++
 
I have this question.,i tried it and it worked at first. But i dont know what happened today, it wont work. could someone please find the error. Write a progra...
[2 replies] Last: Also, you don't have to count up by ones. Just count up by 3s instead:... (by dhayden)
by UNNGH
How can I use the offline CPP reference?
 
I downloaded the zip file off of: http://en.cppreference.com/w/Cppreference:Archives There are a couple off .py files like: index2autolinker.py index2browser...
[no replies]
please help me im dying 😉😉
 
Write a C++ program that asks a user for their name and birthday prints it out. Remember you are asking a user to enter the information so you will need to use ...
[3 replies] Last: unfortunately i dont know Surely you know something. Have you writte... (by dhayden)
can you guys help me with this i dont know what to do
 
Write a C++ program, which uses the cout object, which produces the following output: ///// +”””””+ (| o o...
[4 replies] Last: I don't want to help you completely either but, just each line you "co... (by UNNGH)
permutation of words
 
What code would you use to ask someone to input 4 words, and the permutation of those words pops up?
[1 reply] : http://www.cplusplus.com/reference/algorithm/next_permutation/ (by ne555)
writing into file
 
I understand how to write and print values into a BINARY file, but how do you write objects? For example, if my object of A has 2 values in it, I cannot wri...
[6 replies] Last: > that there is no method that's faster than simply writing the write ... (by JLBorges)
C++ Help with File Pointer and search Functions
 
I am new to programming and on our current assignment we have to effectively create a database to store various pieces of information in a struct. I have cr...
[1 reply] : Rather than have each operation manipulate data in the file, it is bet... (by kbw)
Computing volume of a cone plus hemisphere
 
completely new to the language, here is the formula i was given to compute the volume of a cone plus hemisphere, " v = [ (1/3) X pi X r-squared X h ] + [ (2/3)...
[3 replies] Last: I'm not sure I understand what you mean. To make the program clearer ... (by closed account 48T7M4Gy)
C++ program S.O.S checking
 
I'm having a hard time figuring out how can I check if there is a winner. Please if anyone can help me. here is the code. The problem is it can check the first ...
[1 reply] : Hi, Please don't start a new topic on the same subject, just post som... (by TheIdeasMan)
Help with rand()
 
I set this up(its an example) a = rand() %4; cout << "" << a; everytime I do this I get 1 and if I do a = rand() %100 I get 41!!!! Help!!!!!
[1 reply] : Insert this when starting the code: srand(); And if you want your ... (by MannedTooth)
by UNNGH
I need help with code!!
 
here is my code for an rpg text game: cin >> input >> input2; while ( input == "go" ) { if (input2 == "north" or "North" or "n" or "N") { ...
[5 replies] Last: Hi, You can put an else condition, or if using a switch , a defau... (by TheIdeasMan)
What’s the “Software Peter Principle”?
 
The Software Peter Principle is in operation when unwise developers “improve” and “generalize” the software until they themselves can no longer understa...
[1 reply] : Thanks? (by Radar)
Printing Address of pointer
 
Hello. I am trying to print the address of some pointers, but I am confused. When I run the program, it printed the whole thing of the user_entry instead of the...
[2 replies] Last: I also think it is possible deference the char array, to get the addre... (by Bdanielz)
Try and catch method for errors
 
Here is my code so far #include <iostream> #include <string> using namespace std; string type; //declare string variable to hold string type int num; ...
[4 replies] Last: I tried putting the cout in main function outside while loop but the ... (by AbstractionAnon)
dynamic array running error
 
here is my cpp file, it doenst have compiler error, but when i run it and input value in the array, and cout some trash output. I am not very good understanding...
[3 replies] Last: I think Peter87 is right. You are reading a SINGLE character at lines ... (by dhayden)
by Andym
function to write to an opened text file
 
I am starting to get the function thing down....maybe...but I'm having problems making a function to write text out to a log file. please see below..."WriteTex...
[2 replies] Last: OpenLogFile() calls GetLogFileName() which calls WriteLogFileData() to... (by dhayden)
Dice rolls: Counting number of rolls that = 6 or 7
 
The following calculates the number of times the sum of two dice (randomly rolled) equals six or seven. #include <iostream> #include <cstdlib> using na...
[5 replies] Last: Use an array to store the count of the sum of the rolls: int count =... (by dhayden)
by UNNGH
C++ Text based RPG
 
SO i though of doing a Text RPG with ascii art, and i had a few questions. 1: for getting commands (eg. go south) how can i get the input of "go" to tell the...
[6 replies] Last: Following @YFGHNG post. I would have a boolean that decides when the g... (by Radar)
September 2015 Pages: 1... 910111213... 21
  Archived months: [aug2015] [oct2015]

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