
please wait
by code4545
Urgent Help With A Segmentation Fault!
|
Like the title says, I'm wondering why my program is giving me a segmentation fault when I try to run it. For example, in the testequiv.cpp file I try to call t... |
Feb 22, 2017 at 3:29am
[12 replies] Last: So I've tried this.. if (boss == x) { return x; } ... (by code4545)
|
by Bizzy
Check 3 in a Row
|
Hi, so I'm working on a project for school where part of it involves having to check if there are 3 of the same color in a row on a 2D array board. I was given ... |
Feb 22, 2017 at 3:25am
[8 replies] Last: @ufrnkiddo Your code was spot on, man. I appreciate the help from ever... (by Bizzy)
|
by MisterTams
Correct and Incorrect Calculation inside of a loop! Why?
|
I need help trying to figure out why my calculations seem off. I'm using the following file. ABC 23 18.50 23.25 1.00 1.30 XYZ 5 226.20 175.00 5.00 4.00 My calc... |
Feb 22, 2017 at 2:17am
[11 replies] Last: Mantorr22, Thank you for your help. It looks like the program is calc... (by MisterTams)
|
by teopeishen
what is the meaning for []
|
i have complete a code . but i dun understand why need to put after a variable. What it mean? Why need to put char in front of variable?When i make statement nu... |
Feb 21, 2017 at 11:26pm
[2 replies] Last: you also have to notify the program initially what type of variable yo... (by kingkush)
|
by landlord2017
Help for a tree problem
|
LeetCode challenge question (https://leetcode.com/problems/flatten-binary-tree-to-linked-list/?tab=Description): 114. Flatten Binary Tree to Linked List Abov... |
Feb 21, 2017 at 10:56pm
[7 replies] Last: Amazing! Great explanations with great examples. I learned a lot. Th... (by landlord2017)
|
by danciu
algorithm 01
|
What is correct answer: a. runtime error or b. 0,2,3, thank you #include <vector> #include <iostream> #include <algorithm> using namespace std; cl... |
Feb 21, 2017 at 7:38pm
[5 replies] Last: Thank you (by danciu)
|
by AndreasTm13
A simple exercise
|
I have a string with n elements and the exercise asks me to display the highest figure of each number. The code I have wrote so far displays the first figure o... |
Feb 21, 2017 at 7:06pm
[2 replies] Last: Thank you @gunnerfunner (by AndreasTm13)
|
by erikxsson
Network rookie question
|
Hello. I'm trying to write my first code using boost::asio. My first step would be to ensure that I can accept incoming TCP, for this I wrote a simple progr... |
Feb 21, 2017 at 7:02pm
[1 reply] : Note that you are detaching the created thread. That means that the OS... (by helios)
|
by Pampam
Divide by recursion
|
Hello, this program should divide n/(n-1) using recursion. I need it to work like - if i do input = 6 it have to 6/5/4/3/2/1 and output = 0.05, but it does some... |
Feb 21, 2017 at 6:19pm
[2 replies] Last: if i do input = 6 it have to 6/5/4/3/2/1 -->This also does not seem... (by newbieg)
|
SDL windowsurface size |
Hello, in my SDL code the window has a smaller size then the accompanying windowsurface ? How can this be? i need them to be the same size pWind... |
Feb 21, 2017 at 5:45pm
[2 replies] Last: Did you do error checking when you initialized SDL? Try this code tha... (by newbieg)
|
by wasey
Calculating Mode, Only First Integer Input Being Displayed
|
Hello, I'm having trouble with a program that is supposed to read a set of integers input by the user and calculate and display the mode(s). Right now only the ... |
Feb 21, 2017 at 4:40pm
[2 replies] Last: I can't thank you enough for taking the time and helping me out, with ... (by wasey)
|
by danciu
algorithm 02
|
What is the correct answer: a. runtime error or b. 1, 0 thank you #include <deque> #include <iostream> #include <algorithm> #include <set> using na... |
Feb 21, 2017 at 4:37pm
[2 replies] Last: If the error in the program is fixed (use a valid identifier, say rig... (by JLBorges)
|
by Crim
Error on &m_Width and &m_Height
|
So im messing around with GLFW and I am trying to create a window with a viewport to make sure that stuff is centered around the screen, i seem to come with thi... |
Feb 21, 2017 at 2:46pm
[2 replies] Last: Oh so I did, thank you man! (by Crim)
|
by B260z
Almost finished with homework, but need a little help
|
I've figure out most of the mistakes I made in the code, but I've been looking at this code too long and honestly can't figure out what it missing. Can anyone h... |
Feb 21, 2017 at 2:08pm
[11 replies] Last: Please post your new code. (by dhayden)
|
by danciu
algorithm
|
What is correct answer: a. runtime error? or b. 0,3,9,2,0,0,0 ? What will happen when you attempt to compile and run the following code? #include <vecto... |
Feb 21, 2017 at 12:02pm
[2 replies] Last: Use an iterator adaptor like std::back_insert_iterator<std::vector<int... (by gunnerfunner)
|
Using boost::property_tree |
Dear all, Having the following xml file: <A> <B/> <B attr1="value1" attr2="value2" /> <C> <D /> <E attr1="value3" /> <E attr1="value4" /> ... |
Feb 21, 2017 at 11:59am
[1 reply] : The tree does not have a function set_value(...). It is either put_val... (by coder777)
|
by nyork3415
Trouble with Sorted Linked List
|
I'm converting a previous program that used a linked list to display data from a .csv file into a sorted linked list (eventually I will be introducing an additi... |
Feb 21, 2017 at 10:40am
[1 reply] : Perhaps someone will go through your 300 lines of code and give you a ... (by gunnerfunner)
|
by mynicks
error: invalid use of void expression
|
CodeBlocks... warning: dereferencing 'void *' pointer [enabled by default]| error: invalid use of void expression I believe i do not know how to properly ... |
Feb 21, 2017 at 10:10am
[3 replies] Last: Cast your pointer to the desired type before manipulating it. The p... (by mbozzi)
|
by nomat
Trimming a string
|
Guys this program is supposed to read names from a textfile then for each name, remove all spaces and delete all characters after the 8th one and output all the... |
Feb 21, 2017 at 9:59am
[5 replies] Last: Will give these a shot.... see what outcome i get (by nomat)
|
by quantumleap
Alphabetical Sort Using Overload???
|
I have to write a program in OOP format that reads in student names/grades from a user provided file, outputs the raw data, sorts & outputs the data by alphabet... |
Feb 21, 2017 at 8:27am
[1 reply] : I’m sure you have already solved your exercise, anyway: Your code: ... (by Enoizat)
|