- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
100 Posted Topics
Re: You can break the logic down into a 3 step process: Im leaving the coding upto you. 1) Remove leading white spaces using a loop until you hit a non white space 2) Use a loop to remove the middle white spaces and copy characters into a temp array 3) … | |
Re: [url]www.cppreference.com[/url] [url]www.cplusplus.com[/url] | |
Re: Try Code::Blocks or Bluefish. IMO Code::Blocks is better, since Bluefish started life as web development IDE. Alternative is downloading notepad++ and also gnu compiler package. | |
Re: [QUOTE=didi00;1068386]My Borland C++ vresion 3.1 isn't working. It works with simpler codes, but it doesn't works with graphics and animations. Is there any settings that will make Borland work? I'm using Windows 7 but the same happened with Vista and XP also, so help? Please? Thank you all!!![/QUOTE] Use a … | |
Hi, I have a really basic ASP.Net question regarding the life of variables. I'm following the book Beginning ASP.Net 4 by Apress. The question is this, I declare a list in the .aspx page and it is available for access by the corresponding .aspx.cs class similar to the code sample … | |
Re: Check each token using [URL="http://www.cplusplus.com/reference/clibrary/cctype/isalpha/"]isalpha[/URL] and [URL="http://www.cplusplus.com/reference/clibrary/cctype/isdigit/"]isdigit[/URL]. | |
Hey, I'm trying to figure out how pointers and C String work together I know the basics about pointer arithmetic but I am having trouble implementing it in my program. I am having a problem at the for loop. [code=CPLUSPLUS]/* Trying to print a string from an offst using pointer … | |
Re: I got a few replies from dave or read his reply and they always imparted some knowledge or wit. You will be missed. My condolences to his family and friends. | |
Hey, Iv decided to tackle a bit off C++ before I start it in college in fall and Im sort of stuck on a problem. The book im reading is Accelerated C++ and its exercise 3.2. Basically the question asks to get values from the user and take for at … | |
Re: Deleting a record is fairly simple, all you need to do is create a temporary array and then just copy each value one by one, skipping the element you need to delete and then just copy the temp array to the main array. Alternatively just make the element you need … | |
Re: Just one function is fine, now just call the function again and change [icode]avgEng to avgHist[/icode]. | |
Re: Please use code tags. I'm not sure what you mean by repeat the program, but it looks like you are since your using a while loop. | |
Re: What errors are you getting? Just copy each array value from the fileinto a array or vector in your program. | |
Re: Send it to the function by sending the array as a reference or a pointer. Google Function parameters for more inforation | |
Re: Its the same as holding a address of a pointer to primitive data type. [code=C++] Object* obj, obj1; obj = &obj1; [/code] | |
Hi, I'm trying to use the built in gcd method to calculate the gcd for two values. Unfortunately I can't seem to import the right module to get the method. [code=python] from fractions import Fraction ... x = gcd(a,b) [/code] | |
Re: DirectDraw was dropped from DirectX August 2007 | |
Hi, After several google searches, yes I did actually bother searching, I was hoping someone would be able to help me out. I'm trying to figure out persistent hash tables and the internet seems to be woefully inadequate in information, I was hoping some one here had a link or … | |
Re: It would be good if you learned about looping as tomhogans mentioned, also try and learn arrays, it would make the program easier to read as you wont have so many variables. To get you started I suggest you try and write it out on paper its not too difficult, … | |
Hi, I'm trying to copy a value in a vector to a string. The vector is also of string type, I'm trying to copy through the iterator. [code=CPLUSPLUS] for(iter = inputStr.begin(); iter != inputStr.end(); iter++){ string temp = inputStr.at(iter); int count = 0; for(int i = 0; i != temp.size(); … | |
Re: You need to use an int to keep the number of items sold. Also use a switch/case to choose whether customer or owner. | |
Re: [CODE=C++]while (current3 <= numWall2);[/CODE] Remove this ; | |
Re: Two question the first it why are you using goto? It is very bad practice and your noticing first hand the negative effects it can have. Secondly why haven't you just used a while loop instead of all this back and forth. Thirdly how does this even compile? It has … | |
Re: This is the wrong forum, but anyhow unless you show some effort even the guys in the C# forums wont help. | |
Hi, I can't figure out why my exit button is not working as all the other buttons in my code seem to be working. I have given the code below. The constructor for the button is [code=Java] private JButton exit; .... add(exit); .... exit = new JButton("Exit"); exit.addActionListener(this); [/code] The … | |
Re: Once you have scanned the input in you need to use strcpy() to copy the string from the variable to the data structure variable. [code=C] strcpy(inventory[num+parts].name, part_name]; [/code] | |
Re: [URL="http://cimg.sourceforge.net/reference/group__cimg__tutorial.html"]http://cimg.sourceforge.net/reference/group__cimg__tutorial.html[/URL] Tutorial [URL="http://cimg.sourceforge.net/reference/index.html"]http://cimg.sourceforge.net/reference/index.html[/URL] Documentation | |
Re: It isn't all that hard: -- declare a variable to hold the first letter -- make a loop that has 25-26 iteration (depends on how you design the loop) -- print the variable -- increment the variable -- return 0 :) -- simple | |
Hey, I want to know whether it is possible to send a formatted string ie. [code=java] System.out.printf("%2d%6d%23f...",a,b,c); [/code] to a .txt file so that when I view the .txt it will appear properly justified with spaces and tabs. Thanks | |
Re: I'm not exactly sure why you would want to use C++ to create a login, your better off using Perl, PHP, ASP or Python to create such a script. Also standard disclaimer applies, you need to show effort before you ask for help. | |
Hi, I'm having a rather strange problem with the Java compiler. I'm trying to compile a simple hello world program and I can compile it perfectly within NetBean but when I try to use the commandline javac command I get a error. The error says the there is something wrong … | |
Re: Hey, A couple of questions, what compiler are you using and how in the world does this run? I can see two changes that you have to make off the bat, first replace [code]#include<iostream.h> with just #include<iostream>[/code] no one uses .h anymore its been made redundent unless your compiler is … | |
Re: [QUOTE=StuXYZ;1051345]Ok, for maths courses have a look at the MIT lecture page [URL="http://ocw.mit.edu/OcwWeb/Mathematics/index.htm"]http://ocw.mit.edu/OcwWeb/Mathematics/index.htm[/URL]. [/QUOTE] Take about going from 0 -> 100 in 0.0 seconds :D | |
Re: I glimpsed at you problem and I'm not sure why you would use recursion when a loop is better and easier. | |
Re: Comments are ignored by the compiler. | |
Hi, I have slogged my way through, Mark Lutz's Learning Python it is a great book but the problem I have with it is that it doesn't have any practical programing question like the dietel books. Can you guys please tell me a few books with questions that follow the … | |
Re: Um..."while" and "for" come to mind, just need to use a little creativity. Its not that hard. | |
Re: If you plan on studying python get this as well. [URL="http://www.swaroopch.com/notes/Python"]http://www.swaroopch.com/notes/Python[/URL] | |
Re: [QUOTE=Salem;873855]> Are you tired of being called a geek? Are you fed up of being free tech support for an extended family? Do you secretly want a more "manly" job outside, say [URL="http://www.geocities.com/fang_club/lumberjack_song.html"]lumberjack[/URL]? [/QUOTE] lol :P | |
Re: I don't think that there is a right or wrong in psudo code, unless ofcourse your doing something really stupid in it. | |
Re: Trust me, this is the best place to get help. Especially for such a simple problem. | |
I bought a bunch a cheap books on Python and am wondering whether I should read them as Python 3 introduced changes to the language and so to speak broke old code as far as I can tell. I am reading Programing in Python 3, and after that I was … | |
Re: Alternatively download and use Code::Blocks IDE or Visual Studios Express both are excellent alternatives. | |
Re: Try the LWP module, its clean and highly efficient, you just need to make sure that you put in checks to see that you receive the proper data. | |
Hey, I have used the LWP:\:Simple module and saved the source of a website in a file. I am trying to extract all the data between the <head> tags and pass it to a variable to process. So far I can't seem to extract the data properly. Any suggestions? [code=Perl] … | |
Hello, This is for an assignment I have to do, I have completed most of it just can't get one part to work correctly. The assignment is: The TextFieldLoader class will have only one constructor and MUST accept the following parameters only: 1. filename (const char *) that will be … | |
Hey, I have a program that has 5 files, 2 header files called: [icode] console.h screen.h [/icode] and 3 source files called: [icode] a2main.cpp screen.cpp console.c //not a typo [/icode] When I copy the [icode]main[/icode] from my a2main.cpp file to my screen.cpp my program compiles without a problem. But when … | |
Re: Please use the code tags properly and preview your post. [noparse][code=C] [/code][/noparse] And run your program and see what comes up, at a glance it seems ok. PS. remove the \ in the code tag I have shown. |
The End.