General C++ Programming (Page 5)

Advanced question
 
I have the following struct: struct bitFields { unsigned short userInputA : 3; unsigned short use...
[5 replies] Last: I just noticed. You should saturate the input before assigning its v... (by helios)
Creating an Array Based on User Input
 
Hi All, I am trying to create a variable length array based upon a user's input. I am not sure wh...
[7 replies] Last: Rusko, thanks for pointing out the delete part! :) (by Little Captain)
by Wesus
Having problems getting started on this project.
 
I currently have a challenge to complete in 72 hours that is over my head. I have no idea where to s...
[2 replies] Last: http://imgur.com/lLtYoSh This link is the image of what the challenge... (by Wesus)
by Rusko
C++ Primer 5th ed question
 
it says: We can use an if to write a program to count how many consecutive times each distinct value...
[3 replies] Last: Please don't alter your posts after the fact, just add a new post to t... (by jlb)
Segmentation Fault
 
In the below code, i am getting segmentation fault at cout << ... Can anyone explain why it happen...
[2 replies] Last: Any function of the following form is incorrect: T *f(/*...*/){ ... (by helios)
by Peril
Swapping Arrays.
 
Hello. I was wondering how to swap array in place of another array. For example, if my array is 1, 4...
[12 replies] Last: if you know the size of data you will store arrays are much faster Ar... (by helios)
how to get innerText with libxml++ ?
 
Hi, I develop application to parse a html file with libxml++. I using TextNode to get texts of Eleme...
[no replies]
re sizing a 2D vector of Structs
 
Hello, I'm working on making a minesweeper game using C++ but I'm having trouble re sizing a vector....
[no replies]
ok, solved
 
deleted
[1 reply] : This is not a homework site. We won't do your homework for you. Howeve... (by AbstractionAnon)
by Gyiove
Can anyone help me speed up this code without taking any more memory
 
Hello everyone! Here's a really simple neural network code I created: #include <vector> #include ...
[4 replies] Last: > Avoid returning a vector by value. That involves copying the vector... (by JLBorges)
newbie question about parameters
 
I have a C program with a #define as follows : #define MAIN_MSG "Testing" I want to not have...
[9 replies] Last: You should probably review Macros and Functions for a good bit before ... (by Uk Marine)
Pointers, Dynamic Arrays and Exception Handler.
 
So I have this activity for programming classI'm only allowed to place codes where it says "add code...
[2 replies] Last: thanks for the help and advice ne555. I appreciate it. (by JoblessRob)
Where to start
 
I am fairly familiar with c++ and a few other languages. I was wondering where would i need to start...
[7 replies] Last: What language do you want to use? For C++ SFML or SDL are popular for... (by Thomas1965)
Binary Search Tree Operations
 
Hi! I have a homework based on the BST. I have some of the operations from the class but some I had ...
[1 reply] : Your insert_rec() and *Traversal() methods look good, but I'm havi... (by dhayden)
why size of allocated memory to array is wrong ?
 
Hi, I write simple program to allocate memory to char array. #include <cstdlib> #include <iostream>...
[11 replies] Last: A 16-byte allocation granularity is perfectly normal assuming the comp... (by nikcpp)
Managing Containers of Pointers
 
Hey all, Would you recommend managing containers of pointers through unique_ptr<T> interfaces? In a...
[2 replies] Last: Thank you! This is helpful. I didn't know about std::make_unique_ptr()... (by Aaron Vienneau)
by Xriuk
Anonymous object outside main
 
I have such helper class/struct to call functions on initialization, and I need to create anonymous ...
[6 replies] Last: An anonymous object/variable/instance declaration needs to be within a... (by Little Captain)
by Peril
Problem Reading Inputted Integer.
 
Hello. I've been asked to do this function which basically reads an inputted integer and then return...
[2 replies] Last: Yeah, I figured that out. Thanks. (by Peril)
problems declaring derived class objects in a base class
 
This assignment is not yet finished, but I can not figure out why it will not run as is. It is suppo...
[1 reply] : struct A { B b; }; struct B : public A {}; This is essentially the ... (by cire)
Pages: 1... 34567... 38
  Archived months: [mar2016]

Cannot post in this page. To post a new message, go to the first page.