49,761 Topics

Member Avatar for
Member Avatar for funfullson13

Hello! I want to add a "press .. " in my program. ( console ) I'm using Linux so I cant use windows.h or conio.h thanx

Member Avatar for funfullson13
0
109
Member Avatar for jrynik

Hello, I am working on a program, part of which is opening a file. As I expect the program to check if the (text) file contain certain data. That's why it would be useful if program users could enter the file to check. I've tried to do it by combining …

Member Avatar for jrynik
0
144
Member Avatar for SCoder1

This program is very tricky... First off it's an ATM I coded and every time you as for money back or put money in or ANYTHING it the name and account number gets re-entered. Here's the code: [icode] #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; float opening_bal = …

Member Avatar for SCoder1
0
74
Member Avatar for ulisse0

Hi, I wrote a simple on-file directory lister. It works, but I have to press Ignore in a block damage error messagebox everytime I tun it. Any idea? Thanks in advance. [code] #include <windows.h> #include <iostream> #include <string.h> #include <string> #include <direct.h> #include <stdlib.h> #include <stdio.h> using namespace std; int …

Member Avatar for tux4life
0
159
Member Avatar for Kamal_Java

Hi, I am new to game programming and i need help in creating the above shown game .. I have to use VC++.NET for this . can u help me in choosing which control should i use for creating editor for placing my images into it . I dont know …

0
56
Member Avatar for Falkoner1

Okay, in my program I have a line of code like this: [code]if(type == rabbit){pointer = begin.sim[sim].field[x][y].rabbits; begin.sim[sim].field[x][y].rabbits = this;}[/code] In order to see what the issue I was having with the actual program, I put in this line of code: [code]printf("\n\n%p & %p\n\n", begin.sim[sim].field[x][y].rabbits, this);[/code] And I found that …

Member Avatar for Falkoner1
0
4K
Member Avatar for valtikz

This is my code fo [code] void CallhistoryWindow::on_button_buffer1() { m_TextView.set_buffer(m_refTextBuffer1); } void CallhistoryWindow::on_button_buffer2() { m_TextView.set_buffer(m_refTextBuffer2); } [/code] if I already call the on_button_buffer1() function the m_TextView is already set the buffer m_refTextBuffer1. But if I already change the m_refTextBuffer1(the textfile) value the m_TextView wont change anymore you may need to …

Member Avatar for valtikz
0
117
Member Avatar for fadia

Hello guys.. I'd like someone to explain to me how to implement some functions in a program the simplest way.. I've an assignment.. and we only practiced the functions twice.. so am not good at it at all... can someone provide simple examples so that i can understand the full …

Member Avatar for fadia
0
151
Member Avatar for henryxxll

Hey: After messing around with Python for some time for large numerical calculations, I realized that Python is just too slow. It's great for smaller numbers, not to mention easy. However, once I start getting into numbers above around five hundred digits in size, it slows down drastically. So, I've …

Member Avatar for Peter_APIIT
0
221
Member Avatar for nanchuangyeyu

Hi, I am now writing a simple program for testing file I/O and an advanced vector class. Unfortunately I have encountered some confusing problems. My code is as following: [CODE] #include <cmath> #include <string> #include <iostream> #include <sstream> #include <fstream> using namespace std; class mVect { private: // NO PRIVATE …

Member Avatar for nanchuangyeyu
0
127
Member Avatar for newcpp

I have a problem about memory allocated, I read through my code and think threre is no problem, but it did happens, it very confusing me ...., here is my code: the problem lies in a[] when the Class Grid wants to use it. [code=cplusplus]#include <iostream> using namespace std; typedef …

Member Avatar for Ancient Dragon
0
336
Member Avatar for Peter_APIIT

Hello to all, i have code karatsuba but it is not compute correctly after 6 decimal digits. [CODE] #include <iostream> #include <vector> #include <algorithm> #include <limits> #include <cmath> #include <cctype> // ================================================ using namespace std; typedef unsigned long ulong; void userInput(ulong&, ulong&); int numberLength(ulong); ulong leftSplit(ulong, int); ulong rightSplit(ulong, int); …

Member Avatar for Peter_APIIT
0
458
Member Avatar for yamahammer342

im working on something and i need the user to be able to enter times that things start and end. i need to know how i can store that and then compare them later. they need to be able to enter like 12:45. i was thinking i could somehow ignore …

Member Avatar for Karkaroff
0
93
Member Avatar for cam875

I am trying to take a a file of fixed size and use seekp to jump to a particular spot in the file, write around 100 bytes or so but only to that part of the file while still keeping the size of the total file the same and not …

Member Avatar for cam875
0
85
Member Avatar for BlackStar

say you have [ICODE]struct Node{ int item; Node *next; } int main() { Node *p; p= new Node; p-> item = 100; p-> next = NULL; }[/ICODE] is there a way to make it that, the p-> item becomes whatever the user inputs?

Member Avatar for BlackStar
0
286
Member Avatar for peste19

[CODE] #include <iomanip> #include <iostream> #include <fstream> #include <string> using namespace std; int main () { int i,count(0),n; char strg1[50],strg2[2]; char *ptr1(strg1), *ptr2(strg2); cout << "Please input the string" << endl; cin >> strg1; cout << "Please input the character" << endl; cin>> strg2; while ((ptr1=strstr(ptr1,ptr2)) != NULL) { count++; …

Member Avatar for NathanOliver
0
1K
Member Avatar for evildrome

Hi All, I've got a VC++ dll with Boost 1_34_1 regular expressions in it. I am a programmer but not VC++ or Regex. The program worked fine until the target HTML format (sPage) was changed and I need to get the regexs updated. I got them updated OK. I checked …

0
45
Member Avatar for axfv

I have classes A1, A2, B, and C. A2 inherits from A1. C inherits from A2 and B, and its constructor initializes all B, A2, and A1 variables. As a tree, it looks like this: [CODE] C / \ B A2 | A1[/CODE] I have a function [I]Foo [/I]that takes …

Member Avatar for ArkM
0
174
Member Avatar for Bladtman242

Hi, are there some libraries i can use (in MS windows) for stuff like, obtaining info from a website? i read something about sockets once, but im not sure what it is (yes, i googled it :) ) Or would be easier/better, as some suggest, to learn java or python? …

Member Avatar for Bladtman242
0
144
Member Avatar for bob89

I am new to c++ but have been using java for a while now. I am using Microsoft Visual c++ and when I try to build it I get the following error: Linking... Airline Project.obj : error LNK2019: unresolved external symbol "public: __thiscall FlightManager::FlightManager(void)" (??0FlightManager@@QAE@XZ) referenced in function _wmain F:\Documents\Assignments\CA212\Airline …

Member Avatar for Narue
0
108
Member Avatar for ganmo

Hello, I'm reading a chapter about virtual function. So what I know is that virtual function is equal to abstract functions. It is enough to declare one function virtual to make the class into an abstract class. E.g. [CODE=cpp] class Base { public: Base(); virtual set(); } [/CODE] Now I'm …

Member Avatar for ArkM
0
99
Member Avatar for gr8ash

hey all,,, i've been trying to make my own setw function that will do the same jop of setw,, this is my first year in college i study CIS in Jordan,,, so, i made this code but6 i still have problims with float numbers, it seems like this code work …

Member Avatar for ArkM
0
212
Member Avatar for pvsumanbabu

Hi All, can any of u explain the order of constructors ,how it will behaves when order of derived classes as like present in attachment

Member Avatar for Narue
0
91
Member Avatar for Clawsy

I try to program DirectX in Visual C++ 2008. I need at least a win32 working window. I have a BIG problem compiling win32. First, I created a win32 project (a simple Win32 Project - not empty). I don’t modify any code compile when compiler says: Cannot find windows.h. So …

Member Avatar for Clawsy
0
345
Member Avatar for nicolap

Hi, I'm working on a C++ project and in a menu I want the user to choose 1, 2, 3 etc... integer number. If they input a float i.e. 1.2 I want the code to tell them they've entered something invalid, rather than just rounding it down to 1. how …

Member Avatar for vmanes
0
199
Member Avatar for mathueie

Hi, I am using ubuntu linux. I am trying cpu utilization of our software. How to use iostat in c++ program.

0
80
Member Avatar for Jacky1

I need a way to send email through smtp server ssl secured Programming Language: C++ Platform: Windows XP I need something doesn't involve visual studio Thanks in advance!

Member Avatar for William Hemsworth
0
223
Member Avatar for stonerain

[CODE]int C[10][20]; int * mmatrix (int A[ 10 ][ 5 ], int B[ 5 ][ 20 ]) { int i, j, k; for(i = 0; i < 10; ++i) for(j = 0; j < 20; ++j) { for(k = 0; k < 5; ++k) C[ i ][ j ] += …

Member Avatar for Salem
0
1K
Member Avatar for scuzzo

I need to output the first five lines or the last five lines of a .txt file the user provides while using switches in a command prompt. I've got it other than printing the lines to the screen. [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; const int …

Member Avatar for NathanOliver
0
90
Member Avatar for Lukezzz

I am reading a .txt file line by line and when the line in the file is "Hello1", I want to Replace that Line with "Hello2" but I dont get that to work. I think I miss something out here [code] //Save this emailadress to the RouletteDataBase file String Path …

Member Avatar for landonr
0
256

The End.