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 WINDRES = windres.exe OBJ = main.o LINKOBJ = main.o LIBS ...
[2 replies] Last: Or just rename the one in main. That might be easier. (by TwilightSpectre)
Writing a C++ program using the following:
 
ttt
[8 replies] Last: Since you don't know if they're going to enter a positive or a negativ... (by wildblue)
Palindrome
 
I am trying to check a string to be a palindrome. I have tried using for loop but I am looking for most efficient way. Thanks for the help.
[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 "Else" What do i do? //Assignment 10 program 3 #includ...
[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 or codechef. I was looking at the stuff at topcoder like ch...
[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 together in those headers is working smoothly most of the time. H...
[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. Text file seats.txt contains a chart of seats for an airli...
[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 ******************** asks user for size size saved in calling...
[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 difference in member functions depending on whether they are define...
[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 files in my project? If so where from? You can visualize ...
[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 array (currently I'm just using another pointer). In the code...
[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 consistently repetitive in their song selections. I, however,...
[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 a question and sets the input to be entered within 10 secon...
[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 what is the problem? // randomno.cpp : Defines the entry ...
[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 = 0.0, int = 0); or void output(int = 0, int = 0,...
[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 a previous lab and a binarySearchTree<Type> which allows yo...
[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, sorted in alphabetical and numerical order. Letters will be conve...
[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 Pay 101 540.58 480.80 158 ...
[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 <math.h> #define PI 3.14159265 double getTime() { retur...
[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^9+7 because a and b may be very large numbers How...
[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.