General C++ Programming - October 2013 (Page 25)

by bvteja
find mistakes in following c program
 
#include <string.h> #include <stdio.h> #include <stdlib.h> int main(){ char str1 = "abcde"; char str2 = "012345"; char str3 = "ABCDEFG"; strncpy(str1,...
[4 replies] Last: size of operator when used for arrays gives the size of the array. I t... (by kulkarnisr)
Help with Templates
 
I have to create a project that includes the template function sort3. it must display floats small = 12.3, mid =5.4, big =9.1. I keep getting unqualified id err...
[2 replies] Last: ^ 1. You don't assure the invariant (the client may modify the values ... (by ne555)
Accessing VirtualStore??
 
Trying to read/write from a file located only in the virutal store. Having trouble loading the file in using outputFile.open("%localappdata%\virtualstore\Pr...
[2 replies] Last: UPDATE: Not sure if this is the easiest way, but I got it working usi... (by Newlance)
s
 
asaasd wqd asd
[1 reply] : That teacher must have given or explained some other material too, so ... (by keskiverto)
Storing static class members of dynamic variable type in a dll
 
I need to do this but can't figure out how I can implement it. Tickable.h #include <list> #ifdef TICKABLE_EXPORTS //Automatically defined by MSVS #define DL...
[5 replies] Last: THANK YOOOUUSS... Just to clarify, now that the variable has been defi... (by TheBeardedQuack)
Math menu driven program problem.
 
Can not seem to get the program to perform the calculations within the cases. Also, how do you set up the a prime function program within the menu. Have been tr...
[1 reply] : Can not seem to get the program to perform the calculations within th... (by MikeyBoy)
Login system and simple menu
 
I need a program that has a login system and then a menu that has 3 options: Add, delete and exit. If I choose Add it wil ask for certain data of 5 students. ...
[1 reply] : you dont need to do everything That's very generous of you... :rolle... (by MikeyBoy)
by seurer
throw nullptr
 
If you throw nullptr what *should* catch it? Just a catch(nullptr_t)? Or other catches of pointer types? I tried the code below with gcc 4.8.1 (via g++ -std=...
[4 replies] Last: > This is from the draft C++14 standard but C++11 is basically the sam... (by JLBorges)
by Skynet
passing classes as parameters
 
I was wondering, how would I pass this parameter and how/why is it not working this way? I've tried many different methods to this and I can't quite seem to fig...
[11 replies] Last: const int TABLE_SIZE = 7; speedTable myTable(TABLE_SIZE); ... (by MikeyBoy)
by jorgen
Reading and writing to file using the same fstream
 
I have a file of data where each line consists of 4 parameters ( degree , alpha , beta and x ) and a value corresponding to these, organized in increasing o...
[3 replies] Last: Ok, thanks for the replies! I changed the code in the way you suggeste... (by jorgen)
Switch Statment Programming Errors
 
#include<iostream> using namespace std; int main() { // declare variables int first; int second; int answer; char operation; //user input co...
[1 reply] : code tags. you need to do case 'D', ie with single quotes, you can onl... (by closed account Dy7SLyTq)
GUI library
 
Hi guys, Is there anyone who know a good gui library which is free and easy?
[9 replies] Last: You can make GUI quite easy with this framework http://www.ultimatepp.... (by andreicpp)
ethernet comunication
 
hi, i´m trying to explain good what i want to do. i have made a programm in C++ to open, write and close a excel-file using OLE Automation. and now i want to...
[1 reply] : It's not a programming problem. 1. Create a shared directoryon the re... (by kbw)
by Ceset
initializing
 
hi guys. sth is in my mind. fast way of initializing an object through constructer is Fred::Fred() : x_(whatever) { } slow way Fred::Fred() { x_ =...
[6 replies] Last: ohhh. thx @JLBorges. that was hell helpful (by Ceset)
DLL Help
 
I have a small problem concerning my DLL I have created. I have had one or two people test my DLL, although my results aren't as expected since I cannot test al...
[4 replies] Last: s for the stdcall I am not 100% if it should be cdecl or stdcall. I or... (by FatalSleep)
Chart lib
 
Hi there! This is my first post(because this is an excellent forum and there is an everything I need, just search...). So, can someone suggest me some freewar...
[1 reply] : Ok, solved using Canvas, draw-rect, easy to create bar-chart. Regards! (by exdatis)
Starting to Learn API hooking
 
I am interested in this topic, I understand most applications which have dlls have functions that enable them to work properly, I am very interested In API hook...
[3 replies] Last: Sorry I can't help with this as I haven't looked into it much. I just ... (by knn9)
A Class declaration question
 
I'm looking at a class that is declared like the example below, can someone explain this declaration? Is this 2 classes foo and boo or is this boo of type foo a...
[3 replies] Last: Note that by default anything declared for a class is private data, i... (by TheBeardedQuack)
Function Compiling Errors
 
Hello! I'm new here to the forums, and I'm currently taking Intro to C++ as a requisite for my Associate's and currently we're learning about functions. I under...
[6 replies] Last: No, it won't work. Neither will returning a pointer to a local array ... (by TheBeardedQuack)
Inventory Class
 
Design a Inventory Class that can hold information for an item in a retail store's Inventory. I have to create an Inventory class with the private member variab...
[1 reply] : Your overloaded constructor is wrong. Inventory(int itemNumber, int q... (by abhishekm71)
October 2013 Pages: 1... 2324252627... 46
  Archived months: [sep2013] [nov2013]

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