General C++ Programming - May 2013 (Page 3)

Writing Integer Array to File in Binary Form and Reading It Into Integer Array
 
Both arrays arr and pointers are the same size. I am having problems reading pointers from file int...
[2 replies] Last: pointers is just an array of integers. (by knowNothing)
Curly Braces If Else
 
I have problems understanding when to use curly braces on If Else statements. I'm new to C++ and if ...
[3 replies] Last: There's a tight battle between two different kinds of programmers: tho... (by LB)
Function pointer with an object as parameter
 
I'm making a code that uses a Function pointer. The problem is, when I try to compile appears an err...
[12 replies] Last: Oh, I understand now. Thank guys. I had already programmed in C and Ja... (by francilio)
trying to get a timer in a game i made, can't get it to work.
 
#include <iostream> #include <cstdlib> using namespace std; int t=0; //timer int main() { int r; ...
[1 reply] : 1) You are not calling your time() function anywhere 2) If you call it... (by MiiNiPaa)
Strings in C++
 
How do you handle strings in C++ . Mainly Input. Now You might be thinking that I should post th...
[1 reply] : #include <iostream> #include <string> using namespace std;/d //Avoi... (by MiiNiPaa)
nibble vector, iterators?
 
I'd like to cook up a nibble vector (packed vector with datatype 4 bits). I need this to be memory ...
[5 replies] Last: Ummm, for my use i have zero problem with &vecnibble working. Just b... (by bnolsen)
multidimensional array
 
I've got this code under main: cout << "n= "; cin >> n; bool m ; //expected constant expre...
[5 replies] Last: @frescofrs Regarding... it only gives an error when i try to pass t... (by andywestken)
invalid conversion from 'const ... ' to '...'
 
Hi everyone, I keep getting errors from the following code: int orgCount, newCount; ...
[7 replies] Last: Oh... my bad. Thanks for the help guys!!! Much appreciated. (by johnny45634)
How to get array size inside method
 
Hi, i'm new to c++. here is my scenario. I have one array with size of 5 and passing this array t...
[6 replies] Last: You might find the discussion over in this other thread to be illumina... (by Duoas)
What Is Wrong!
 
I Dont Understand! #include<iostream> #include<ctime> #include<cstdlib> #include<windows.h>...
[3 replies] Last: Thank You naraku9333 It Worked (by Ibrahim M)
help! generate skew distribution
 
does anyone know how to generate a skew distribution random number? or is there any place having re...
[2 replies] Last: It is really useful . Thanks very much. (by huang11404)
Want to make a notepad in c++
 
I am making notepad in c++,i want to give it a windows look like as included in windows api (basic b...
[1 reply] : Well you can either write the code completely by hand for Windows func... (by ajh32)
Can't understand the output of this program
 
Hi I executed the following program -: #include<iostream> #include<string> using namespace s...
[1 reply] : #include<iostream> #include<string> using namespace std; int main() ... (by MiiNiPaa)
List Pointer not deleting
 
LinkedList* listPtr = new LinkedList; listPtr->addNode(3); listPtr->addNode(4); listPtr->addNode(...
[8 replies] Last: Thanks. I was aware I still needed a copy constructor and copy assignm... (by h4ckb0x7)
how to use <chrono> in c++
 
i have an assignment based on researching on a specific header file and i have chosen <chrono>. i...
[3 replies] Last: thenk u very much (by Fallen angel)
How to create array with size of another method returning value
 
Hi, I have to create array with size that returns from method int val=test(); int arr ; int ...
[7 replies] Last: well, using STL mostly will affect performance if you don't know how t... (by Rechard3)
Having an error when trying to pass a string value
 
In my program which I'm writing as assignment for my HND is giving me a an error when I enter data i...
[4 replies] Last: Thank you very much (by Sinux Sand)
visual studio 2012 command prompt problem
 
when i output something command prompt disappear in a second i do not want to use the system("pau...
[4 replies] Last: use cin.ignore(); this topic is covered in the beginners forum. htt... (by Yanson)
by Ziru
Graphical user interface with Qt Creat
 
Good evening friends. It is possible to develop a graphical user interface in Qt Creat for C langua...
[2 replies] Last: Sure, you can use that IDE for C language development (see http://www.... (by Bilderbikkel)
Linked List Delete List
 
I'm working on a linked list and was wondering how this looks to everybody else for a deleteList fun...
[6 replies] Last: Correct. It is perfectly safe to delete a null pointer. (by cire)
May 2013 Pages: 12345... 47
  Archived months: [apr2013] [jun2013]

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