Beginners - July 2017 (Page 11)

by Dmtg93
Need help with a grade processor assignment using arrays.. (1,2,3,4)
 
So my teacher is giving us a week to do this and I dont really have time to read all the material in the text. Ive been skimming it. I need help as I'm not sure...
[78 replies] Last: Time to show us all your code. I'm surprised int scores {0} worked th... (by closed account 48T7M4Gy)
by stav
problems with __declspec(dllexport)
 
I'm trying to make a game engine library but i'm having some trouble with setting up the project, properly. i have an include folder where i keep the library h...
[6 replies] Last: that's 4 times the same reply (by goldenchicken)
how to push filestream into a char pointer
 
as practice , my goal is to read from a file called test.txt and display the length of each word using the a count function. for some reason i keep gett...
[4 replies] Last: Here is it in gool old plain C99 /* Simple prog to read words from a... (by Thomas1965)
Can any one solve this qns.
 
How to convert the following fractional decimal number to binary by using sum of power of 2 method? 1/2= 1/4= 1/8=
[5 replies] Last: Mr. Jonnin Thanks for your response. 1/2= 1* 2 power -1 = 0.1 how ... (by r 4 raja)
It is possible to craft Mobile app in C plus plus programming Language.
 
If you use Windows you can do it in Visual Studio. https://blogs.msdn.microsoft.com/vcblog/2017/04/18/android-and-ios-development-with-c-in-visual-studio/
[no replies]
can't understand why cout << someInt << endl; returns 65
 
I ran the code below on my terminal and it returned A 65. I understand why it returned A but I am absolutely clueless as to where 65 comes from. I went through ...
[2 replies] Last: Just a quick note, please make your title give a clear description of ... (by goldenchicken)
by mrsh
least aquare method
 
hi,i would like to ask on how to fit curve with equation y=-ax-bx^2 using least square method.
[2 replies] Last: Set: squared error, S = Σ(y+ax+bx 2 ) 2 Set the partial derivatives... (by lastchance)
Storing strings/integers to be used in a different class from seperate file.
 
Hello forum hope you're all having a sweet day, Im new to C++ and am trying to make a text based game in the console (I know the argument already, I know what I...
[7 replies] Last: Okay so I've done some work, having a hard time understanding but gett... (by MoreUmph)
packaged function object runtime exception
 
I am trying to test a packaged task, using std::packaged_task. I am unsure why this code generates a runtime error though. Can anybody point me to working...
[5 replies] Last: thanks, I was linking as follows: g++ -g -Wall -o "%e" "%f" -L /usr/... (by bluefrog)
not sure why the cout returns 65.
 
Can someone please explain to me why cout << someChar << " " << someInt << endl; returns A 65? I understand why it returns A but not sure why 65 as s...
[2 replies] Last: got it! thanks for explanation! (by ahswong)
Ofstream problems
 
Good day everyone, I have a problem in my program, when i use ofstream called write, main.exe starts to not respond, and crashes. If i copy ofstream part to a n...
[8 replies] Last: Hello Misenna, I think i didn't explain my question clearly, sorry. M... (by Happilicious)
Need help with my mock exam
 
We are given a main and we have to code the classes without additional includes and so on (of course without changing the main). When i run the programm i get ...
[8 replies] Last: > I would be nice if the order can be solved, but it is possible that... (by sapi3ntia)
change all objects that contain a certain value
 
hello everybody in the following code, i want to change all elements of "a" that contains any element from "i" to 0. #include <vector> #include <algorit...
[7 replies] Last: Here is a third version: #include <iostream> #include <vector> #incl... (by JLBorges)
#pragma & #pragma once usage
 
Hi , I don't have any Ideas about what these preprocessors will do. Can anyone please explain ? Thanks.
[3 replies] Last: Hello King Of CPP, You may find this line useful. I use it quite ofte... (by Handy Andy)
Please tell what will be displayed
 
class Node{ public: int data; Node * next }; Node *p1 = new Node, *p2 = new Node, *p3 = new Node; p1->data = 12; p2->data = 34; p1->next = p2; p2->next =...
[1 reply] : Please do not double-post. Other thread: http://www.cplusplus.com/foru... (by keskiverto)
remove common elements from two vectors
 
hello i made a code to remove all common elements in two vectors of objects. firt i'd like to know if is there any more elegant way to do it, and if i made so...
[6 replies] Last: oh, i got it. thanks for the answer :) (by Stauricus)
by H00G0
'stoi()' was not declared in this scope.
 
Hello! I'm currently having an issue trying to compile a simple code in dev-C++. I'm working with strings ( #include <string> ) and want to convert a stri...
[14 replies] Last: Thanks gunnerfunner. (by Thomas1965)
by zxcvbn
Questions about the serial programming of 28335
 
Hello~all,thank you for spending time in reading my thread.I have some troubles.The following states: 1).I bought a development board from internet and the ser...
[no replies]
dynamic allocation problem
 
Write your question here. #include <iostream> #include <cmath> using namespace std; struct points { double x1; double x2; double y1; doubl...
[2 replies] Last: delete structObj; with std::unique_ptr<> or std::shared_ptr<> such ... (by gunnerfunner)
shared future with single promise
 
I am trying to understand the code below, which has three future threads running, but only a single promise, which passes the argument 4. So the question is,...
[3 replies] Last: thanks. the discussion by Howward on the link you provided makes sens... (by bluefrog)
July 2017 Pages: 1... 9101112
  Archived months: [jun2017] [aug2017]

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