General C++ Programming - April 2014 (Page 11)

C++ error
 
# Project: Teachg # Makefile created by Dev-C++ 5.6.2 CPP = g++.exe CC = gcc.exe WINDRE...
[2 replies] Last: Or just rename the one in main. That might be easier. (by TwilightSpectre)
Palindrome
 
I am trying to check a string to be a palindrome. I have tried using for loop but I am looking for m...
[5 replies] Last: Another way is to have a forward and a backward iterator or even just ... (by giblit)
Expected Primary Expression Before "Else" Error Please Help
 
This is my code so far and in my else if statements its sayin "Expected Primary Expression Before "E...
[3 replies] Last: The $ amount the user enters in n is getting overwritten by whatever c... (by wildblue)
Competing
 
How far in c++ or any programmig langiage do i have to go inorder to be able to compete in topcoder...
[1 reply] : For c++, basic knowledge of the stl library will get you through some ... (by Smac89)
Template Clutter
 
Hi, I'm starting to use templates more often, and I find that explicitly putting everything toget...
[4 replies] Last: Oh, I found it. I was putting template specializations in the included... (by smcguffee)
Need Help Writing a program
 
This program studies the 2D array. Design a program to allow a passenger to select an airline seat....
[1 reply] : So what is your question? We will not do your homework for you. Po... (by AbstractionAnon)
can anybody help me this code give the error!
 
#include <iostream> #include <string> using namespace std; /* ******************** getSize ***...
[6 replies] Last: I see you made some changes but the code still has some of the issues ... (by wildblue)
Qualified Member Definitions
 
Hi, I just took a coding test, and one question got me curious about something. Is there a differe...
[1 reply] : yes: test::foo is an inline function. (by Cubbi)
#include <curl/curl.h>??????????????
 
Hey guys, what does #include <curl/curl.h> mean? Can I download this file and store it in my header...
[1 reply] : Means that include the curl.h file found in <the default include fo... (by Aceix)
Resetting pointer using new
 
Just wondering how you reset a pointer returned from a 'new' command to the first element in an arra...
[13 replies] Last: Haha :) (by Steve Elliott)
Website Data Gathering
 
I got in an argument with some of my peers at work about Pandora.com. They claim that Pandora is co...
[2 replies] Last: This is a flawed premise. Pandora chooses songs based on user feedba... (by fatirishman53)
time based entry
 
how can i make a program which allows a user to enter an input for a time interval for example i ask...
[4 replies] Last: can i use 'join' to do the above mentioned ? i am not able to exactly... (by praneshiitm)
stack error
 
this code shows this error : stack around the variable 'Q_Rand' was corrupted can someone tell me w...
[6 replies] Last: oh shit!! i got it...when u have deadlines..ur brain shits... and yes ... (by praneshiitm)
How to initialize function prototype of array with zero?
 
We can initialize normal function prototype's parameters with zero like this:- void output(float...
[2 replies] Last: Further reading: http://en.cppreference.com/w/cpp/language/default_arg... (by Computergeek01)
Getting an error C2678 with my overloaded functions
 
I have 2 header files one contains my personType class which works independently as I created it for...
[12 replies] Last: Yes they can be thats why I came here lol, but I have learned alot fro... (by Kleinburger)
Sorting alphabets and numbers
 
Hi! My program reads a string of characters. Prints all occurrences of letters and numbers, sorte...
[5 replies] Last: Hi !JLBorges ! Bundle of thanks :) very professional (by menewbie)
Making a table for 10 employees
 
Hello I have to make a table for 10 Employees to look like this: Employee ID Gross Pay Net ...
[2 replies] Last: That didn't work. Are there other options? (by Airborne23)
Problem With 3D Rotation?
 
#include <iostream> #include <GLFW/glfw3.h> #include <stdlib.h> #include <stdio.h> #include <ma...
[no replies]
by coder1
modulo problem
 
I have two numbers: A= a1*a2*a3.....an B= b1*b2*b3.....bm I need to calculate (A/B) mod 10^...
[2 replies] Last: Actually I need the modulo, it is a problem on an online judge. (by coder1)
April 2014 Pages: 1... 910111213... 41
  Archived months: [mar2014] [may2014]

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