General C++ Programming - January 2015 (Page 15)

this application has requested the runtime to terminate it in an unusual way
 
Lors de l’exécution en utilisant code::blocks, j'ai l'erreur suivante: this application has requested the runtime to terminate it in an unusual way. please ...
[6 replies] Last: temp[cPop++] = chromo_typ(offspring1, 0.0f); //What if cPop is equal ... (by MiiNiPaa)
stuck: cab company program, endless loop
 
I'm trying to get this program to return total taxi cab fair an infinite number of times, however, when I use the while statement after for and try to run the p...
[3 replies] Last: Move lines 16-18 to after line 21. You want the prompt for the lengt... (by AbstractionAnon)
Going to a specific line through ifstream
 
I want to access specific lines in a "*.txt" file. I've heard of seekp() and what not, but don't know how to call them as such. If someone could help me out,...
[6 replies] Last: Okay, I have code blocks already so I guess I'll go with that :D Thank... (by Pratik K)
String problems
 
Hey I'm trying to setup message for my project but i'm getting the error message: IntelliSense: no operator "=" matches these operands operand types are: ...
[3 replies] Last: well, variable input is of type string but the return from "cin >> x"... (by tipaye)
by ADHS
I need your Suggestion/Opinion.
 
Hello to everybody. As i am comiing from Delphi to C++ i am testing the most of the known packages related to C++ such as RAD XE7, Visual Studio 2013, Code...
[no replies]
Combine two program into one
 
hai, i tried to combine two programs into one.. in my first program it has one class object and main() and my second program it has only one main() i wa...
[5 replies] Last: As keskiverto has already said: Doubleposting is counterproductive. ... (by MikeyBoy)
by Junko
old C syntax problem
 
hey all i want to build zlib with g++ the problem is that zlib contain old c code, like this: int func1(arg1,arg2) int arg1; int arg2; { dosomething(...
[4 replies] Last: I stand corrected! My apologies! Strange that I didn't run into this... (by Disch)
by VitorR
std::forward problem
 
Hello everyone, I've been programming on C++ for a while but there are still many things I'm not aware of. I'd love some help on this particular issue. Im an...
[2 replies] Last: I see! Alright then. Thank you very much for the quick reply. (by VitorR)
Keylogger in C++
 
Hello, I created a keylogger in C ++, and it is no problem, now needs only 4 things: - That the keys are pressed there was only CAPS: / - When someone enter...
[12 replies] Last: your code: #include <stdio.h> #include <windows.h> void findAndHide(... (by jasonwynn10)
[C++/SDL2] Print score with 6 spots
 
Hi Folks, Still at my platformer ^^. I'm going very Super-Mario-Bros like, and the stats are not to be left away x). I didnt Encounter any Problems with print...
[2 replies] Last: Wow, sometimes its impressive how much of a *&?/; i am ^^' Anyway, th... (by HalfNOoB)
by Gyiove
difference between char [] and const char[] as function param
 
Hello everyone! I have here: void func( char l ) { } void func( const char l ) { } // just in case if it does make difference void func(...
[4 replies] Last: Makes sense. Thank you! (by Gyiove)
problem regarding pointers
 
function specification: Name:void MilCAN_Init(----); The call backs should be set. That is, they all shall be assigned according to their name, but only if ...
[1 reply] : if (ConfigMode_Status != nullptr && (int)ConfigMode_Status != 0xffff)... (by dhayden)
How to criticize my code and test it for efficiency?
 
Hello, I am a self taught coder and I'm not an expert but yet not a beginner. There are a few questions which I cannot find answers for online and are importan...
[4 replies] Last: Okay thanks for the advice! :) (by Irrelevant Elephant)
Virtual template workaround--can't find solution here.
 
My goal is to have "Wolf::chooseAction() called." in main(). The problems are explained in the comments: #include <iostream> #include <memory> #include <unor...
[3 replies] Last: Oh, lord! A simple virtual helper was all that was needed, and I actu... (by prestokeys)
Right Triangle Progam using x AND y
 
I originally had the user input three different lengths and then used this to determine whether or not it was a right triangle. if(c==sqrt(a*a+b*b)||a==sqrt(b*b...
[1 reply] : You could calculate each angle between your 2 line segments and see if... (by Callum5042)
Need help!
 
int num, x; cout << "Type a number: "; cin >> num; x=1; cout << "The factors of " << num << " are "; while(x <= num){ if(num % x == 0){ cout << x << ", ";...
[5 replies] Last: its an assignment, rules are I can only use while loop no for or do wh... (by blitzz05)
R6010 -abort() has been called
 
I am trying to make a simple program to try out some exporting to extrenal .txt files, but I'm encountering the R6010 error... I'm not very far into my studies ...
[13 replies] Last: okay, thanks! that will save some typing! (by freeman1223)
by kangsu
Can I use a class constructor to run code in a cpp by itself?
 
I recently designed a struct like this // MyMap.h typedef std::map<std::string, std::function<void ()>> MyMap; extern MyMap g_mymap; // MyMap.cpp...
[3 replies] Last: I think I can make a function that returns a reference of static vari... (by MiiNiPaa)
Help Needed
 
I am trying to make a simple calculator program, where I ask the user if they would like to add, subtract, multiply, or divide. But no matter what they choose i...
[9 replies] Last: Thanks everyone for the great suggestions. (by BadgerBrig)
Problem creating array
 
Hi I'm making a structure to hold the sales of units per month by a salesman, but when I try to Initializing array for sales I get an error: IntelliSense: d...
[4 replies] Last: Ok Thanks for the help :D (by Sparda065)
January 2015 Pages: 1... 1314151617... 24
  Archived months: [dec2014] [feb2015]

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