General C++ Programming - November 2015 (Page 20)

jump statement
 
how to jump to another statement in c++ using other than goto statement? please help me!!!!
[4 replies] Last: One simple way to solve this is just to have repetitive code in main. ... (by closed account 48T7M4Gy)
Project
 
I am having so much trouble with this part of my project. How do I use the if statement to see if the player's name matches the string "BLANK"? Can anyone help ...
[1 reply] : std::string provides an overloaded "==" operator that you can use to... (by JayhawkZombie)
Rule of 5 and the need to write a copy ctor etc.
 
So I am aware of the Rule of 5, and of the rule that if one deletes or defaults any one of the 5, they should do the same for all 5. (Herb Sutter) But not delet...
[7 replies] Last: > by object-oriented type did you mean a class intended for polymorphi... (by JLBorges)
by vinny1
Having trouble with some code
 
I'm having trouble with this code. What case 9 is supposed to do is ask user for an index from a string and give out the ASCII integer representation of the cha...
[1 reply] : What case 9 is supposed to do is ask user for an index from a string ... (by TheIdeasMan)
goto
 
can someone show me c++ program using goto command and not using goto?
[1 reply] : https://msdn.microsoft.com/en-us/library/b34dt9cd.aspx (by closed account 48T7M4Gy)
ARRAY CODE HELP
 
Su
[1 reply] : First sort the array. You can use the sort function from the algorithm... (by integralfx)
printining the second minimum number
 
Can anyone here give me a c++ code that prints the second minimum number of the four integers entered by the user?
[1 reply] : Nope. The purpose of the exercise is to determine if you can do it you... (by Duthomhas)
Error When Including Header File
 
So I am attempting to use the Selene Lua library (https://github.com/jeremyong/Selene). In my project, I am including the Selene header file in one of my own he...
[3 replies] Last: Making the function inline lets the compiler/linker know that it will ... (by cire)
HELP WITH THIS ARRAY
 
PLEASE HELP WITH THE PROBLEMS WITH THIS ARRAY :) what are the errors or bad things about this code snippet, there are three bad things/error. thank you!
[1 reply] : Compile code and you'll immediately see the two errors and as far as b... (by ShiftLeft)
Variadic template expansion
 
Hi, I'm playing with variadic templates and as a simple test I would like to be able to sum various offets into an array. Here is the code: template< int...N ...
[2 replies] Last: Templates aren't my forte, but I don't think that's how it works. //... (by cire)
Doubly Linked List without deque please help!
 
I used a pointer to a vector to create a list of elements to insert into a doubly linked list, however, I cannot get the add_back and add_front functions in Bli...
[5 replies] Last: Sorry about all this, sort of. Let's look at fixing your code. First ... (by kbw)
Can anyone help me with the programming?
 
F(x)=f(x)/(x-r1)*(x-r2)*...*(x-ri) show that the fixed point iteration determined by applying Newtons Method to F can be written in terms of the original fun...
[no replies]
Macking Complete Clock with Stop Watch and Alarm Clock as well but no idea about Alarm clock
 
//Digital Clock+ Alarm clock +Stop watch through inheritance.... //I have Issue with Alarm clock/No idea about Alarm clock //#include"stdafx.h" #includ...
[no replies]
by kruxan
Divide game into functions
 
edit.
[no replies]
is there a way to references parameters from other functions that are not directly linked
 
hey im trying to reference parameters that have been declared in a function to use in another and am having trouble , ive made a simple calculator program , in ...
[no replies]
A program to ask a girl out
 
Hi there, I want to write a program that will ask a girl some questions (questions about getting to know her better). And at the end of the questions, it is go...
[5 replies] Last: If you're looking for a goofy program to write, here's one that I did ... (by dhayden)
Include Issues (Linux and Netbeans)
 
Okay.. I have 4 files. A.cpp b.h self.h self.cpp A.cpp contains main and includes only self.h b.h contains functions wrapped in namespaces self.h has class pro...
[8 replies] Last: Put function declarations in header files, and function definitions... (by Peter87)
winsock2 program crashes
 
Hello everyone! I have made a simple c++ client program using winsock2. It is able to connect to a server and send/recieve data. It currently works like this: ...
[2 replies] Last: Thanks man! Works great! (by TheSocket)
PLEASE HELP WITH FOLLOWING CODE
 
In this code am i getting the correcting answers? I'm kind of lost with this function thanks! thank you!
[2 replies] Last: int fn(int x, int &y) { cout << "At the moment, x=" << x << endl; x*... (by closed account 48T7M4Gy)
PLEASE HELP WITH FUNCTION AND ARRAY
 
Im really lost in c++ programming especially in function and arrays.
[1 reply] : Start with writing a program in main to input two doubles , add them... (by closed account 48T7M4Gy)
November 2015 Pages: 1... 1819202122... 26
  Archived months: [oct2015] [dec2015]

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