Beginners - March 2016 (Page 25)

How To Update The text file HELLLPP!!!!
 
my text file (inventory.txt) Item ID:1002 Item Name:apple Item Qty9 Item Date and Time Delivered:9/22/19 Item Price:10000 Item Total:10000 ------------------- ...
[1 reply] : Have you ever used a framework. i recommend QT. personally i use QSett... (by rafae11)
defining #GLEW_STATIC allows program to build but stops responding
 
I'm learning OpenGL now and I'm trying to run some of the source code that it comes with. So I set up my links and changed the includes to what I need them to b...
[2 replies] Last: corrupt .drectve at end of file Most likely you are using libraries... (by cire)
fpermissive flag?
 
I've been working on a code for an Armstrong problem, but when trying to compile the code, I got this error: prog4a.cpp: In function ‘int main()’: prog4a....
[3 replies] Last: In early C++ variable lifetime was different: { int Y; for ( int ... (by keskiverto)
Need help with looping
 
Hello, I am totally new to C++. I'm looking to repeat this program with a simple y/n. But I also want it set up to only accept y or n as proper inputs. Right no...
[7 replies] Last: Thanks for the help, man, I finally got it. It's not exactly what you ... (by raven638)
using a for loop to read text from a file
 
I am wondering how to do an assignment for CS1. I am asked to read data from a txt file then output it to the screen. I am given a file that has the name of 78 ...
[no replies]
Passing arrays into functions?
 
I'm having trouble with passing arrays into functions, can anyone tell me whats wrong with the code here? #include <iostream> #include <conio.h> #incl...
[2 replies] Last: Thank you so much that was exactly what I needed actually :) (by Ijustwanna1)
A tough Algorithmic question?
 
Hey, Long time no posting, but regardless I was trying to do some algorithmic programming and I got stuck on this question: http://www.olympiad.org.uk/papers/2...
[5 replies] Last: /s/memorization/memoization/ (by Duthomhas)
what does ! mean when its before anything?
 
I came across a code while studying and was confused by the ! due to where it was placed can anyone help me our on this? if(S.empty() || !ArePair(S.top(...
[2 replies] Last: Thank you :) (by Raakfal)
Display prime numbers
 
The problem is to get a number and display all numbers up to that number entered, that is prime. I understand that a prime number needs to "only" be divisible b...
[2 replies] Last: So what would the loop look like ? (by Andrewcen16)
text file into array of structs (1,2)
 
I can not get this horrible code to this is the question as follows: Write a program to declare a structure consisting of an integer member and a float member,...
[34 replies] Last: its not your fault I'm just so upset because I'm paying my own money f... (by idk1234)
a nonstatic member reference must be relative to a specific object
 
I'm attempting to check if one of my bool functions return true or not and it would return that to my overloaded << operator..however im getting an error when i...
[3 replies] Last: Hi, If you are going to have a polymorphic class, you probably need t... (by TheIdeasMan)
Help with a project due tommorow
 
Hello. I am new to programming and cant seem to figure out this project. i need to have the program end if 2 invalid inputs ( valid is 0.00 - 100.00)are entered...
[4 replies] Last: Hello. did you finish this project? I'm in the same boat and my due i... (by iShaw)
Array notation and Pointer notation
 
I have to find the median by using array and pointer. I have to use pointer notation and not array notation. There is my work with array notation, how can I cha...
[1 reply] : Is there any way to change line(25) to pointer form? //pass the a... (by etrusks)
by CppLiz
C++ accelerated (Q 8-1) - Template function parameterised by another function
 
I've seen a few posts on here about the use of template functions and about questions from the book C++ Accelerated (Koeing/Moo) but none of them answer my ques...
[2 replies] Last: Thank you! I managed to find my way to a solution in the end and tho... (by CppLiz)
by nbro
Readline function implementation
 
I've created my own readline function, which reads a variable-size line from the standard input. It's been some time I've not practice much C or C++. Here's my ...
[no replies]
invalid preprocessing directive #include
 
Hi peoplewould anyone know why and how I get an error with my #include<stdexcept> header file statement? #include <iostream> #inlucde <stdexcept> usin...
[3 replies] Last: been studying all day lol yeah I think I'm gonna take break now (by adam2016)
by RNBW
[Error] Id returned 1 exit status
 
I get the error message " Id returned 1 exit status" on compiling the code below (not mine - copied and pasted) There is also a message "test1.cpp:(text+0x2f9...
[4 replies] Last: I'm just installing the Community Edition of Visual Studio, so I'll ch... (by RNBW)
Armstrong Number Program
 
I was given this assignment. I'm not sure how to do it, much less how to start, other than using namespace std. Any direction will be greatly appreciated. An...
[5 replies] Last: Thanks very much! I have almost got the code working, but I have run ... (by GetMeOuttaHere)
how do i format the output correctly? project already overdue but thought i'd ask
 
I am using IF ELSE statement and i already included what's needed for setw, as I formatted everything else, but i cannot for the life of me get my IF ELSE state...
[3 replies] Last: Your setw() is working just fine. However, you have some problems wit... (by AbstractionAnon)
Why is C++ taught at Universities?
 
Why is C++ taught in schools? So far I have taken intro, fundamental structures and OOP 1 and I am registered to take OOP 2 this summer. Meaning I have some und...
[no replies]
March 2016 Pages: 1... 2324252627... 47
  Archived months: [feb2016] [apr2016]

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