Beginners - June 2014

Crazy grades
I've been trying to make this work, the text file is called "grades", and this the numbers I'm given by the instructor in this file: 44 55 77 88 79 88 100 99 ...
Jun 30, 2014 at 10:48pm
[5 replies] Last: After trying the 2D array along with a nested for loop, I GOT IT TO W... (by Eheroduelist)
by gawndy
Creating a GUI application with c++?
Hello. I was wondering if it was possible to create GUI applications with C++. I heard it was possible with something called QT but I know nothing about that. ....
Jun 30, 2014 at 7:34pm
[7 replies] Last: @Needstep, you are correct. I took about 3 hours trying to learn QT an... (by gawndy)
Code with multiple functions
Hi there! First off, thank you for taking the time to read/lend a hand with this question. To the long-timers on the forum, I realize you see these kind of ques...
Jun 30, 2014 at 7:30pm
[6 replies] Last: Perfect, that's exactly what I needed to know. AbstractionAnon, Manga... (by TheChase21)
by Drak
Sort Array Function
So arrays are not my strong point and once again I call upon this forum. The output of the code should look something like this: 6 10 20 5 30 15 25 The origi...
Jun 30, 2014 at 7:15pm
[3 replies] Last: This is literally all he gave us to work with. Seems adequate to me... (by jlb)
References and calls between files/classes
Greetings. I would like to know how to "pass" references between classes. Let me write in pseudocode for simplicity sake. //this is typeThird.cpp #in...
Jun 30, 2014 at 7:07pm
[8 replies] Last: > The classes have a relation of dependency between them. > Each must ... (by ne555)
problem with bubble sort
Write your question here. #include<iostream> #include<conio.h> using namespace std; int lsearch(int , int* , int*); int b_search(int , int*, int*); ...
Jun 30, 2014 at 6:43pm
[5 replies] Last: Line 77,93: These functions don't return anything. They should be v... (by AbstractionAnon)
How to draw BST
So we have these numbers and I have to draw a balanced tree and then remove 7 .. so these are the numbers -42 1 3 7 23 31 88.
Jun 30, 2014 at 6:36pm
[2 replies] Last: i got 7 on top, and 3 and -42 as second generation and the rest of the... (by whoovian11)
Computing adjusted BMR (using overloaded function) (1,2)
I'm attempting to compute the adjusted BMR using an overloaded function. The first function correctly computed the BMR, but when I get to the overloaded functio...
Jun 30, 2014 at 5:10pm
[20 replies] Last: Maybe i'm just missing the point here. i was trying to guide you towar... (by Chervil)
problem with pointer
Write your question here. #include<iostream> #include<conio.h> using namespace std; struct node { int data; node *next; }; typedef node *...
Jun 30, 2014 at 4:58pm
[4 replies] Last: Line 26. PS. Global variables are naughty, although not a major culpr... (by keskiverto)
Applying callback to call gsl_integration
I am a newbie with c++ and I am trying to modify a code and use gsl_integration library of c in a class called Cosmology . In order to assign member functi...
Jun 30, 2014 at 3:16pm
[3 replies] Last: You can initialize a static const without C++11. (by AbstractionAnon)
Question about pointer
Why do we use pointers when we can just directly set the value of a variable to another like in the 2nd code? Just started getting into pointers and that was th...
Jun 30, 2014 at 2:44pm
[5 replies] Last: > Why do we use pointers when we can just directly set the value of a ... (by ne555)
Threading in c++
Hey Bro I want to learn about threading in c++ If you guys plz help how should i start with threading in c++??? I have no concepts about threading so plz ...
Jun 30, 2014 at 2:32pm
[9 replies] Last: http://www.sfml-dev.org/ (by MiiNiPaa)
by tem14b
This is not compiling in Xcode, very confused
Xcode gives me errors, and when I fix what it wants me to fix, I get more errors. Currently the errors given are: 'unknown type name " '-line 2 'expected ';'...
Jun 30, 2014 at 1:27pm
[11 replies] Last: @tem14b Don't double post ( http://www.cplusplus.com/forum/beginner/13... (by BHX)
by h4ever
Problem with different types, WCHAR
I am trying to fill vector src.Files with values of file names, having problems with different types. When I try to pass search_data.cFileName directly to the v...
Jun 30, 2014 at 11:55am
[4 replies] Last: I thought that UNICODE is multibyte... That was why I used it. I chang... (by h4ever)
LNK 1120 and LNK2019(unresolved external error)
I have been making this SDL game it's been working fine until now when i opened it and showed me these two errors the code is too lengthy it would be hard to pa...
Jun 30, 2014 at 11:50am
[5 replies] Last: Sorry i found it the problem was that i didn't added existing file for... (by Sharan123)
Problem with enums.
I'm writing a quick tic tac toe game but my plan is to pass the enum PLAYERS, to the function "firstGuess()", when trying to pass the enum, it tells me "type na...
Jun 30, 2014 at 11:16am
[3 replies] Last: Oh right that makes much more sense to me. I didn't realise that I de... (by Sausage)
by h4ever
how to inititate vector
I have class which has member Files . This should be vector of strings. Instance of class SRC should hold names of files which will be read from directory (lat...
Jun 30, 2014 at 10:53am
[5 replies] Last: And you probably thought so, because you already have something in t... (by keskiverto)
by bonho
communication between threads and/or processes
I would like to run two C++ process / threads independently with one as "sender" and the other "receiver". For instance, "sender" will read keyboard instruct...
Jun 30, 2014 at 10:47am
[7 replies] Last: I worked on a project that used it. It was slow, but so were the mach... (by kbw)
by MarcG
Length Converter
Is there anyway to make this simpler? And/or that can function better? http://pastebin.com/0SXJFuBn Couldn't post the code here, exceeds the maximum chara...
Jun 30, 2014 at 10:44am
[4 replies] Last: It makes no difference to the end user. It is "simpler" for the origi... (by keskiverto)
Gui Programming
With GUI programming most tutorials and information i find all suggest using new programs such as QT or Widgets to help with the process, why don't people progr...
Jun 30, 2014 at 9:10am
[7 replies] Last: code blocks comes with a designer (wxSmith) for the GUI framework wxWi... (by coder777)
June 2014 Pages: 123... 48
  Archived months: [may2014] [jul2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.