Chirurgia endoscopică a hipofizei
"Standardul de aur" în chirurgia hipofizară îl reprezintă endoscopia transnazală transsfenoidală. Echipa NeuroHope este antrenată în unul din cele mai mari centre de chirurgie a hipofizei din Europa, Spitalul Foch din Paris, centrul în care a fost introdus pentru prima dată endoscopul în chirurgia transnazală a hipofizei, de către neurochirurgul francez Guiot. Pe lângă tumorile cu origine hipofizară, prin tehnicile endoscopice transnazale pot fi abordate numeroase alte patologii neurochirurgicale. www.neurohope.ro |
cautarea in strstr
Last Updated: May 27 2015 18:03, Started by
CodexVinci
, May 27 2015 15:05
·
0
#1
Posted 27 May 2015 - 15:05
Programul urmator sterge toate aparitiile unui subsir din cadrul unui sir.
#include <iostream> using namespace std; int main () { char sir[1000],subsir[25],*p; int lung_subsir; cout<<"introduceti textul ";cin.get (sir,1000); cin.get (); cout<<"introduceti subsirul ";cin.get (subsir,25); lung_subsir=srtlen (subsir); p=strstr (sir,subsir); while (p) { strcpy(p,p+lung_subsir); p=strstr (p,subsir);} cout<<sir; } Vreau sa ma lamuresc in privinta instructiunii "p=strstr (p,subsir)".Cum se poate face o cautare a unui subisr la un pointer catre o singura valoare? Si cum poate p+lung_subsir sa arate indicele unei valori? Multumesc anticipat. |
#2
Posted 27 May 2015 - 15:29
#3
Posted 27 May 2015 - 15:55
Building to ensure sources are up-to-date
Selecting target: Debug Adding source dir: /home/mihai/Documents/c++++/strstr23/ Adding source dir: /home/mihai/Documents/c++++/strstr23/ Adding file: /home/mihai/Documents/c++++/strstr23/bin/Debug/strstr23 Changing directory to: /home/mihai/Documents/c++++/strstr23/. Set variable: LD_LIBRARY_PATH=.: [debug]Command-line: /usr/bin/gdb -nx -fullname -quiet -args /home/mihai/Documents/c++++/strstr23/bin/Debug/strstr23 [debug]Working dir : /home/mihai/Documents/c++++/strstr23 Starting debugger: /usr/bin/gdb -nx -fullname -quiet -args /home/mihai/Documents/c++++/strstr23/bin/Debug/strstr23 done [debug]Reading symbols from /home/mihai/Documents/c++++/strstr23/bin/Debug/strstr23... [debug]done. [debug](gdb) [debug]> set prompt >>>>>>cb_gdb: Registered new type: wxString Registered new type: STL String Registered new type: STL Vector Setting breakpoints [debug]>>>>>>cb_gdb: [debug]> show version [debug]GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 [debug]Copyright © 2014 Free Software Foundation, Inc. [debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> [debug]This is free software: you are free to change and redistribute it. [debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying" [debug]and "show warranty" for details. [debug]This GDB was configured as "i686-linux-gnu". [debug]Type "show configuration" for configuration details. [debug]For bug reporting instructions, please see: [debug]<http://www.gnu.org/s...are/gdb/bugs/>. [debug]Find the GDB manual and other documentation resources online at: [debug]<http://www.gnu.org/s...ocumentation/>. [debug]For help, type "help". [debug]Type "apropos word" to search for commands related to "word". [debug]>>>>>>cb_gdb: [debug]> set confirm off Debugger name and version: GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 [debug]>>>>>>cb_gdb: [debug]> set width 0 [debug]>>>>>>cb_gdb: [debug]> set height 0 [debug]>>>>>>cb_gdb: [debug]> set breakpoint pending on [debug]>>>>>>cb_gdb: [debug]> set print asm-demangle on [debug]>>>>>>cb_gdb: [debug]> set unwindonsignal on [debug]>>>>>>cb_gdb: [debug]> set print elements 0 [debug]>>>>>>cb_gdb: [debug]> set disassembly-flavor intel [debug]>>>>>>cb_gdb: [debug]> catch throw [debug]Catchpoint 1 (throw) [debug]>>>>>>cb_gdb: [debug]> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb [debug]>>>>>>cb_gdb: [debug]> directory /home/mihai/Documents/c++++/strstr23/ [debug]Source directories searched: /home/mihai/Documents/c++++/strstr23:$cdir:$cwd [debug]>>>>>>cb_gdb: [debug]> tty /dev/pts/2 [debug]Queued:[tty /dev/pts/2] [debug]>>>>>>cb_gdb: [debug]> run [debug]Starting program: /home/mihai/Documents/c++++/strstr23/bin/Debug/strstr23 [debug][Inferior 1 (process 10912) exited normally] [debug]>>>>>>cb_gdb: [Inferior 1 (process 10912) exited normally] [debug]> quit Debugger finished with status 0 Asta este output-ul de la debugger,si am rulat in debugger mode si se comporta la fel ca si cand as fi dat run . La ce ar trebui sa ma uit? Edited by CodexVinci, 27 May 2015 - 15:57. |
#4
Posted 27 May 2015 - 17:04
Iti trebuie un debugger care iti permite sa faci step prin cod linie cu linie si sa pui watch pe variabile.
|
#5
Posted 27 May 2015 - 18:03
Cum pot sa fac rost de acest debugger? (folosesc Codeblocks si Qt Creator pe Linux)
|
Anunturi
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users