- Strength to Increase Rep
- +13
- Strength to Decrease Rep
- -3
- Upvotes Received
- 138
- Posts with Upvotes
- 112
- Upvoting Members
- 60
- Downvotes Received
- 7
- Posts with Downvotes
- 7
- Downvoting Members
- 6
Software Engineer
- Interests
- Eating and Drinking
- PC Specs
- Difference engine
lets waste some web space by counting i will start us off 1 |
|
I am writing a program that reads a comma-delimited file. There are several words on each line that will each be assigned to a string variable, each line in the file is a record, and the file contains several records. I am using getline with a delimiter, e.g. [B]getline(inputstream, string, … |
|
With regard to C++ books, I'll just echo the advice here .The following books are recommended; read them in mostly the order listed." Accelerated C++ " Andrew Koenig & Barbara Moo " The C++ Standard Library " Nicolai Josuttis --- a "must have" " Effective C++ ", " More Effective … |
|
EDIT: Please note, as I write this, the post is now 6 years old and might have some outdated information. I'd personally recommend beginners start with "Learn C the hard way" by Zed and this book since I have heard good things about them. Reading the FAQ put together by … |
|
when i try to call a .c file in antother i got a error for multidecalaration of main file.i prepare for a medical shop management using c language what can i do??? |
|
Hi again everyone, Im running into big trouble with my compiler Dev-C++, every time i compile any project, whether it is 1 im working on, or a completely fresh 1 I get the same error every single time, I have been on the bloodshed forums and IRC channel but Im … |
|
Friends i have little bit problem in making a c language program. I have to make a program which prints prime numbers from 1 to 500. I make this program but with while loop then i was told to make it using for loop, which i tried but failed. So … |
|
This is really simple. Just take the last letter of the movie name in previous post & put another movie name starting with that letter. Eg.:- if i put "The Matrix -Reloaded" answer may be "Doom" so let's start. I put : The Matrix Revolution |
|
Hello I am working on Parallelization of Fractal Image Compression. I have used prof. Yuval Fisher's enc.c and dec.c fractal image compressor / decompressor. The code is working fine but my question is: How to view the RAW images lenna.dat(input image) and lenna.out(decoded image) on Windows/Sun/LINUX machine. I think there … |
|
hey all well i have been facing this problem for days ...i have written a program where i am suppose to read a specific number of lines within different intervals and count the number of occurance of r and s and then divide r by s. The program is running … |
|
HI guys! Im making a sudoku game. Ive got all the numbers in a 9 by 9 vector. But im unsure how to proceed. How do i work out which blank space (selected by the mouse) corrisponds with which blank space in the vector? I need it to work out … |
|
Hi i am new to c++, i need a code for an application with following specifications. 1. it should use RegisterPowerSettingNotification function and when WM_PowerBroadcast event is recieved then it finds if power source is ac or not. 2. if source is AC then it should execute a program. dev … |
|
A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $.50 per hour for each hour [I]or part thereof[/I] in excess of three hours. The maximum charge for any given 24-hour period is $10. Assume that no car parks for … |
|
Hi all I have been following a tutorial on creating win32 GUI applications. I'm having a problem getting a dialog box to pop up on top of my main window ...the CreateDialog() method returns a NULL for some reason. Would really appreciate some help with this. Here is a zip … |
|
why virtual functions can't be static class member and friend functions? |
|
I have hard time understanding how does it happen. I mean how does : 6 / \ 3 8 / 2 I get that program finds the num on the left side whos equal to null so its smallest and it prints out 2. But how does it go back … |
|
|
|
Hello all: I have written a function that gets data (numbers) from a text file. My function works by taking a line from the text file, discarding unnecessary symbols, and putting the numbers into a vector. Here's a snippet: // Get data from text file. Values then put into one … |
|
Hello everyone, im new here and dont know yet most of the policies.. but i have been reading lots of your C++ codes, mostly, codes made by Narue.... i wonder if you someone could help me make a code for pascal's triangle wherein the ouput would look like a triangle … |
|
Hi guys, I have just started to learn c++ and I am working with robots. Every program is starting with main(int argc, char *argv[]) definition . I don't understand what does it mean?I am very glad if somebody canexplain for me . |
|
I have been programming in Windows with C++ and I am tiptoeing linux (mainly because of its most up-to-date C++ and also because of it's open source). I want to do multi-platform programming. The programming part is easy: I don't need help there. The part I need help is in … |
|
[CODE]#include <conio.h> #include <graphics.h> #include <stdlib.h> #include <stdio.h> void main (int) { int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection. int midx,midy,x; //Initializing graphics and local variables. initgraph(&gdriver,&gmode,"d:\\bc3\\bgi"); //Reading result of initialization. errorcode=graphresult(); if(errorcode!=grOk) //An error occurred. { printf("Graphics error occurred : %s \n",grapherrormsg(errorcode)); printf("Press any key to stop : "); getch(); exit(1); //Terminate … |
|
This is the code I have right now : cout << "==============================\n"; cout << setprecision(2) << fixed; cout << "Shelby" << setw(24) << shelby << endl; And this is the output: ============================== Shelby 25.81 But what I'm trying to do is add a "$" sign before the amount while keeping … |
|
with a lil bit of change in code ,it's functioning, but I want it to function with data members being private :-/ #include<iostream.h> #include<conio.h> class account{ public: int account_number; float balance; int passw; public: void display() { cout<<"Account number is:"<<account_number<<endl<< "Account balance is:"<<balance<<endl; } void user(int acc, float amou, int … |
|
Can someone please finish this off, i need the days to start going on the day specified [code=c] #include <iostream.h> int main() { int month;//asks for current month int days;//asks for day of start int numdays;//number of days in the month int monthstarter=1; //starts day count cout<<"Enter a month (1 … |
|
Hi, im pretty new to c++, and im stuck on this problem, i need to assign a letter from and array of stings to an array of chars and i just cannot figure it out. any help is appreciated. I tried both and both give me errors: strcpy (newChars[j],alphabet[i]); newChars[j]=alphabet[i]; … |
|
Hi, i am not sure whether this topic would go under this category, thought this would be more suitable what are the famous software architectures? i have to do an research on this an present, I am new to this topic appreciate a reply thanks |
|
Always use scanf() and printf(). They are much, much faster than cin and cout. Also use stl algorithms, like sort, reverse and find, especialy if they are member functions of a container class you use. |
|
Hi, How do you delete a newline character that is inside a VB string? Apparently Trim removes only spaces. Thanks in Advance. |