General C++ Programming - February 2013 (Page 35)

Divide and Conquer Algorithm
 
I've been stuck on a divide a conquer algorithm problem for about an hour now, and I'm not sure how to solve it. I need to use divide-and-conquer to implement ...
[2 replies] Last: Thanks for the input tfityo, I didn't find either link helpful. I just... (by tlang07uky)
by LB
Making a DLL with clang
 
I'm trying to make a DLL with clang. I'm following a tutorial for MinGW (because I am using the version of clang for MinGW) and it stops at a linker error. My ...
[no replies]
by J4ke
OpenGL/GLUT linking problem
 
I have some C++ code that uses OpenGL and GLUT. When I try to compile it, it gives me the following result: Warning: resolving _glEnable@4 by linking to _glEn...
[13 replies] Last: Yes, thank you, that worked. (by J4ke)
SFML and OpenGL On the Screen At the Same Time?
 
Simple True or False: Can you have something such as a SFML rendered Fps Counter on an SFML-OpenGL window the same time as there is a OpenGL rendered cube? ...
[3 replies] Last: http://en.sfml-dev.org/forums/index.php?topic=2645.0 Call App.Preser... (by NGen)
Initializing a inventory......
 
Hello I'm having trouble initializing my 4 bottles into my inventory list... I don't know how to go about it... thanks... #include <iostream> #include...
[1 reply] : [code firstline=27]Inventory::Inventory(){ name = "Random", type ... (by LB)
by cmc69
Please help with my functions. I'm a beginner.
 
Basically what I'm trying to do it take the area of a rectangle and break each step down into functions for a user to enter in information. I don't have any syn...
[2 replies] Last: It was just a class project because I mostly do it all in the main but... (by cmc69)
by Sucho
Permission Denied in Ubuntu
 
I've been using Code::Blocks in Windows 7 without any problems. I recently installed Ubuntu 12.10 and downloaded Code::Blocks with GCC compiler. After writing a...
[11 replies] Last: sucho must be the name of the usb or disk (by Smac89)
c++ loop help
 
my do and while loop isnt working, when the program runs it asks the user is they want to continue but when i hit Y it just says press any key to continue. /...
[1 reply] : Never mind i put a N instead of Y (by ezaz12121)
How do I start writing this program help!
 
Hi I need to write this but have no idea where to start, I am new to c++. Any tips and help are greatly appreciated. Write a C++ program that asks the user ...
[5 replies] Last: LOLs (by greenleaf800073)
by Belyvr
Not liking C++
 
Need some help im working on a class project and am having trouble getting the data to transfer between modules for example in one module calculate the mean and...
[8 replies] Last: Ok (by greenleaf800073)
File writing
 
Hey forum! I have looked at numerous threads on here, but could not find any that would fix my problem so I thought I would make my own thread. I want to run a ...
[7 replies] Last: Is that not exactly what I have? Haha and it was not working before. (by mshoppas)
Stream iterators and buffers?
 
Do stream iterators, such as std::istreambuf_iterator<char> , read a chunk of bytes internally, or do they read the stream one byte at a time? Because I am th...
[3 replies] Last: The moment the iterator reads a byte, it advances a pointer in the ass... (by Cubbi)
Rename a textfile in a GUI CLI project
 
Hello, can somebody please show me how to rename a textfile in a Visual C++ CLI GUI project. I've tried using the 'rename()' function but that isn't working for...
[2 replies] Last: More examples How to rename files... C #include <stdio.h> int main(... (by joneele)
by KSDood
Is the "main()" function REQUIRED these days?
 
While it may seem a foolish question, I'm trying to get caught up with some of the things added and done with the C++ language since I've been away. I ask th...
[5 replies] Last: Technically, C++ supports freestanding compilation model (OS kernels, ... (by Cubbi)
by h4me
Value assignments
 
Suppose x, y, and z are int variables. What value is assigned to each of these variables after the last statement executes? x = 4; y = 11; z = y - 2 * x; x...
[3 replies] Last: Thank you both for your help. (by h4me)
by pwn2d2
Error reading file into an array
 
I am working in Eclipse, and it keeps giving me this error that I do not understand. In the fillTable function, "is >> kP " Eclipse says: no match for 'operator...
[3 replies] Last: kP is a pointer to KeyValuePair<Key,Value> , so when you reference ... (by LB)
by Dannie
Help Please!!! Need Help Programming Kanets ALgorithm
 
Here is the logical steps that I must program...so far I have programmed the sort in descending order I am having trouble figuring out how to split the original...
[no replies]
by RIYAZ
Double Bubble Sorting Problem!
 
i wanted to sort an array with double bubble sort but it didnt work!!! please help me! my code is this: void doubleBubbleSort(int *array, int length) { ...
[3 replies] Last: Here's a straightforward translation of your (obviously still erroneou... (by cire)
Help me !
 
I try to Debug but this error Come UP 1>------ Build started: Project: f, Configuration: Debug Win32 ------ 1>Compiling... 1>ade32.cpp 1>c:\document...
[4 replies] Last: You need to have all of your include files in the same directory as y... (by MikeyBoy)
Using ofstream in STL list
 
Why the following code failed ? And how should I modified ( Compiler : Qt5 + clang64 ) #include <iostream> #include <fstream> #include <list> using...
[3 replies] Last: The C++ streams aren't copyable, but they are movable (since C++11). T... (by Cubbi)
February 2013 Pages: 1... 3334353637... 43
  Archived months: [jan2013] [mar2013]

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