Beginners - March 2016 (Page 35)

log table
 
Hello everyone, I am working on an assignment to print out a table of log values. I am very close to the provided solution but there are a few bugs in my progr...
[1 reply] : 1. It is enough to set precision on stream once. 2. http://www.cpluspl... (by keskiverto)
by HG319
Accessing queue within a vector
 
Hi I have this linked queue which I placed into a vector (something I needed to do to for my project). Now I want to access a specific index in the vector and e...
[3 replies] Last: Simpler example: std::vector<int *> foo; int * bar; // where does the... (by keskiverto)
Confussion over output
 
Why is k equal to 17? I understand that i is 5, but how is 0+5=17? #include<iostream> using namespace std; void main() { int i, j, k = 0; for (i...
[2 replies] Last: I understand that i is 5, No, it is not. It is 5 only after the l... (by keskiverto)
using crypt
 
Hi am attempting to use crypt to generate SHA512 hashes. copied code from http://www.gnu.org/software/libc/manual/html_node/crypt.html #include <stdio.h...
[4 replies] Last: not to worry, figured it out eventually (-_-) gcc -std=c99 file.c... (by bluefrog)
Tic-Tac-Toe program
 
Hey, I'm trying to make a Tic-Tac-Toe program, but I want to keep it as short and as simple as possible.. #include "stdafx.h" #include <iostream> int main...
[5 replies] Last: You may use std::system("CLS"); before showing the box. http://www.... (by coder777)
by alx119
Exercises suggestion
 
Hi, I started to learn c++ from a website.So far, I've learned about structures, arrays, a little bit about functions, enumerated types, pointers and referen...
[2 replies] Last: Thank you very much! Next time I should search better :D (by alx119)
vb.net
 
hello everyone i have 3 questions that i did it as code in vb.net program but that is with a lot of error so can any one help me please i need it today . ...
[no replies]
by Areey
LOOPS...
 
I have trouble with this, a program to enter 15 numbers and calculate the summation and average of number less than 20. i successfully found the sum but for the...
[5 replies] Last: it works :)))) thank you both. int main() { int i, n; float sum = ... (by Areey)
Can someone please help?
 
Construct a class definition to represent a types of food. A type of food is classified as basic or prepared. Basic foods are further classified as Dairy,Meat,F...
[1 reply] : How far have you got? (by Moschops)
by Bopaki
The implementation file does not see the header file
 
Write your question here. I have a header file( employee.h) and an Implementation file (employee.cpp) but I cannot compile the the implementation file. I get a...
[5 replies] Last: I have resolved my problem. Thank you all. (by Bopaki)
help
 
Write your question here. Write a C++ code to implement the following tasks: 1. The company ABC wants to develop an employee management system. The company has ...
[1 reply] : Why is totalSales Amount an integer instead of a float? You're suppos... (by dhayden)
max and min word in string
 
How me find max and min word in the string? #include <iostream> #include<cstring> #include<iomanip> using namespace std; int count=0; int wordsstr(...
[4 replies] Last: this function couted words in the string No it didn't. It counted t... (by dhayden)
value
 
i have done that code ..problem is that when i have set value of dim1,dim2 through main function ..but it just taking the garbage value not the value i have g...
[3 replies] Last: The object s and t are two completely different objects. The share... (by coder777)
by Gector
COM port not sending any information
 
Why doesn't this return the the information that my arduino is sending on COM3? No errors are thrown. #include <windows.h> #include <stdio.h> #include ...
[2 replies] Last: Try this code to see the error: #include <windows.h> #include <stdio... (by Thomas1965)
Madlib program help
 
this is a madlib program for some reason when it runs it works as expected except the first cin.get line for the first madlib isnt displaying the string idk wha...
[1 reply] : Very likely that you have a mix of the operator>> and getline(). See t... (by coder777)
Creating multiple occurences of the same struct
 
Hey guys! So, here goes the code at first. char.h #ifndef CHAR_H #define CHAR_H struct Character { int hp; int attk; }; extern Character goon;...
[7 replies] Last: Hey JLBorges! That seems to be great! Infact it went over my head till... (by TheLoneWolf)
How do I get the code to stop running if a certain condition is true?
 
Hey everyone! I am curious how I get a program to stop executing once a particular condition has been met. For example: #include <iostream> using namespace s...
[4 replies] Last: Excuse me, I meant while ( weight > 0 || weight < 0) (by Nick Schuck)
My C++ program stops half way
 
I am new to the programming. I have an assignment that required me to write a program that sells items. The program is supposed to ask the user a couple questio...
[5 replies] Last: Glad to hear you got it working. Good luck. (by McNo)
Setting "positions" to an array of object[6][6]
 
Hi, im currently making a match 3 type of game and I'm stuck at this point. I can randomly fill in my 6x6 array, which is my gameBoard, but the positions im set...
[1 reply] : Thinking about it, do I really need a position, as the index of the ob... (by Viiarge)
by Kyle M
***Pointer notation
 
I had a question about certain kind of pointers. If you had say int **Ptr; How does that exactly work. I know normal pointers from pointing to int variables to ...
[1 reply] : If you are asking what it means, it is a pointer to a pointer. If you ... (by Nick Schuck)
March 2016 Pages: 1... 3334353637... 47
  Archived months: [feb2016] [apr2016]

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