General C++ Programming - March 2014 (Page 8)

by y510
array manipulation of messages
 
Basically i need to encrypt a message into ascii values & i also need to allow the user type some ascii values thus decrypting the values into characters that a...
[18 replies] Last: Not sure what you are trying to do with d and e. As far as the cast. I... (by giblit)
by Kak3n
Avoiding rand to generate same numbers
 
Hi I tryed to create program I wich u can guess number, I made some if to prevent inputting 2 times the same number It works. I tryed to apply the same process ...
[6 replies] Last: tnx (by Kak3n)
How to use strings in a function?
 
None of my string is coming out onto my output file.. I'm not sure what's wrong with the function. HELP! void OutputHeading (ofstream& fout, string CLASS_EXER...
[1 reply] : Please use code tags: http://www.cplusplus.com/articles/jEywvCM9/ You... (by LB)
Input handling
 
I am trying to use just cin in a while loop to catch when the user inputs a non integer to the command line. Also could someone explain how cin is acting like a...
[7 replies] Last: When you declare it inside the loop, it gets redeclared every iteratio... (by LB)
Templatizing a function based on a class member?
 
Some background: I have a class, A, with members, B and C and D; I also have an array of A objects; I want to be able to have a function which takes said array ...
[1 reply] : You are interested in C++'s pointer-to-member feature. Here's a small ... (by LB)
C help
 
So I was given an assignment in class and my teacher really doesn't explain anything very well. He just reads a powerpoint slide and expects you to understand b...
[1 reply] : What have you written so far? (by LB)
C++ Stacks and Queues
 
Goodday , I am new to Stacks and Queues and I am having a tough time answering the question below. If someone could guide me it would be of great assistance....
[3 replies] Last: Always start by writing the basic outline of your program. You know mo... (by LB)
Confusion with functions and loops
 
I'm currently stuck on this project...I can't seem to find the right number of vowels, number of As, and blanks from the file. I also, don't understand why my o...
[2 replies] Last: Use the fallthrough behavior of cases in switch statements to take th... (by booradley60)
dont know how to call...
 
I have a class Items(base class) with class weapons : public Items. now I have called vector<Items*> Item; and created a Item with Item.emplace_back(new weapo...
[5 replies] Last: Your code is neither minimal, nor compilable, but I can see where you'... (by cire)
D3Dx11 Triangle Help
 
Doing this to get a triangle on screen. I followed the tutorial the teacher provided as well as the book for the course and the triangle doesn't show on screen ...
[3 replies] Last: Shaders.hlsl file: struct VOut { float4 position : SV_POSITION; ... (by Paul Christopher)
by Ibzz
Visual C++ Windows form user input error.
 
I am fairly new to Visual c++ programming, below is my code to a project I am working on. I am having issues with the code I wrote below. Question 1 works well ...
[11 replies] Last: A simple solution would be to create an integer value for the question... (by Mike5424)
by ajf360
Looking for C++ books or tutorials, for experienced C programmers
 
Hi people at the forum, I work on the embedded system area and consider myself an experienced C programmer. Now, I have to take the next step to C++, but I...
[1 reply] : You could have a look at books listed here under Best practices / Inte... (by JLBorges)
return types (1,2)
 
Ok I have a class called items and stored in a vector as vector<items*> item. now I want to make a function to return the placement # that the item is stored...
[21 replies] Last: > If you just use -1, however, there can easily be some discrepancies ... (by JLBorges)
Concatenating strings
 
I'm trying to concatenate two arrays after their multiplied together, and not only can I not figure how to combine the two arrays, but I'm experiencing an error...
[4 replies] Last: i want to learn c++ could any one teach me? (by umair javed)
by stdeez
Seg fault errors
 
Can someone help me identify the reason why I am getting a seg fault run error? I hate to bother but I've been trying for several days now to fix the same func...
[6 replies] Last: Here is what I was talking about, its super simplistic, no error handl... (by ac517)
Double Linked List handling
 
Hey, Im trying to calculate importance of coordinates. void DoubleLinkedList::calculateF() { Node *p; p = first; p = p->next; double f; doub...
[1 reply] : You haven't shown the definition of the data structure or how the link... (by kbw)
by racker
need help in execution of code
 
hey all i need reply fast plz this is somewhat advance level c++ question . Me and my friend are creating a small programming language in c++. which allows ...
[2 replies] Last: Yes, for most compilers the way to initially do it is to have the code... (by TwilightSpectre)
by ms79ms
pfdfsdf
 
afdsf
[1 reply] : This is not a homework site. We will not do your homework for you. Ple... (by giblit)
I can't compile this
 
#include<iostream> #include<cstdlib> #include<ctime> using namespace std; void dividir(); int main(){ int centinela=1; //controla el while cout<<"este p...
[3 replies] Last: > I'm using vim gg=G (by ne555)
Pointers
 
I got everything in this code running except for my remove function. What the project does is adds or removes an integer to a chain of integers created by the u...
[12 replies] Last: You have changed copyArray and removeNumber and say that addition malf... (by keskiverto)
March 2014 Pages: 1... 678910... 36
  Archived months: [feb2014] [apr2014]

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