49,761 Topics

Member Avatar for
Member Avatar for teddyg18

when you run an ifstream in c++ and go into a textfile what is the data in the file converted to? this is my code [code] #include <iostream.h> #include <fstream.h> #include "TGraph.h" #include <time.h> #include "TDatime.h" void deeznutz() { char inputFilename[] = "data.txt"; ifstream inFile; int x; inFile.open("data.txt", ios::in); if …

Member Avatar for teddyg18
0
157
Member Avatar for DaBunBun

I'm working on a little code snippet and my c++ seems a bit rusty. How do i go about getting the length of an array? My eclipse is giving me weird values when it should be segfaulting, so I'm trying to figure out whats wrong. Thanks in advance. edit: forgot …

Member Avatar for tux4life
0
158
Member Avatar for Nickyu0712

I would like to know which would be a good graphics library to begin with. I am using Allegro, I want to know if this is good enough for 2D graphics like manipulating bitmaps etc.

Member Avatar for slatk3y
0
105
Member Avatar for Brandon21

Hi Sir, please help me with my code I've already finish the sequence. this is my part : [CODE]#include <iostream.h> int main () { unsigned long int a = 0; unsigned long int b = 1; unsigned long int c; int y = 2; int x = 2; cout << …

Member Avatar for DaBunBun
0
122
Member Avatar for baula

Helo frndz, I need a ebook named 'Starting Out With C++ From Control Structurres Through Objects by Tony Gaddis"...If anyone has this book in pdf or chm format, plz PM me to --snipped--. I badly need this book... Thnx Arif

Member Avatar for DaBunBun
0
134
Member Avatar for xiikryssiix

i dont really know whats wrong with this, but its super basic. im not done writing the program yet, im still missing some input prompts for the user, but as i am testing my current program, i keep getting an error message that says line 70 - name lookup of …

Member Avatar for mrjjkalyn
0
110
Member Avatar for xiikryssiix

this is weird to explain in the title alone, but i created a program below that works and compiles properly. it does everything i need it to do. user inputs however many scores he/she wants. 6 scores get calculated for the desired calculations. if user inputs more than 6, the …

Member Avatar for Sky Diploma
0
213
Member Avatar for Anon17

Hi. I have a function which checks for a placement of a substring in a buffer after recieving it over TPC. It checks for the value up until a '&' appears in the string (As the value can be any length). However, my program crashes if the packet has no …

Member Avatar for Anon17
0
164
Member Avatar for daviddoria

I frequent the c++ forum, and I've seen quite a number of posts that are about windows api/MFC stuff. This seems to be quite a separate thing than just "c++". Would it make sense to add a new forum to separate it? Dave

Member Avatar for NicAx64
0
202
Member Avatar for FBI

[B]hello everyone i was wondering what is the best book for beginning c++ apress beginning c from novice to prfessional tech yourself c++ in 21 days..and so on I'm completely newbie and also not good at math either:confused: btw i'm interested in computer programming... so i really want to learn …

Member Avatar for tux4life
0
359
Member Avatar for jempag

can you please help me how to use [COLOR="Green"]function and about function calling?[/COLOR]please give me some easy tip! thank you very much!

Member Avatar for necrolin
0
207
Member Avatar for macla
Member Avatar for prakash.s

hi, can any one give an idea how to rewrite the .net url using cpp.how to integrate it with the ISAPI Headers in IIS. Regards, Prakash --------------------------------------------------------------------------------

Member Avatar for Laiq Ahmed
0
94
Member Avatar for KIngIS

Im using ifstream to read the content in text file. But i want to ignore the first 5 line content. what i do now is using the own function to ignore 1st 5 line content, then save it into new file and reopen the file again. i think this is …

Member Avatar for tux4life
0
140
Member Avatar for xiikryssiix

im not sure whats happening here, but i dont know what code to use to stop the prompts from looping. My exercise is to create a program revolving Array-Based Lists. I simply want the user to input a set of student's records, but the user can input how many he/she …

Member Avatar for MrSpigot
0
110
Member Avatar for xiikryssiix

i dont know why im getting a compling error for this... error is: line 112 - name lookup of `i' changed for new ISO `for' scoping line 95 - using obsolete binding at `i' what does that even mean?! my current code is below, to get a better understanding. is …

Member Avatar for Salem
0
60
Member Avatar for xiikryssiix

does anyone have any advice? i created a program and it works fine. my teacher, however, is asking me to have my INPUT and OUTPUT to be subprograms such as the VOID function. i guess my algorithmn has to be.. // struct // void for inputs // void for printing …

Member Avatar for Salem
0
133
Member Avatar for Mr Violent

Hello, I'm having a problem receiving information with Winsock. I have 2 programs written, one is a server capable of accepting sockets from multiple users, and the other is a simple one socket client. The server uses an array of a user defined data type with a boolean variable and …

Member Avatar for leo_yasir
0
1K
Member Avatar for aliaks

[CODE] while (true) { // Display the players location and possible movements. cout << "------------------" << endl; cout << "Location: " << NewUser.location->name << endl; cout << "\nDescription: " << NewUser.location->description << endl; if (NewUser.location->north) cout << "(N)orth to: " << NewUser.location->north->name << endl; if (NewUser.location->south) cout << "(S)outh to: …

Member Avatar for aliaks
0
97
Member Avatar for scarypajamas

I'm doing some math with floating point numbers and I'm getting weird results. For instance, the result of one of my math problems has an "e" and "+" in it. -4.49255e+013 How do I make it display a value without the weird "e" and "+"

Member Avatar for necrolin
0
109
Member Avatar for jessejamesjjr

can any one help me find info on modular programming and how to understand it's functions? any links to go to?[TEX][/TEX]

Member Avatar for ahmadabdullah
0
124
Member Avatar for cog_bn

Hi, Some time ago, I wrote a program that used the write() function of an fstream object to write a large file to a 100MB-zip-disk (it was an old computer). When I "End Now"ed the program I found that the zip disk was corrupted. The file didn't show up but …

Member Avatar for cog_bn
0
335
Member Avatar for inanc

hello friends, I have two program: receive.cpp and send.cpp They re very simple, when compiling there is no error in both. I only wanna see them to talk to each other but when run these progs, both of them gives 10061 error. Below the codes, firstly receive.cpp: [code] //******************* SERVER …

Member Avatar for serup
0
312
Member Avatar for Anon17

Hi there. I have an encryption method which handles a string char by char and converts it to base 32, then adds it onto the result string. However, it seems to completely replace the result string instead of adding onto the end of it. My code: [code] char *encrypt(std::string input, …

Member Avatar for Anon17
1
91
Member Avatar for jko2326

Hello everyone! I'm a beginner in programming so please bare with me =/ I have a problem that I just don't understand. Here's the problem: Write a program that uses a loop to display the characters for the ACSII codes 0 - 127. Display 16 characters on each line (c++). …

Member Avatar for VernonDozier
0
319
Member Avatar for _dragonwolf_

Ok, here is what I have for my compareDates() function in my class: [CODE] int Date::compareDates(int m, int d, int y) { if((month < m) || (day < d) || (year < y)) cout << "This date comes before previous valid date." << endl; else if((month == m) || (day …

Member Avatar for VernonDozier
0
112
Member Avatar for Creator07

Hello all, Note: This is a general question, and I did not find any other category in the forum to ask this question... Last year, I got a copy of VS 2008 (VC 9.0) as gift. I liked it a lot! I started developing some simple applications using C ( …

Member Avatar for Creator07
0
196
Member Avatar for harryhaaren

Hey all, I'm currently working on a design for my first "big" program. I've done a small Object Orientated IDE before, however that code there was a bit of a mess... So I'm scoping around for online tutorials on how to design an OO program. Does anybody have a great …

Member Avatar for harryhaaren
0
97
Member Avatar for _dragonwolf_

I feel like an idiot asking for help every step of the way. My program is almost complete. I just can't seem to wrap my head around the constructor issue. Here is the check list of what I have left: Appropriately use the Dates(int,int,int) & the Dates(string,int,int) constructors; Appropriately use …

Member Avatar for _dragonwolf_
0
104
Member Avatar for FireNet

[CODE] Creating Servers for handling Multiple clients Fog Edition By FireNet [/CODE] (This document is dedicated to my friend Aaron Anderson) (Fog Edition means I dont tell you everything stright.All the info will be there but you will have to do much thinking) Servers and Clients,the backbone of the internet …

Member Avatar for domenzup
0
7K

The End.