General C++ Programming - September 2014 (Page 18)

by fafner
return type ... differs from that in the declaration
 
I have two classes, Scene and ShaderInfo, and they need to know about each other. To avoid circular includes, I used a forward declaration of ShaderInfo in Scen...
[5 replies] Last: Thanks for your replies, I ended up doing things a little differently ... (by fafner)
Sqlite3 Learning material.
 
Hey I've been looking at various websites and tutorial for using the sqlite3 connector. I can't seem to wrap my head around it. But really need to understan...
[2 replies] Last: Yes,Please. (by Jeroen Mathon)
C++ IDE Closes when Alt+F9 or Alt+F5
 
Hello everyone. I've recently downloaded c++ ide for windows 8(dos boxed version). Every time i try to compile or run any program. CPP Console closes down...
[3 replies] Last: Does the console close or does it crash ? There is a significant di... (by Computergeek01)
by akai09
NEED HELP (Beginner!!)
 
1
[4 replies] Last: Or stdlib.h:#define EXIT_FAILURE 1 In other words: 1. Re... (by keskiverto)
Need help with assignment!!!!
 
Hello! We have this assignment for my OOP paper where we need to create a darray.cpp file that defines a class declared in a header file (darray.h) and should b...
[4 replies] Last: You have 10 functions to implement. It seems logical that 4 of them i... (by keskiverto)
[Help]Virtual functions from 2 separate base classes
 
So I have 2 seperate base classes, (note that I removed the variables and functions that do not relate to the topic) Object.h class Object{ public: Object(...
[6 replies] Last: > Why is it that you need to cast the void* back to the original type ... (by JLBorges)
Urgent example needed
 
Hello I am currently working on a project ,but I need an example of the following pseudo-code: Open sequential file for reading Open Binary file for binary|...
[3 replies] Last: std::ofstream bin_stream(bin_filename, std::ios::binary); std::str... (by kbw)
figured it out
 
I figured it out. :)
[1 reply] : Can you believe that we are in the same class? We are doing the same a... (by Teeman92)
Function Output Bool Errors
 
My functions testArray and searchArray only seem to have one possible output. The output of testArray is always "Duplicate elements present", and the output of ...
[1 reply] : *sigh* void testArray(int numArray , int & SIZE) { assert(SIZE <= C... (by Yay295)
by cloogs
Need Help with a homework assignment.
 
Here is my code... #define _USE_MATH_DEFINES // for C++ #include <cmath> #include <iostream> #include <iomanip> using namespace std; int main() { // ...
[1 reply] : The goal of the assignment is to create a table using the setw() funct... (by cloogs)
VideoCalling theory
 
Note: Im not speak english xd Well, mmm i have a question ... mmmm a program that works as videocall, example: >server: send visual data to client >clien...
[no replies]
Designing an email client
 
For educational purposes I want to build a c++ email client and calendar app, the calendar I suspect will be fairly simple, the email client part however will b...
[no replies]
c++11 - static variables by instances
 
can i have 1 static variable with instance diferent value?
[3 replies] Last: Per instance state: internal state => non-static member variables Stat... (by JLBorges)
Addiding offset to Midpoint Displacement
 
Hello I have a algorithm and I want to add a offsetx/y location. So I can move around the generate map. The code places a seed at the corners of the defined ...
[no replies]
Regex translation
 
I have used regular expressions in Perl, but not C++. After I read in a Web Page I want to re-format it’s spacing and new lines. The first step is to remove...
[1 reply] : See std::regex_replace: http://www.cplusplus.com/reference/regex/rege... (by norm b)
what can't non-const object receive temporary object
 
a function returns a temporary object like int myfun(){ int x = 0; return x; } this function will return a temporary integer now void fun1(const int...
[7 replies] Last: To answer the "why" part, as far as I have heard, the reasoning early ... (by Cubbi)
by Pured
How do use multiple terminals in a getline()?
 
I am reading a file of text. I want to read in every word, but no spaces or newlines. "word" is a string, and "c" is a char (used for getting rid of white space...
[3 replies] Last: foo, I thought that you have spanned multiple pts. (by ne555)
Reading a TXT line into a string.
 
void login() { //username, password, option to register, option to exit, link to website cout << "Would you like to login(1), or press anything else to...
[1 reply] : Read the csv file one line at a time. Parse out the comma separated fi... (by dhayden)
Windows run, in C++
 
I'm trying to code a program that opens a program. I have a command that I normally run manually in a Windows run (Windows Key + R). Command: "C:\Riot Game...
[5 replies] Last: I get this again 'c:\Riot' is not recognized as an internal or exter... (by cppeter)
Simple For Loop Program
 
Hi, I wonder if anyone can answer a simple question. Is it possible to write a program where for example: You write a simple "Hello World" program with a tw...
[9 replies] Last: I am aware of that @luckybc - Thanks (by rayzeus)
September 2014 Pages: 1... 1617181920... 28
  Archived months: [aug2014] [oct2014]

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