General C++ Programming - November 2013 (Page 2)

by mas12
could anyone help me??
 
Iam using visual studio 2010 and iam trying to use pow but it doesn't work it is keeping say >>> 1 IntelliSense: more than one instance of overloaded functi...
[7 replies] Last: Aha Thanks A lot ... (by mas12)
Evaluate these funtions
 
Can anyone explain me a this code line by line and word to word that what is going on in this code and what is the purpose of each variable ?? how im ge...
[3 replies] Last: Also evaluate these functions briefly so i can understand how these fu... (by Hasnain3000)
enums?? (1,2)
 
Could someone explain what are enums, and how do we use them?
[23 replies] Last: > But it still is implicitly convertible to an int and not its own typ... (by JLBorges)
by AceK
HOW IS AN ESCAPE CHARACTER USED?
 
Hi everyone, I have this line off code qry.prepare("SELECT * FROM public."Users""); . My problem here is that the word "Users" is supposed to be enclosed in qu...
[2 replies] Last: To elaborate on what DTSCode said, to have quotation marks in strings,... (by J4ke)
snippet needed
 
i need a snippet for drawing a box and a circle of desired dimensions in c++ without the use of graphics.h thanks in advance
[9 replies] Last: If you're using C++, I would prefer SFML over SDL. http://sfml-dev.or... (by Dante12129)
by Bolbi
why do we need float *f*?
 
i learned that everytime we use a float we have to put an f at the end of the number, but if i forgot the program works anyways ... so is it needed? for Exam...
[2 replies] Last: i googled .. 0.2 == double and 0.2f == float (by Bolbi)
Help, Object Oriented Programming C++ (1,2)
 
Well, just as the title reads I am taking a course in Object Oriented. We are having our last assignment of the course and sadly, this assignment is going to be...
[27 replies] Last: Well, I finally got everything working and done but I only have one is... (by Shuruki)
Managing lots of code
 
So, I have crossed the 5,000 line mark in a project, and I am finding it to be getting a bit harder to manage with so much to keep track of. Are there any me...
[5 replies] Last: well, thanks for your time then... I do have git, though, which does ... (by IWishIKnew)
Local function def's are illegal errors in my code.
 
#include <stdio.h> #include <conio.h> #include <math.h> #include <stdlib.h> void rpt(char in ) //Repeat Function { int a, out = 0, b, c; printf( ...
[2 replies] Last: i solved it, but i now have the error "missing function header" at lin... (by Alinur Caglayan)
retrieving array of strings from java web service
 
Hi to all, I would like to ask about a problem I have in C++ programming. I have created a web service client in visual studio(via add web reference) that c...
[no replies]
MFC Exceptions
 
I have an application that utilizes ODBC to access a database. Often the app crashes and shuts down when user activity is high. I believe there's more than one...
[no replies]
REVIEW THIS CODE......
 
std::cout<<"\nEnter Type Of The Account (C/S) : "; type=getche(); type=toupper(type); if(strcmp(type,'C')||strcmp(type,'S')) {} else { c...
[4 replies] Last: wow thats very nice, thanks now onwards i'll use this only. thanks bu... (by NPcomplete)
Does putchar remove the item from array?
 
Does putchar remove the item from buffer when it prints to the outstream? The reason I ask is because in below example, each time while loop executes in main, o...
[no replies]
undefined reference to WinMain@16
 
I am using a header file and a cpp file on codeblocks, and it seems the codes looks fine, but when I try to run the program, it said undefined reference to WimM...
[4 replies] Last: Also.... you have your project set up to be a WinAPI program instead o... (by Disch)
by Suad
Help in C++ project
 
Hello everyone , I need programming help , it's for a class project in c++ , I've spend almost three days to write the code , but still I have some errors and m...
[3 replies] Last: your compiler should tell you where and what they are. (by mutexe)
by Ingek
Please help | read matrix travelling salesman problem
 
We are working on the travelling salesman problem in c++ for school, but we cannot figure out how to read the file we have to implement. This is our txt file: ...
[4 replies] Last: hmm so all you need to do is: -Place zeros down the diagonal (distan... (by Mats)
by kordi
linking erros 2028 and 2019
 
Hi,All I am a beginner to C++ coding and I have managed to write the following code. I had successfully cleared all my coding and syntax errors. Now, I am stuc...
[2 replies] Last: 1) Please use code tags to make your code more readable. 2) Do you ... (by MikeyBoy)
by Ceset
simple button
 
hi i m trying to create a simple button but i get the following error. main.cpp ............. ............. Font * font = sysMain.OpenFont("calibri.ttf", 10);...
[3 replies] Last: ok i solved the problem like this although it wastes resources Surfa... (by Ceset)
by dkaip
In cantainer of vectors how i can find the number of objects without loop?
 
Hello. how i can find the 5 without loop? vector<int>i; vector<int>j; i.push_back(1); i.push_back(2); j.push_back(3); j.push_back(4); j.push_back(5);...
[10 replies] Last: naraku9333 solution is very good i thing. Thank you very much. Jim. (by dkaip)
by m1m6
how to fix this error error C2582: 'operator =' function is unavailable in
 
#include<iostream> #include"LongDouble.h" using namespace std; LongDouble::LongDouble() { sign = 0; exponent = 2; for (int i = ...
[2 replies] Last: thx :) it's solved (by m1m6)
November 2013 Pages: 1234... 46
  Archived months: [oct2013] [dec2013]

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