General C++ Programming (Page 6)

Cleaner way to handle incorrect input
 
Hi all, Currently, the way I'm handling input is as follows: int main() { int aNumber{...
[8 replies] Last: Thanks buddy. I see what was happening here now. I shouldn't return by... (by Aaron Vienneau)
check to see if file requires administrator privileges
 
I am trying to use shellexecute to open a program without it asking for permission to open it. Is it...
[no replies]
by eranda
How values given file(note pad), please fix it
 
#include "stdafx.h" #include <iostream> #include <string> #include <fstream> using namespace std...
[no replies]
number as a sum of 2 numbers from array
 
I have been trying to find if a given sorted array contains 2 numbers having the given sum. For 1 d ...
[no replies]
by kubu
Templates & DLLs
 
I am trying to create a dll that contains templates where the templates should be compiled (rather t...
[4 replies] Last: helios, that is perfect. I ended up doing what you suggested. Actually... (by kubu)
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)
Pages: 1... 45678... 39
  Archived months: [mar2016]

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