Beginners - November 2018 (Page 16)

[PLEASE HELP] create a file in function that returns void
 
I would like to create a file in function. there is no compiling error for the code below but it does not create any file either void Terminate (string data,...
[7 replies] Last: > The output file should be in the same directory as the ".cpp" files ... (by ne555)
A small problem with retrieving info from a txt file.
 
Hello everyone, I have a program where i have to take inputs for tickets each ticket has a unique number. and the ticket number range goes from 1 to 51. so ...
[7 replies] Last: The code is pretty much a mess, a big mess. but i will post it, it has... (by fahad99)
is this code accurate?
 
I found the following code on the internet which indicates the maximum enter number. However I found the user didn't declare "max" in the first place, and the c...
[2 replies] Last: Lets see: Enter integers (-1 to end): -3 -4 -1 Maximum: 0 The progr... (by keskiverto)
My code doesn't work properly
 
What's wrong with my code? It always displays the last number! #include<iostream> using namespace std; int main() { bool flag=true; int x, max, count...
[3 replies] Last: Ramp up the warnings in your compiler (see your other thread) In fu... (by salem c)
std::bad_alloc with large std::map and std::unordered_map
 
I am writing a program that loops through a filelist of files in a user-specified directory. If they are not present in a reference set, the 31-character string...
[4 replies] Last: How many files are we talking about here? As others have said, make s... (by dhayden)
how to write this quetion in C++?
 
Part 1 Create a standard deck of cards using an array. (1-dimensional or 2-dimensional, up to you). The deck should have 52 cards. The deck should have 13 rank...
[4 replies] Last: A lot of progress in an hour from being 'clueless' (Nov 10, 2018 at 12... (by salem c)
reverses wav file data
 
hello i have problem of reverse wav data for my assignment. the assignment require me to write a C++ program that reads in a WAVE file, reverses the audio samp...
[1 reply] : At line 81, ptr2 is off by one. It points just past the end of the ar... (by dhayden)
by Satan
Generating a maze
 
So I need to generate a maze dynamically, meaning the user gives the dimensions and I must construct the maze using a function. And I need to make multiple ...
[8 replies] Last: Also posted here -> https://cboard.cprogramming.com/cplusplus-programm... (by salem c)
validate wav file size with wav header
 
Hello i have problem of validate wav file size with wav header https://imgur.com/p92l39p suppose riff_size should match with filelength , but the value in not...
[4 replies] Last: The first thing I would suggest is commit to using either C or C++. A ... (by salem c)
sizeof
 
Hi, how can I know the size of an int or double whithout using sizeof? ItĀ“s in the stroustrupĀ“s book principles and practice using c++. tks!
[16 replies] Last: Is it any better if I started from the maximum representable value (fr... (by lastchance)
by Tduck
How to store nodes in a vector?
 
A node is a data type right? So I should be able to create a vector of that dataType? Or am I missing something or doing it wrong? Can I create a vector<node...
[5 replies] Last: I have the vector to make future functions easier. eg a function that... (by helios)
From Console to visual?
 
Here, we have a simple console program for a calculator. My question as a beginner is: A console program doesn't have visual buttons and visual functions. I wa...
[6 replies] Last: [quote=Rascake]will I need GUI knowledge to use Cocos2d-x or Cocos Cre... (by Satan)
Trying to get this Craps game to work.
 
So my program works it just doesn't generate new rolls when I play another game. I'm using a seed of 35 because the assignment requires me to do so. How can I g...
[5 replies] Last: Putting srand (35) at the beginning of my main function fixed my issue... (by bored622)
Trying to get this program to work... weird error can someone explain please?
 
Write your question here. undefined reference to `main' collect2: error: ld returned 1 exit status I have not seen this error before can someone explain pl...
[2 replies] Last: Lol okay yeah i see it. Im so sorry thank you (by CISPStudent)
by s17dce
How to develop in Team / Tools to manage programming in team
 
Hi. How are you? So. My question is. How can I manage developing with a Team? Is there any possible Tool that we can develop at the same time in One Proj...
[4 replies] Last: Is there any possible Tool that we can develop at the same time in O... (by Ganado)
Where to start in SDL2 game design
 
I have mastered two C++ courses. I've, from memory, learned to make calculators, multiple choice quizzes and other lame software that only would've been noticed...
[no replies]
SDL texture not appearing
 
I am dealing with a very very frustrating issue here,the issue is that my picture of a ball or texture is not appearing on the window,I have spent the last one ...
[2 replies] Last: problem seems to be resolved for now, I did a clean and rebuild seems... (by adam2016)
by as34m
Sorting Help
 
How could I arrange the results of fats and proteins in ascending and descending? #include <iostream> #include <iomanip> int main() { std...
[4 replies] Last: #include <iostream> #include <iomanip> int main() { std::cout ... (by as34m)
by Tduck
How do you know what a template function will return?
 
Let's say I have a function that is a member of a class, eg template <class undefType) function<undefType>(undefType x,undefType y) {undefType b = x+y; re...
[4 replies] Last: C++ is statically typed. This means types are determined at compile-ti... (by Ganado)
starting point
 
So I am confused on where I should start here I believe that I start with an if statement after the cin << price function what do you guys believe I should do f...
[2 replies] Last: This might help, as a hint. You are on the right track. Give it a tr... (by jonnin)
November 2018 Pages: 1... 1415161718... 24
  Archived months: [oct2018] [dec2018]

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