Home » C & C++ & C# » Page 4
your help is needed (loops)
C & C++ & C#

Im having a hard time where to start with this assignment. Obviously I did the easy part now its time for the loop which i just dont get.

heres how the program will run
Enter the initial balance ===> 1000

Enter the number of months to cover: ===> 3
Enter the annual interest rate (decimal format; e.g., 5 not .05) ===> 10
Enter the amount deposited for mont

Your exact age
C & C++ & C#

this program contains everything even leap year: :idea:
i am a beginner in cpp (we have this in school so i am learning this age 15 )

# include<iostream.h># include<conio.h>void main (void){ clrscr(); int years1, months1, days1; int monthdays1[12] = {31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365}; int startday; int years2, months2, days2

Your code exhibits undefined and implementation-defined behavior
C & C++ & C#

started a new thread because naru got my interest. please explain.

#include "stdafx.h"#include <iostream>#include <string>#include <cstdlib>using namespace std;void reverseword(char * reverse) { size_t size = strlen(reverse); //get the size of the char * for(size_t i = 1; i <= size; i++) { cout << revers

You'd think I would know how to use strings by now, but...
C & C++ & C#

I'm getting an error (unhandled exception writing address so and so) trying to modify a string. It gets weirder though. Let me show what i've got:


#include "stdafx.h"#include "commands.h"int main(int argc, char* argv[]){ char word[256]; int id; strcpy(word, "move"); strToUpper(word); printf("%s", word); id = getCommandId(word); if(id == -1)perror("

y Linked List
C & C++ & C#

There's something wrong with the curly brace's can anyone see where please.

//******************************************************************************************//Header file for LinkedList.cpp.//******************************************************************************************#ifndef LINKEDLIST_H#define LINKEDLIST_H//****************************************************

y it is giving eroor :(:(
C & C++ & C#

see buddies i make a program in c but it take enter 1st number then ask for opearator and then directly tell that wrong opearator iam tired but i cant find where is problem
here it is :::::

#include <conio.h> #include <math.h> #include <stdio.h> #define PI 3.14159265 int main() { float firstNumber, secondNumber;

y is this not showing output
C & C++ & C#

using namespace std;
class lohi
int x;
int y;
public :


int main()
fstream io;
io.open("just1",ios::in | ios:: out | ios::app);


Yet Another Vtable Problem
C & C++ & C#


So I've been developing this game for a game design class for most of the semester. While I'm not new to C++ and Object Oriented Design, the theory of it is often a lot easier to comprehend and know than the actual application of it. Needless to say, I've run numerous problems throughout the development of my game, most being surmountable.

However, my next goal is to get the

yet another segmentation fault
C & C++ & C#

i've been at this for an hour, feeling stupid by now, getting sick of these segmentation faults..

// board.cpp #include <iostream> using namespace::std; const int NUM_ROWS = 10, // Board dimensions NUM_COLS = 20; // Function prototypes void fillRectangle ( char board[NUM_ROWS] [NUM_COLS] , int row, int col,

Yet another problem !
C & C++ & C#

Hello, i got stuck again. When i read the text it all makes sense,
but putting it all to use is a different story.:zzz: Accelerated C++ excersise 15-4:

15-4. Add an operation to reframe a Picture, which changes the frame characters. The operation should change all of the frames in the interior picture.

Where and how should i store the characters for the frame? Ive managed to

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .