Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0

40 Posted Topics

Member Avatar for kylcrow

Hi. I am new to the forum and I had a question. I have looked around and haven't really been able to find exactly what I am looking for. I am looking for the code in C++ to read in a random single line with spaces from a file. This …

Member Avatar for zia shaikh
0
5K
Member Avatar for kylcrow

I am getting this compiler error: gcc -g -Wall -O2 -c -o mybash.o mybash.c mybash.c: In function ‘main’: mybash.c:39: warning: implicit declaration of function ‘getline’ mybash.c:41: error: expected expression before ‘)’ token make: *** [mybash.o] Error 1 It probably has to do with something I don't remember about initializing and …

Member Avatar for kylcrow
0
162
Member Avatar for kylcrow

I made a very simple website using ASP.NET and SQL Server. I will post all the code up if it will help. On my local machine, the website works perfectly. I can preview it from Visual Studio fine, and I set up the IIS on my localhost, and it works …

Member Avatar for yara.008
0
132
Member Avatar for kylcrow

I am creating a small website for a little basketball league my friends and I are starting where I can enter the wins and losses for a player and a grid will display all the data for that player. I want the grid to display these fields: First Name, Last …

Member Avatar for jbisono
0
113
Member Avatar for kylcrow

So I have a website, and its pretty simple. I am using my school's hosting to upload files to a server to actually be able to see it online. My school requires our urls to be something like this: oak.cats.uc.edu/~(user_id) I was wondering how I would be able to buy …

Member Avatar for rcdeck
0
135
Member Avatar for kylcrow

Hey guys, I am having issues understanding how exactly to mod something to avoid overflow. say i have this hash function: [CODE=c++] int universalHash(const string &x,int B) { long long sum; long long power; sum=0; pow = 1; for (int i=0;i<(signed)x.length();i++) { // cout << "sum= " << sum << …

Member Avatar for ArkM
0
172
Member Avatar for kylcrow

Here is some code that I am trying to use. Why wouldn't this work the way I am assuming it should? here is a sample of vector<string> mine: *** *2* *1* so mine[1][1] = 2. [CODE=C++] // In a function that has passed in vector<string> &mine int dist[2000][100]; cout << …

Member Avatar for kylcrow
0
138
Member Avatar for kylcrow

I have a project due in an hour, and I am stuck on it. My project is to write some functions for a maze. ( Live regions, Dead Regions, and if it is possible to exit). The point of the project is to understand graphs and specifically depth first search. …

Member Avatar for Ancient Dragon
0
105
Member Avatar for kylcrow

This will probably sound like an ignorant question, but here it is. I am trying to embed a silverlight slideshow control into an html page, and to do so I need an xml config file. Without the xml, the control shows up (it is blank, but it at least shows …

0
81
Member Avatar for NinjaLink

Firstly, to get the Test Scores:, Lab Scores:, and Project Scores: to stop printing a duplicate amount of time, you ill have to take them Out of your for loop. The reason you are only getting 2 resuts of scored for each is becuase of the wy you set your …

Member Avatar for vmanes
0
93
Member Avatar for JackDurden

[QUOTE]So say I have a file that has two lines in it, like so: This is one line This is another How would I store line one into one array...like array1={This, is, one, line} and then line two into array2={This, is, another}? [/QUOTE] I would use the getline() function. Loop …

Member Avatar for Alex Edwards
0
197
Member Avatar for bones10925

I don't think your merge sort is completely done yet. Someone tell me if I am wrong (which is very possible), but doesn't MergeSort work more like this... (keep in mind that this way, you are in fact passing arrays around) [CODE=C++] void Merge_Sort(int array_MSort[], int* temp, int left, int …

Member Avatar for kylcrow
0
104
Member Avatar for kylcrow

Hi everyone. I wrote a Rock Paper Scissors program my first quarter of C++ two years ago, and now I have a job at a programming job. I showed someone my little easy program and they challenged me to make a verson 2.0 with AI and a gui. The Gui …

Member Avatar for kylcrow
0
331
Member Avatar for kylcrow

Ok so I am looking to read in a bunch of different types of data for a program, but I am having trouble doing so in a very robust way. For strings it's easy. [CODE=C++] string temp; getline(cin, temp); [/CODE] Simple and quite robust. For the rest I am having …

Member Avatar for Ancient Dragon
0
78
Member Avatar for kylcrow

Hi all, I am writing a program to make a binary tree. I have all the class/structure part fine, I just want to make the program unbreakable. I am asking the user to input strings, and I am putting those strings into the tree as all lower case (I also …

Member Avatar for dougy83
0
110
Member Avatar for kylcrow

Hello, I have to write a shopping cart class in c++ and I am getting a core dump, and I have no idea why. I know where it is core dumping. Its dumping at 2 places-> Shopping_Cart::Print(Shopping_Cart* head) and Shopping_Cart::TotalPrice(Shopping_Cart* head) Here are my 3 files... shopping.h [CODE=C++] #ifndef SHOPPING_CART_H …

Member Avatar for Ancient Dragon
0
319
Member Avatar for kylcrow

I was given the problem to write a class called block cipher to take in a text file and output the same text file after it has been encrypted. I have to use this header file... [CODE]#include <iostream> using namespace std; class block_cipher { public: block_cipher(); // Constructor void finish(); …

Member Avatar for kylcrow
0
143
Member Avatar for kylcrow

Hello, I have been stuck on this for awhile, and can not seem to get it to work exactly correct. I am trying to read in a file ("in_text.txt") and print out it's contents to the screen for now (eventually i will manipulate the data with a block_cipher class). Here …

Member Avatar for kylcrow
0
193
Member Avatar for kylcrow

I am going to be writing a test script soon, and I will be using vbscript. Can someone give me an example of a test script?

0
67
Member Avatar for kylcrow

I was asked to help make some test scripts at my work, and they use VBScript to write all their code. I pretty much only know c/c++ how hard would it be to learn VBScript if I am decent at c++? And does anyone have preference to which website they …

Member Avatar for ~s.o.s~
0
124
Member Avatar for kylcrow
Member Avatar for kylcrow
0
93
Member Avatar for KathiJo59

Go to your command prompt and type this ipconfig /all then a list of your connections will come up. Make sure your ip address your mask and gateway match your network settings

Member Avatar for KathiJo59
0
129
Member Avatar for kylcrow

I know this isnt the right place to ask this qustion, but I figured someone could point me in the right direction of where to ask, because No where else I have found is any help. When I try to run cmd or regedit off my XP run line I …

Member Avatar for kylcrow
0
94
Member Avatar for kylcrow

Ok I am wanting to [URL="http://www.daniweb.com/forums/thread81491.html#"]download[/URL] the newest version of the gcc compiler and emacs or gedit to run with PowerShell. I was hoping that someone could give me detailed instructions on how to do so. I am using Windows XP. I believe this is the right place to ask …

Member Avatar for kylcrow
0
152
Member Avatar for kylcrow

My work uses Powershell, I was wondering if someone can explain to me how to write c++ with it, if I even can, also what compiler to get for it, and where I can get it. Thanks -kylcrow

Member Avatar for kylcrow
0
96
Member Avatar for kylcrow

Hey guys, I need to write a struct that measures the distance from a point (x,y,z) to the origin. I am good on how to write it as a struct, I just don't know the formula for the distance. Can someone help me out? Also, the formula for a dot …

Member Avatar for kylcrow
0
92
Member Avatar for kylcrow

I am a freshman in college, and I am a computer science major. I am looking to co-op/intern this summer and fall, and I was wondering what a good entry level job would be, like thier duties and responsibilities. I am posting here becuase I know more about c++ then …

Member Avatar for kylcrow
0
97
Member Avatar for kylcrow

How would one right justify a string with a width of 4 and store it in a variable without being able to use cout? If that is even possible.

Member Avatar for Narue
0
144
Member Avatar for kylcrow

does anyone know what this error actually means? terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr it happened when i wrote this line... string output2 = last + first + scores + string(4, ' ').substr(scores.size()) + " ";

Member Avatar for Ancient Dragon
0
74
Member Avatar for kylcrow

Hmm. I am converting a string into an int. [code=c++] string sum(string line) { string first; string last; string scores; string output; istringstream lineStream(line); lineStream >> last; lineStream >> first; for (int i = 0; i < 10; i++) { string getScores = "0 "; lineStream >> getScores; scores += …

Member Avatar for vijayan121
0
145
Member Avatar for jaepi
Member Avatar for ~s.o.s~
0
9K
Member Avatar for kylcrow

Is there a member function in the string class to put two strings together at a certain index? For example... if i took these two strings... city = Memphis and state = Tennessee to put them together like this [code=c++] Memphis Tennessee [/code] The city would start at index 0 …

Member Avatar for kylcrow
0
137
Member Avatar for nkhosinathie

instead of writing using std::cout; using std::cin; using std::endl; you can just write using namspace std;

Member Avatar for Narue
0
112
Member Avatar for kylcrow

Hi again everyone. I'm having a problem with some code I am writing. I need to take an input file change what is on it, then print out to the screen. What I want to change in the file is re-formatting it so that there is Last name First name …

Member Avatar for kylcrow
0
131
Member Avatar for kylcrow

Hello everyone, I am having trouble fine tuning my code. I like to have all the bulky parts of my main in functions, and I can not seem to figure out how to write this code as a function. Anyone tell me where to start? [code=c++] int main() { int …

Member Avatar for Madzts
0
165
Member Avatar for kylcrow

this is my function... [code=c++] int showScores(int player, int computer, int tie) { return ( cout << "User: " << player << endl << "Computer: " << computer << endl << "Ties: " << tie << endl;); } [/code] I get these error messages hw3b.cc: In function 'int showScores(int, int, …

Member Avatar for Member #46692
0
101
Member Avatar for kylcrow

Hi, I am writing a function that needs to return either a R S or P. It works fine if what I am inputing is a R S or P. If something else is enter it acts funny. Any suggestions to help me out? [code=c++] char getUserChoice () { char …

Member Avatar for kylcrow
0
102
Member Avatar for kylcrow

Hi, I am trying to compile some code using a g++ GNU Compiler, and it keeps complaining. Other people have told me the exact same code compiles with their compiler. Anyone know why? Here is the code... [code=c++] #include <iostream> #include <ctime> #include <cstdlib> using namespace std; char getUserChoice(); char …

Member Avatar for kylcrow
0
132
Member Avatar for kylcrow

I am writing code for a homework assignment. I have to write a function, and in the function prompt the user to enter either rock, paper, or scissors. I did it successfully declaring a char (choice) globably, but I was told this wasnt a good idea, even though it worked. …

Member Avatar for kylcrow
0
166
Member Avatar for kylcrow

Ok I am writing a Rock Paper Scissors game for my c++ class. I have done most of it, but now I am stuck. I need to keep an overall score for the computer wins, user wins, and ties for as long as the user wants to keep playing. After …

Member Avatar for kylcrow
0
1K

The End.