49,761 Topics

Member Avatar for
Member Avatar for johnnyrocket

I've placed a CSV file into an array with C++ with each row being a single array element, but the file contains many, many columns that I don't need. I only need columns 1,2,3,4,6,7 out of about 50. Is is best to read the full value into the array and …

Member Avatar for iamthwee
0
5K
Member Avatar for phuduz

Hey guys im working on a a banking program for my cpsc class and i have the code finished and i just cant get it to run, i believe my brackets are wrong somewhere but i just cant figure out which ones so if someone could juss help me out …

Member Avatar for ~s.o.s~
0
101
Member Avatar for chicagoavonlady

I just started class about 4 wks ago. I just got my deitel's c++ how to program book and I already cannot figure out how to do this homework assignment... (I got shiested online...getting refund, just had to purchase book late.) use a while statement to determine and print the …

Member Avatar for chicagoavonlady
0
104
Member Avatar for mikeallen

I'm trying to write program that evaluates a poker hand and returns whether or not it contains a straight, flush, pair, etc. I've got every method except one to work. I cannot figure out how to correctly write the method that determines whether or not there is a straight. Every …

Member Avatar for bumsfeld
0
113
Member Avatar for mypranoygarg

hi everyone! can anyone help me with making a program which is to print a timekeeper like shape with "*"

Member Avatar for bumsfeld
0
85
Member Avatar for computerages

I want a program, which will set an alarm on a computer at a specific time according to the day and time... and a window will pop up on the screen with your own text on it.... I want the yellow notification box on the toolbar to popup indicating a …

Member Avatar for Salem
0
264
Member Avatar for ashish.bagade

I am using third party library for developement of the system and that third party library is not supporting for the multithreading. Is there any way to support the multithreading functionality without touching the code of the library? ;)

Member Avatar for Ancient Dragon
0
51
Member Avatar for kenjutsuka

Hi, I need help with something I'm working on. I just want to get a basis to start, but I'm hoping to end up with a system where I can store encrypted output in an outside file. Right now my algorithms are a little elementary to consider even stable, but …

Member Avatar for Ancient Dragon
0
110
Member Avatar for Sivakumar_K

Hello Group, I am looking for some help with DevC++ compiler. Version 4.9.9.2. In my database Management II Course, we are supposed to compile a sample ODBC Application written in C Code. When I open the compiler, I cut and pasted the code into the work space because the code …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Clinton Portis

I have an operator overloading question... I have attempted to overload the >> operator so I can read a file directly into a "SongInfo" object, and attempted to overload the << operator so I can display a "SongInfo" object directly to dos console. When attempting to compile, I recieve, "overloaded …

Member Avatar for Clinton Portis
0
125
Member Avatar for matrimforever

I can code things okay, but I have real trouble coming up with algorithims to solve problems. For instance this problem: 'A scientist uses rabbits (yes, another rabbit problem) in her experiments. She starts out with one pair(male,female). At the end of each month, a pair of rabbits produces one …

Member Avatar for matrimforever
0
365
Member Avatar for Behzad Oskooi

I am working with Borland C++ Builder 5 . When trying to run Client program from another computer in a LAN it complains that "it can not find the Vclmid50.bpl library." Note: Smart Agent & Server Program are running

Member Avatar for Behzad Oskooi
0
120
Member Avatar for sameer.mastek

I want to know an inbuilt function/API in VC++ 6.0 which will return the 1) Bus width 2) Bus type 3) CPU alias

0
68
Member Avatar for theUnNown1

Folks, I need to write a small application that runs on a Windows Mobile 5 based device. All I need it to do is listen to a port and return whatever it sees. I have searched all over and can't find a good resource for this. I have found many …

Member Avatar for ~s.o.s~
0
91
Member Avatar for Barefootsanders

Hey everyone. I had a few questions and I was hoping you could point me in the right direction. I'm currently taking a C++ class in college. I learned C last year and the transition has been relatively easy. I understand a majority of C++(probably 75-80%), I just have problems …

Member Avatar for ~s.o.s~
0
109
Member Avatar for LieAfterLie

How would you make the program pause for a certain amount of time? I can't just tell it to do some trivial task over and over for so many loops, because the compiler seems to know its trivial and cuts it out. There's gotta be a simpler way anyway.

Member Avatar for LieAfterLie
0
548
Member Avatar for LieAfterLie

Okay, Iv'e finished learning C++. What can I do with it? Specifically, I want to do some graphics stuff, anything beyond iostream and fstream. What comes after C++? I know it does more than this. If I could just have a function to set a pixel, I could make my …

Member Avatar for LieAfterLie
0
105
Member Avatar for bumsfeld

I wrote this little code to test a 2 dimensional array. Given the array array[row][col] I can find total_columns, but I am at loss to figure out total_rows. [code]// 2 D array #include <iostream> using namespace std; int main() { int row, col, total_columns; // two dimensional array in the …

Member Avatar for bumsfeld
0
86
Member Avatar for taruj83

hello, I have a Quicksort c++ program and I have tried to run it and it gives me an error calling it "segmentation fault" , i know there is somthing wrong in my code but can't figure it out. anyways any replies for a solution will be appreciated. thank you …

Member Avatar for iamthwee
0
175
Member Avatar for ajinzo

I submitted a soda machine problem earlier that had 25 error, I have made some corrections, but I still have 6 errors. Can anyone help. [COLOR=blue]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=maroon]<iostream>[/COLOR] [COLOR=maroon] [/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::cout;[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::cin;[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::endl;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] getcoins ()[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#000000] [/COLOR][COLOR=blue]int[/COLOR][COLOR=#000000] total = 0, number;[/COLOR] [COLOR=#000000] …

Member Avatar for ajinzo
0
128
Member Avatar for zith7400

I am trying to create a binary tree. Ultimately I would like a user to be able to insert how deep he or she wants the tree to be and then have my program be able to create the tree at that depth. Root = depth 1 and so on. …

Member Avatar for ~s.o.s~
0
242
Member Avatar for nanodano

When someone accesses a cgi script in their web browser is there a way to gather information, like IP address or user's web browser? I know how to read command line arguments, but I have a feeling that isn't how it would be passed via the web. Maybe someone can …

Member Avatar for ~s.o.s~
0
91
Member Avatar for oRg

Hello, I'm a college student taking a programming class and I'm trying to write a program for this class. I've done most of the work already I just need some hints or a push in the right direction as far as my client-code is concerned. Here's the code for the …

Member Avatar for oRg
1
741
Member Avatar for nanodano

Ok, I have a small problem. I'm just trying to get my program to read a single line from a file at a time, and put the results in a vector. The problem is at the end of each vector. It repeats the last element twice and also adds a …

Member Avatar for nanodano
0
127
Member Avatar for tlly

Hi everyone..i'm new c++ programming and i would like to know if its posible to convert a string to a vector array...(Eg string s = "Hello everyone" array a[1]='H', a[2]='e'....)I need a vector array because i do not know what my string will be...it will change everytime...If it is posible …

Member Avatar for ~s.o.s~
1
360
Member Avatar for shailesh1064

Hi, I need help to either provide the C++ codes or point me the proper link to find the Euler cycle. My aim is this: • Input: A directed graph G represented by a set of vertices and a set of edges. • Output: An Euler cycle for G (or …

Member Avatar for ~s.o.s~
0
113
Member Avatar for jc23

i hv 1 assignement which need to do the finite element analysis by using Borland C++..and openGL.. but i dun know what source code shoul i use to solve the finite element analysis in Borland C++ and openGL.. pls help me!!thanx for help..

Member Avatar for Ancient Dragon
0
76
Member Avatar for jc23

hi..i'm facing some problem to draw morh's circle by using opengl in Borland C++.. i'm able to draw 3 circles which is 2 small circle "in" 1 big circle..but may i know tat can i insert a formula into openGL to find out the radius for these 3 circle automatically? …

Member Avatar for jc23
1
621
Member Avatar for CurtisBridges

Thought I had this going, but I guess not. Would you look it over and get me headed in the right direction please. [COLOR=#000000]Need help creating this to these instructions, mainly with the part where I call an existing files that has already been created and saved in Notepad as …

Member Avatar for ~s.o.s~
0
115
Member Avatar for ajinzo

:!: I'm very new to programing, been trying to write this coke machine program. Can anybody help me. [COLOR=blue]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=maroon]<iostream>[/COLOR] [COLOR=maroon] [/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::cout;[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::cin;[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::endl;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] getcoins ()[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#000000] [/COLOR][COLOR=blue]int[/COLOR][COLOR=#000000] total = 0, number;[/COLOR] [COLOR=#000000] cout << [/COLOR][COLOR=maroon]"put in coins: "[/COLOR][COLOR=#000000];[/COLOR] [COLOR=#000000] …

Member Avatar for ~s.o.s~
0
110

The End.